Hi,
I have a small application which accesses a MySQL database and prints out the results.
I can either run the application from my windows desktop or from within a browser using 127.0.0.1/cgi-bin/application.exe
Here's the problem. When using XAMPP the application works fine in both modes, but when using WAMP the application only works from the desktop, not when run from within a browser.
Both XAMPP & WAMP have the same verion of Apache (2.4.2) and the same version of MySQL (3.5.1).
The details are:
Run from the desktop using XAMPP = Application works fine
Run from within Browser using XAMPP = Application works fine
Run from the desktop using WAMP = Application works fine
Run from within Browser using WAMP = Runs ok, but stops when it reaches the MySQL bit and displays "Unable to connect to MySQL Database".
The fact that the application works correctly from the desktop in WAMP rules out a privilege problem.
Likewise it runs any code prior to the MySQL bit in the browser ok, so it's not an Apache config problem i.e. It is running the .exe ok.
Can't see any reason as to why the application only fails in a browser when using WAMP.
Any guru have the answer?
Thanks & regards,
Pete
