Reply to Re: how to reference other files?

Your name:

Reply:


Posted by J.O. Aho on 11/25/05 11:10

moriman wrote:
> Hi,
>
> I'm having a problem referring to other files in my public_html directory ¿
>
> Below is a short script (test.php) to show the problem...
>
> <?php
> $filename1 = "c:\\\\xitami-25\\app\\public_html\\title.php";

Full paths are always found, as long as they are correct.


> $filename2 = "http://home/title.php";

The file isn't on the "local" filesystem, and therefore false.


> $filename3 = "title.php";

only true if the file is in the same directory where executed.
When executed through a webserver, then it's relative to the location of the
script.


//Aho

[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

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