Hi people,
I'm trying to get a script to create a few directories on a webserver, and unzip a file or two.
my script works fine locally, when accessed via shell.
When accessd via apache, it fails
What to do?
Here's my code:
mkdir($School, 0755);
chdir($School) || die( "Cannot chdir (1)" );
the $School directory does not exist! It was not made I checked the files on my hard disk, it was never created. But it WAS Created if I run the script locally.
What must I do?
BTW, the server I'mg oing to install on, I'm not sure how much privileges I'll be allowed on it. My client will help me all they can, as they aren't beaureaucratic, but it is a commercial web server and not based on my home computer, so I have less control over it.
I'm trying to get a script to create a few directories on a webserver, and unzip a file or two.
my script works fine locally, when accessed via shell.
When accessd via apache, it fails
What to do?
Here's my code:
mkdir($School, 0755);
chdir($School) || die( "Cannot chdir (1)" );
the $School directory does not exist! It was not made I checked the files on my hard disk, it was never created. But it WAS Created if I run the script locally.
What must I do?
BTW, the server I'mg oing to install on, I'm not sure how much privileges I'll be allowed on it. My client will help me all they can, as they aren't beaureaucratic, but it is a commercial web server and not based on my home computer, so I have less control over it.