Jump to content

[SOLVED] mkdir problem


Nandini

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/133629-solved-mkdir-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.