Animus Programming
Home Scripts Design Contact

Resources
Custom Work
Contact Us
Glossary
Tell a friend
About Us



Installing the Form Mailer script (PHP 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.


Slashes in from of apostrophes

Question: The script seems to be working, but whenever it sees an apostrophe it puts a forward slash in front of it. For example, if I write "I'm really enjoying this site" in a form, it submits as "I/'m really enjoying this site".
Answer:
This was a glitch with an early version of the script that affected some servers. It has been fixed, to make the problem go away just upgrade to the most recent version of the script. Note that if unwanted forward slashes appear in any of your auto responses, setup information, etc. you will have to remove them manually.

Sorry about that, this was actually the first PHP script I have released.


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.


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.