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.
config.php
on application/config
folder$config['sess_save_path'] = NULL;
line.NULL
value to BASEPATH.'sessions'
Please check your "images" folder owner and permissions. It requires to be write enabled to be used with "apache" user/group when it is executed in browser. The error is actually about "permissions" since it is not visible to "apache" user.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With