Reply to Re: [PHP] is_dir paths

Your name:

Reply:


Posted by "Mark Rees" on 09/26/05 16:00

> > > what does the following output:
> > >
> > > var_dump (getcwd());

Sorry, this wasn't clear. I mean it outputs c:\...\htdocs\lists\admin

Not sure about the permissions. I'm using windows 2000, and the 'temp'
directory has the same user permissions as the rest of the htdocs folder

> > what does the following output:
> >
> var_dump (realpath(getcwd()));
> > var_dump (realpath('temp'));
> > var_dump (realpath("/lists/admin/temp"));
>

That outputs (paths trimmed)

string(56) "C:\...\htdocs\lists\admin"
string(61) "C:\...\htdocs\lists\admin\temp"
bool(false)

var_dump (realpath("../../lists/admin/temp"));

this outputs the same as

var_dump (realpath('temp'));

Does that help?

Thanks

Mark

[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

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