Animus Programming
Home Scripts Design Contact

Resources
Custom Work
Contact Us
Glossary
Tell a friend
About Us



Installing the Error Catcher script (Perl version) FAQ

Problem with the script creating directories

Question: Hi,

I called for the gbook.php and got the following error messages on my browser.

Warning: mkdir() [function.mkdir]: Permission denied in /home/[username removed]/public_html/dir/index.php on line 28

Warning: mkdir() [function.mkdir]: No such file or directory in /home/[username removed]/public_html/dir/index.php on line 28

Warning: fopen(anibook/data/settings.txt) [function.fopen]: failed to open stream: No such file or directory in /home/[username removed]/public_html/dir/index.php on line 28

Warning: file(anibook/data/head.txt) [function.file]: failed to open stream: No such file or directory in /home/[username removed]/public_html/dir/index.php on line 28

Warning: Invalid argument supplied for foreach() in /home/[username removed]/public_html/dir/index.php on line 28
I was unable to open the data file for writing.
Answer:
My scripts are designed to create the directories that they need to operate. In most situations, this will go off without a problem -- however, some servers may restrict the abilities of scripts to create directories which can cause a problem.

The first thing to do is to make sure that the directory that the script is in, as well as the script itself, have their permissions set to 755. This is read/write/execute for the owner, read and execute (but not write) for group and public.

If that fails to fix the problem, you may need to create the directories manually.


Ask a question

If your question hasn't been answered yet, enter it below and I'd be happy to help you!
Your name:
Your e-mail address:
Please enter a brief description of what you need help with:

Enter a more detailed description of your issue. Remember, the more information you give the more likely you are to receive a prompt and accurate response.
Powered by Animus FAQGen. Download it and other free, easy to install scripts from Animus Programming.



© Copyright 2010 Animus ProgrammingTM. All rights reserved. No part of this web site may be reproduced, copied and/or distributed in any medium without express written permission.