Page 1 of 1

Delphi XE Tunnel.php

Posted: Sun 01 Apr 2012 06:32
by rst20
I need a connection to a Database on a Webserver. So I tried to use mydac with tunnel.php.

This works not complete. I can open the connection in design mode, also the compiled program connects without debugging.

If I start the program in debug mode with the Delphi IDE, the connection fails with the error code 10004. In the log of the PHP-Script is written "Bad Client".

thanks Ralf

Posted: Tue 03 Apr 2012 13:26
by AndreyZ
Hello,

Such error can occur if there were no connections to the tunnel script during its lifetime (180 seconds by default). As a solution, you can increase the $LIFETIME variable value in the tunnel.php file.