Afficher un message
Vieux 22/01/2008, 18h09   #5
AnrDaemon
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: php fileinfo needed

Greetings, bob.
In reply to Your message dated Tuesday, January 22, 2008, 12:36:42,

> I have the following code:
> $file = "C:\xampp\htdocs\app\webroot\pics\file.jpg";


Try to print() this variable value and You'll see Your problem.
Rule to work with strings:
Do NOT use double-quotes unless You absolutely sure You need them.
So, either
$file = 'C:\xampp\htdocs\app\webroot\pics\file.jpg';
or (as rick said) this way
$file = "C:/xampp/htdocs/app/webroot/pics/file.jpg";

But much safer and portable way is to use forward-slashes even with
single-quoted string.

$file = 'C:/xampp/htdocs/app/webroot/pics/file.jpg';


--
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru>

  Réponse avec citation
 
Page generated in 0,06413 seconds with 9 queries