Page 1 of 1

PHP form problem

Posted: Fri Mar 19, 2004 7:15 am
by roggo
Hi, I'm currently running PHP locally on my machine under Windows XP Home. I recently tried to make a PHP form handler script, but it said that there was an error on Line X (X being the line containing my email details), thinking that the script was erroneous, i found another, but when i came to use it, the same error appeared, again on the line containing my email info. It said "Warning: Failed to Connect in c:\apache\htdocs\form.php on line X". I am not sure why it is doing this, but i believe it may have something to do with me running the program locally, instead of in a web server environment.

Any help would be greatly appreciated
Many Thanks
Roggo :D

Posted: Fri Mar 19, 2004 7:18 am
by markl999
The full error and the line that's causing it (and a couple of lines above and below it) would help ... even the whole script if it's not too big :o

Posted: Fri Mar 19, 2004 8:13 am
by TheBentinel.com
markl999 wrote:The full error and the line that's causing it (and a couple of lines above and below it) would help ... even the whole script if it's not too big :o
Agreed, send the message and the code.

To send mail, you'll need to name your SMTP server, so that may be what it's not connecting to.