Connection to mysql works through php but not through a form submission?

Posted by Legend on Stack Overflow See other posts from Stack Overflow or by Legend
Published on 2010-03-24T03:11:53Z Indexed on 2010/03/24 3:23 UTC
Read the original article Hit count: 194

Filed under:
|

I have a download.php file that connects to a remote mysql database. If I run it using

php download.php

it works fine. But if I create another php file form.php and then submit the form to this download.php, it complains the following:

Can't connect to MySQL server on '<IP_ADDRESS>' (13)

Does anyone know why this might be happening? I can't see a reason why this works directly but fails to work upon form submission...

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql