Error connecting with php tunnel
Posted: Mon 18 Mar 2013 14:20
Hi there,
I'm using MyDAC 5.90.0.57 and try to connect my application with php tunnel 1.5. The're the code that I use to get the things done for the connection regarding to the MyDAC.pdf on page 47.
My DB credential has been tested with PhpMyAdmin on the server where is located tunnel.php.
I'm not quite sure regarding the docs what mpHttp protocol basic needs and if it simply discard SERVER and PORT or any other unuseful option to him.
Tunnel.php seems ok from the outside regarding this message

A little help is required on this monday morning
I'm using MyDAC 5.90.0.57 and try to connect my application with php tunnel 1.5. The're the code that I use to get the things done for the connection regarding to the MyDAC.pdf on page 47.
My DB credential has been tested with PhpMyAdmin on the server where is located tunnel.php.
Code: Select all
myConnection.Options.Protocol := mpHttp;
myConnection.Database := 'my_dbname';
myConnection.Username := 'my_username';
myConnection.Password := 'my_password';
myConnection.HttpOptions.Url := 'http://my_domainename.com/tunnel.php';
myConnection.Server := 'localhost';
myConnection.port := '3306';
myConnection.Connect;Tunnel.php seems ok from the outside regarding this message
When running my application, i'm getting this error (inside and outisde the IDE) :HttpTunnel v1.5
Tunnel script is installed correctly.
You can establish connections through the HTTP tunnel.

A little help is required on this monday morning