Hi there
I've protected something like mysite.com/subdir/ with .htaccess
In mysite.com/myfile.php I have a line which uploads a file to mysite.com/subdir/ .
When I run the PHP program I get:
Warning: Unable to create 'mysite.com/subdir/buscard10.PDF': Permission denied in /var/ on line 201
Problem: Could not move file into directory
Line 201 does the upload (as you can guess from the above).
How do I a username and password in myfile.php to allow access to this protected directory?
Thanks!
-Colin
I've protected something like mysite.com/subdir/ with .htaccess
In mysite.com/myfile.php I have a line which uploads a file to mysite.com/subdir/ .
When I run the PHP program I get:
Warning: Unable to create 'mysite.com/subdir/buscard10.PDF': Permission denied in /var/ on line 201
Problem: Could not move file into directory
Line 201 does the upload (as you can guess from the above).
How do I a username and password in myfile.php to allow access to this protected directory?
Thanks!
-Colin