Im having a problem with chdir.
This is a piece of my code
in a function a variable of an dir is given: $variable
the variable must be lowercase:
$variable = strtolower($variable);
then i need to go to the dir:
chdir("../../../mod_index/nieuwsbrief/".$variable);
but what i get is:
/mod_index/nieuwsbriefVariable
where Variable is the content if $variable.
It seems that PHP is first changing dir and then converting to lowercase, even if i set the conversion before changing dir.
Is it my fault or a bug?
and how do i solve this?
MiQ
mick@vandermostvanspijk.nl
currently installed: html, JavaScript, dhtml, css, php, mysql, postgresql, xml, linux, apache
about to install: java, c++
This is a piece of my code
in a function a variable of an dir is given: $variable
the variable must be lowercase:
$variable = strtolower($variable);
then i need to go to the dir:
chdir("../../../mod_index/nieuwsbrief/".$variable);
but what i get is:
/mod_index/nieuwsbriefVariable
where Variable is the content if $variable.
It seems that PHP is first changing dir and then converting to lowercase, even if i set the conversion before changing dir.
Is it my fault or a bug?
and how do i solve this?
MiQ
mick@vandermostvanspijk.nl
currently installed: html, JavaScript, dhtml, css, php, mysql, postgresql, xml, linux, apache
about to install: java, c++