You are here: Re: OT. Windows server paths and PHP includes « HTML « IT news, forums, messages
Re: OT. Windows server paths and PHP includes

Posted by BootNic on 06/18/07 05:09

> dorayme <doraymeRidThis@optusnet.com.au> wrote:
> news: doraymeRidThis-2D0C70.11411318062007@news-vip.optusnet.com.au
> In article <iTkdi.1534$W_6.51@newsread1.news.pas.earthlink.net>,
> "BootNic" <bootnic@bounce.earthlink.net> wrote:
[snip]
> I put a test html page up, with your
[snip]
> on it and got back:
>
> .;e:\php
>
> This a clue to fashioning a "global" path address? What now?
Looks like there is no include_path set that would be of any use to you.
[snip]
Try the following and let me know what happens.
<?php
ini_set('display_errors','On');
while(@ chdir ('.') or die ('Failed to open directory.')){
$tem=getcwd();
@ chdir ('..') or die ('Failed to open directory.');
if($tem==getcwd()){
break;
}
echo getcwd().'<br>';
}
?>

--
BootNic Monday, June 18, 2007 1:08 AM

Facts do not cease to exist because they are ignored.
*Aldous Huxley*

 

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

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