Re: [PHP] mkdir() permissions
Dear List! Anyone out there using cPanel? Perhaps you could instruct me as to how to rebuild PHP, assuming we have similar file structure, such that cPanel seems to do. Many kind regards! Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mkdir() permissions
Hi I am new to PHP and I'm trying that my script checks if a directory exists and if not, it should create it. I'm doing it with mkdir() but it returns this error message: Warning: mkdir(0): Permission denied in /xx on line 32 I wonder what kind of permissions should I set. This should be doable by any visitor. Thanks for your help. Percy __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mkdir() permissions
Hi I am new to PHP and I'm trying that my script checks if a directory exists and if not, it should create it. I'm doing it with mkdir() but it returns this error message: Warning: mkdir(0): Permission denied in /xx on line 32 I wonder what kind of permissions should I set. This should be doable by any visitor. Thanks for your help. Percy It you're trying to do this through a web server, then permissions need to be set with the web server. Directories and files need to be owned by the whatever UID the web server runs as (nobody, www, etc). If you're running it through a stand alone script, well then, if you don't own the directory or you're not root, that's probably the problem. -- --Matthew Sims --http://killermookie.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php