[PHP] DNS lookups only sometimes
I have an email validation script written in PHP that works on most Apache machines I try it on, with the exception (of course) of my production box that it needs to go on. This production machine is a Slackware 10.2 box, running Apache 1.33 and PHP 4.4.0. The script works if I call it from the command line with "php -f filename" however, if I try to call the same script from a browser (served by httpd) the DNS check is never made, and the script returns that the domain of the email address is invalid. The httpd people tell me that once Apache calls a .php page, PHP handles the actual parsing of that page, so if these DNS queries aren't happening when the page is called through a browser, what is changing from when they are called from the command line? Thoughts? Best, Jadel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] DNS lookups only sometimes
Thank you for your reply. > You'd first have to show us the source code that does the email checks. > In addition, see if you can dig out the httpd.conf and php.ini that > are used on the production server, and post links to them, after > removing any data you consider sensitive. As I am responsible for the machine, I have created the following site with all the information you have requested: http://emailtest.altig.ca There you will find: email.php (the actual script) email_php.php (the php code) httpd.conf php.ini I've set up several machines like this in the past, and have not done anything too fancy regarding Apache or PHP, and in fact, have used the Slackware 10.2 binaries for both. If there are any other questions you need before we can work towards a solution, please let me know! Otherwise, what to do next?! Best, Jadel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php