PHP question
- Started
- Last post
- 26 Responses
- boobs
I'm trying to help a friend with a small .php problem.
She's had a website with a php contact form on it. It's worked fine for several years.
She switches to a new hosting company, copies all her files and folders to the new server. But now the form no longer works!
Both servers are running PHP 5.
Any idea what the problem might be?
- detritus0
Same domain?
- mikotondria30
Not without seeing the script and running some debugz.. Check any paths that are in the script, see if the mail() function is working, that sort of thing. Sorry not to be more help :/ Chuck it up on pastebin and we can see if there's anything obvious or where to start a line of inquiry..
- ETM0
Doesn't work is pretty broad. Any specific errors?
If you moved the files, the permissions of certain files may no longer be correct. Is there any documentation? Is the old server available so you can check file permissions there, versus the new setup?
- mikotondria30
Is php switched on ? :)
- dbloc0
so this is the page?
http://genuiforma.com/contact.ph…
- dbloc0
look here.
http://www.freecontactform.com/e…
- boobs0
The file above does work properly. It does send the form info to the owner.
But this same file, moved to another hosting company server (along with all the rest of the site and folders), does not work there.
- ETM0
But HOW does it not work now?? Is there an error? Is it not relaying the message to the user's inbox? Help us help you.
- boobs0
Here's the error message:
[27-Mar-2012 10:45:04] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/usr/local/apache/htdocs/includ... (include_path='.:/usr/lib64/php... in /home3/genuifor/public_html/cont... on line 65
- There is a module or library missing with the php install. Or it's in a different path than before.ETM
- The error is truncated and it's hard to see which one.ETM
- pastebin us the error :)mikotondria3
- mikotondria30
mm...it would be a little easier if you could pastebin the error..qbn is cutting off the full paths, as in "/includ... (inc"
I would also just try to upload and execute
<? print_r($_SERVER); ?>
just to see what's what in that set up..
or even of course
<? php_info(); ?>
- i_was0
ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็
- i_was0
[27-Mar-2012 11:15:00] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/includes/mail.inc.php' (include_path='.:/usr/lib64/php... in /home3/genuifor/public_html/cont... on line 65
Parsed in 0.012 seconds
- i_was0
[27-Mar-2012 11:15:00] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/includes/mail.inc.php' (include_path='.:/usr/lib64/php... in /home3/genuifor/public_html/cont... on line 65
Parsed in 0.012 seconds
[27-Mar-2012 11:15:00] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/includes/mail.inc.php' (include_path='.:/usr/lib64/php... in /home3/genuifor/public_html/cont... on line 65Parsed in 0.012 seconds
[27-Mar-2012 11:15:00] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/includes/mail.inc.php' (include_path='.:/usr/lib64/php... in /home3/genuifor/public_html/cont... on line 65Parsed in 0.012 seconds
[27-Mar-2012 11:15:00] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/includes/mail.inc.php' (include_path='.:/usr/lib64/php... in /home3/genuifor/public_html/cont... on line 65Parsed in 0.012 seconds
[27-Mar-2012 11:15:00] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/includes/mail.inc.php' (include_path='.:/usr/lib64/php... in /home3/genuifor/public_html/cont... on line 65Parsed in 0.012 seconds
[27-Mar-2012 11:15:00] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/includes/mail.inc.php' (include_path='.:/usr/lib64/php... in /home3/genuifor/public_html/cont... on line 65Parsed in 0.012 seconds
[27-Mar-2012 11:15:00] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/includes/mail.inc.php' (include_path='.:/usr/lib64/php... in /home3/genuifor/public_html/cont... on line 65Parsed in 0.012 seconds
[27-Mar-2012 11:15:00] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/includes/mail.inc.php' (include_path='.:/usr/lib64/php... in /home3/genuifor/public_html/cont... on line 65Parsed in 0.012 seconds
- mikotondria30
So what's the precise solution then, you rather rude young man ?
Don't make even the tiniest typo or error in your response - you can't now, can you, after all that rambunctiousness ?
Pastebin up the correct solution: now...- aka "Guess the bitter, oft-rejected old-timer with social development issues".detritus