Reply to Re: how to reference other files?

Your name:

Reply:


Posted by moriman on 11/25/05 11:30

"J.O. Aho" <user@example.net> wrote in message
news:3uo2ouF10trcmU1@individual.net...
> 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.
>
Hi,

Thx for the reply ;-)
N.B. I'm running this script through Xitami on my own poot (i.e. not hosted
elsewhere)

>
> > $filename2 = "http://home/title.php";
>
> The file isn't on the "local" filesystem, and therefore false.
>

The script I'm using is located (browser-wise) at http://home/test.php,
isn't a file in the same directory classed as being in the 'local'
filesystem?

>
> > $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.
>

again, as above, it *is* in the same directory

sorry, still confused :(

mori
>
> //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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация