Hi there. I'm trying to create a temporary directory using php.
I use the mkdir function but it doesn't seem to work. This is my code:
I keep getting "error".
Any help will be much appriciated.
I use the mkdir function but it doesn't seem to work. This is my code:
Code:
if(!file_exists($dir)) { $attempt = mkdir($dir, 0775); if ($attempt) { echo "sucess"; } else { echo "error"; } }
Any help will be much appriciated.
Comment