You are here: Re: how to reference other files? « All PHP « IT news, forums, messages
Re: how to reference other files?

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

 

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

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