You are here: PHP doesn't access root directory using forward slash "/" « PHP Programming Language « IT news, forums, messages
PHP doesn't access root directory using forward slash "/"

Posted by ECRIA on 10/02/63 11:54

Hi All,

We are trying to figure out why PHP's file handling functions refuses to
access the web root using the "/" character on our Windows machines. For
example, a file /test.php is located in our web root. A file in a
subdirectory, say /example/runme.php needs to find out if the file
"/test.php" exists. One would expect that the function
file_exists("/test.php") would return true (it does on our unix host).
However, it returns false on our Windows machine.

Unfortunately we can't build a workaround as it is not us but oscommerce
that uses the "/" method to refer to the web root, and modifying all the
oscommerce scripts is simply impractical.

Any pointers would be greatly appreciated,

Regards,

ECRIA Dev. Team

Details:
Apache 2.0.52
PHP 5.0.3
Windows XP Pro SP2

 

Navigation:

[Reply to this 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

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