Reputation: 11
I have Eclipse editor, and i need to run 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....
Upvotes: 1
Views: 4429
Reputation: 21
That is not true at all. You can run php scripts from the command line using "php scriptname.php "
Upvotes: 2
Reputation: 808
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.
Upvotes: 0
Reputation: 12142
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
Upvotes: 0
Reputation: 1763
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
Upvotes: 1