mkdir() permissions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jim
Forum Contributor
Posts: 238
Joined: Fri Apr 19, 2002 5:26 am
Location: Near Austin, Texas

mkdir() permissions

Post by Jim »

I'd like to change the permissions in PHP.ini to allow me to use mkdir() and to upload files.

I have access to the file, and am curious as to what I have to edit within the files to use this capability.

Thanks!
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

sample php.ini file uploads section:
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
file_uploads=On ; Whether to allow HTTP file uploads
upload_tmp_dir="D:\EasyPHP\tmp\" ; temporary directory for HTTP uploaded files (will use system default if not specified)
upload_max_filesize=2M ; Maximum allowed size for uploaded files
Afaik, in order to use mkdir() the parent either has to be owned by php or chmod'd 777 with an FTP program - can turn it back to 755 after the folder has been created.
Post Reply