|
Posted by AnrDaemon on 01/22/08 17:09
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>
[Back to original message]
|