Probably a better solution would be to place the PHP directory before the MySQl directory (in fact, on the systems where I install PHP, I just put the PHP directory as the first directory in the PATH variable).
Ah yes, I have forgotten about order in the system path.
nb you may have to play around with the exact location, I had to create a second htdocs.
If you would learn just a little about configuring your webserver (e.g., on editing httpd.conf for Apache), you would be able to get it to point to the right location without resorting to such hacks.