blastbum Posted May 15, 2007 Share Posted May 15, 2007 Hi, I got the following error after I clicked on submit on this page (http://www.gbdental.com.au/newsite/contact.html): Fatal error: main() [function.require]: Failed opening required '/config.php' (include_path='.') in d:\wwwsites\gbdentalcomau\www\mailer.php on line 4 I have attached the "mailer.php", "config.php" and the "contact.html" files. I'm pretty sure it should be an easy fix. Your help will be greatly appreciated. Kind regards, Dan [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/51482-solved-getting-fatal-error-with-mailerphp-file-please-help/ Share on other sites More sharing options...
stevesimo Posted May 15, 2007 Share Posted May 15, 2007 Check your link to the config.php file, is it in the same directory? I think the problem is that when you click submit the page you are linking to cant be found. Check the path linking to the file. Quote Link to comment https://forums.phpfreaks.com/topic/51482-solved-getting-fatal-error-with-mailerphp-file-please-help/#findComment-253543 Share on other sites More sharing options...
blastbum Posted May 15, 2007 Author Share Posted May 15, 2007 Mmmmmmm..... Maybe because the directory that the site is in at the moment is "/newsite" which is the temporary development directory. What does it mean by (include_path='.')? Is there something that I'm not doing right? I really appreciate your help. Kind regards, Dan Quote Link to comment https://forums.phpfreaks.com/topic/51482-solved-getting-fatal-error-with-mailerphp-file-please-help/#findComment-253565 Share on other sites More sharing options...
MadTechie Posted May 15, 2007 Share Posted May 15, 2007 you have 2 config.php files, try changing /config.php to config.php review the file on the top level Quote Link to comment https://forums.phpfreaks.com/topic/51482-solved-getting-fatal-error-with-mailerphp-file-please-help/#findComment-253577 Share on other sites More sharing options...
blastbum Posted May 16, 2007 Author Share Posted May 16, 2007 Thanks MadTechie. Problem solved. :-) Quote Link to comment https://forums.phpfreaks.com/topic/51482-solved-getting-fatal-error-with-mailerphp-file-please-help/#findComment-254085 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.