403 Forbidden on php mkdir
<p>I'm having a 403 Forbidden page when excecuting a php script with mkdir function.</p>

<p>here is the mkdir code:</p>

<pre><code>mkdir('uploads/'.$upload_folder.'/', 777)
</code></pre>

<p>I have tried 775, 666 permissions, but nothing.
Insde the dir i want to store images, mp3's and videos.
Can anyone help me?</p>

<p><em><strong>UPDATE 1</em></strong></p>

<p>here is the whole script:</p>

<pre><code>$folderStr = $_REQUEST['folderName'];

//create SEO firndly directory name
$upload_folder =    preg_replace("'\s+'", '-', $folderStr);

// The place the files will be uploaded to (currently a 'files' directory).
$upload_path = 'uploads/'.$upload_folder.'/';

//Check whether folder exists or create with the name supplied
if(is_dir($upload_folder))
echo 'directory exists';
else
mkdir('uploads/'.$upload_folder.'/', 777);
</code></pre>

<p>It supposed to make a new directory into the folder "uploads" with the name given from the form which i get it from there with value 'folderName', and upload the files given from the form into the new dir which is created.
Also it can't write greek characters on the foldername. what i have to change to make it work?</p>
