How to execute PHP.EXE test.php - With no GUI from Visual Studio
Posted July 2nd, 2004 by rakics
Hi,
I have imported an PHP project into Visual Studio with VS.PHP enviroment. What I need is executing an script: install.php that refreshes MySql database. Usual way for this is to call PHP.EXE install.php, I have added PHP.EXE to Open With menu option but it opens Windows console and flushes/executes install.php and closes console, this happend to fast to see if there is an error in executing. How can I execute in VS.PHP an PHP source and see it output and that is not by using browser?
mailto: rakics @ neobee.net
Best regards,
Sasa


Re: How to execute PHP.EXE test.php - With no GUI from Visual St
What you need to do is put your file in your web server and execute it from there so that you can see waht happens with the general errors that might occur.
Re: How to execute PHP.EXE test.php - With no GUI from Visual St
This is a fair request. Please enter a feature request in the bugs database so we can keep track of it.
In the mean time you can try adding a sleep at the end of the script so you can see the output. Also Php may have a getchar function like in C where the program waits for a keyboard entry. Either way is a work around until I add a tool window in VS.Php that can let you see the output of a particular script. This is something I'm planning to add as part of the debugger integration effort.