Reply to Re: php fileinfo help needed

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация