I have Eclipse editor, and i need to run开发者_如何学JAVA my php web application. So which is the better way to run, either Run As---> PHP Script or Run As---> PHP web page. Presently for both I am getting the notification error. Please help me in this....
That is not true at all. You can run php scripts from the command line using "php scriptname.php "
Mh don't think that you can just run it... try it with xampp and put the project folder in the htdocs folder of xampp for example
i've never used run as php script, always as run as web page then give the url that corresponds to that page, or if you need to debug a page that give the url that will then call the file that you want to debug
You can't really run your PHP scripts as programs, you need to setup a [local] server with PHP. After doing so, all you will have to do to run the code would be to open the corresponding URL in the browser. If you install XAMPP which is the most common choice for local development, you will be able to access your files through the localhost
URL.
精彩评论