Connection to mysql works through php but not through a form submission?
- by Legend
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...