I'm trying to save files on my server, and as a prerequisite, create directories that don't exist.
I am running a script, dl.php
, at /home/public_html/www3/scripts/dl.php
:
$request['savedir'] = '/home/public_html/www3/scripts/images/logs';
if( !is_dir($request['savedir']) )
mkdir($request['savedir']);
And I get:
Warning: mkdir(): Invalid path in /home/public_html/www3/scripts/dl.php
The "images" does exist.