|
|
|
|
Installing the Form Mailer script (Perl version) FAQ
The following questions have been answered:Submitting forms goes straight to the admin page. |
| Question: The script works with the included form but any other form causes it to open the admin page. Am I doing something wrong, or is the script designed to only work with the sample form? | Answer: While the sample form is designed to work for the majority of people, I understand that some people may need to customize it. If you do customize it, you need to leave the line:
<input type="hidden" name="action" value="send">
somewhere inside the form. This line lets the script know that it is being used to send a form, as opposed to being accessed by you to change the settings, add a recipient, et cetera.
Also note that I'd really, really like it if you did not remove the link back to my site without paying for the script. I acknowledge that I can't force you to leave it in, but please realize that I'm only able to distribute my scripts freely because people like you leave the link in it.
|
Getting a permission denied error |
Question: I have installed the script and went to it with my browser. When I do, I get the message "Warning: open(afmd/formdata.txt) [function.fopen]: failed to open stream: Permission denied in /home/lifeboat/public_html/fmail/fmail.php on line 27"
I would be grateful for any assistance. | Answer: This error means that the script does not have permissions to read from, or write to the data directory. Typically this is because the permissions of the data directory, or the files in it, have been changed. To fix it, just set the permissions for the data directory and all files in it to 770 -- this is read/write/execute for owner and group, and nothing for public.
|
Where are the instructions? |
| Question: Where can I find the instructions or installing this script? | Answer: You can find the installation instructions in the readme.txt file included in the .zip file. Note that installation should be extremely simple, it's really just a matter of deciding where you want the script and uploading it there.
|
500 Internal Server Error |
| Question: When I point my web browser at the script, I get an error message. | Answer: If your FPT software gives you a choice, make sure that you've uploaded the script as ASCII instead of binary. Make sure that you have set the scripts permissions to 755 as well. This is read/write/execute for owner, read/execute for everyone else.
|
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 |
|
|
|