> echo '', var_dump( $_SERVER ), '';
>
> for instance I cut/paste the following from an application of my,
> the code lives in a centrally included file:
>
> /* define a webroot basepath for the datasyncer module */
> define('DS_WEBROOT', realpath(dirname(__FILE__).'/..'));
>
dirname! That's the
Mark Rees wrote:
var_dump (realpath('temp'));
> I am trying to check whether /lists/admin/temp exists (which it does).
This dir doesn't exists. The '/' at the beginning of path means: path is
from root (unix) or from e.g. c:\ (windows)
Outputs from
var_dump(realpath("../../lists/admin/temp")
> > var_dump (realpath('temp'));
> > I am trying to check whether /lists/admin/temp exists (which it does).
>
> This dir doesn't exists. The '/' at the beginning of path means: path is
> from root (unix) or from e.g. c:\ (windows)
>
> Outputs from
>
> var_dump(realpath("../../lists/admin/temp"))
>
Mark Rees wrote:
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'));
> I am trying to check whether /lists/admin/t
> > > 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
> > what does the following output:
> >
> > var_dump (getcwd());
This outputs a fully qualified path to the current working directory
(/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 foler
>
>
Jochem Maas wrote:
what does the following output:
var_dump (getcwd());
I have better question:
what does the following output:
var_dump (realpath(getcwd()));
var_dump (realpath('temp'));
var_dump (realpath("/lists/admin/temp"));
--
Ondrej Ivanic
([EMAIL PROTECTED])
--
PHP General Mailing
Mark Rees wrote:
Hello
I am having trouble with is_dir
I am trying to check whether /lists/admin/temp exists (which it does).
However, I cannot get the function to work by specifying the path as above -
it only works if I do it relative to the current working directory. So:
var_dump (is_dir(g
8 matches
Mail list logo