Hi,
can I set path of opendir to be an url?
As an instance opendir("http://www.mydomain.com/mydir");
Currently i'm using a relative path, but this creates me some problems, opendir("../../mydir");
Thanks.
opendir(), easy question.
Moderator: General Moderators
- xpgeek
- Forum Contributor
- Posts: 146
- Joined: Mon May 22, 2006 1:45 am
- Location: Kyiv, Ukraine
- Contact:
Re: opendir(), easy question.
sorry for englishthinICE wrote:Hi,
can I set path of opendir to be an url?
As an instance opendir("http://www.mydomain.com/mydir");
Currently i'm using a relative path, but this creates me some problems, opendir("../../mydir");
Thanks.
check - directory '../../mydir' exists
Code: Select all
if (file_exists('../../mydir'))
{
opendir("../../mydir")
}