Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
I'm in the final stages of building a website which uses FormMail to process two forms.
The site is to be hosted on netregistry.com.au servers, whose implementation of PHP requires that FormMail is configured to work with file based session handling.
Can anybody show me how to set up FormMail to do this? At the moment, when I submit forms from the netregistry site I get the following error:
Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: user (path: /tmp) in /clientdata/clients/b/a/barloan.com.au/www/pages/formprocessor3.php line 2306.
Here's the support documentation from netregistry:
File Based Session Handling For File Based session handling, you will be required to change the session save path from /tmp to your home directory.
Your home directory is the absolute server path to your hosting space on our servers.
Note: To get the full server path to your domain, use the syntax:
e.g. domain netregistry.com.au will have a server path:
Also, note that by default, session.save_handler is set to "user", this needs to be changed to "files". This needs to be changed in your code.
For further information, view: http://au.php.net/manual/en/function.ini-set.php
If the session.save_handler is set to "user", you will see an error on the screen, which will look something like this:
Fatal error: session_start(): Failed to initialize storage module: user (path: /clientdata/clients/e/x/example.com/www) in /clientdata/clients/e/x/example.com/www/file.php on line XX
This is because you are trying to use "user" mode, rather than "files".
The below should be added to your file:
I've tried setting the SCRATCH_PAD variable in the script to the path to my directory, but to no avail.
I can't find any reference to session.save_handler within the FormMail script, and can't figure out how to change the session save path from /tmp to my home directory.
Can anybody help with this?
Thanks in advance.
There are currently 1 users browsing this thread. (0 members and 1 guests)