Hi i am using ubuntu.
I want to create directory named as 'directory' using php. i am using following script. But not able to create directory. Can any one help me about the problem. My script is as follows
$thisdir="/usr/local/netzgate/var/lib/netzgate";
$req_dir=$thisdir."/directory";
chmod($req_dir, 0755);
$dir=mkdir($req_dir);
if(!$dir)
{
echo "Directory not created...";
}
else
{
echo "Directory created ";
}
It is displaying always as 'Directory not created'. I dont know whats the problem.