+ 1
Why PHP can not run on computer? Why only on server?
11 Answers
+ 7
Correction: php runs as a service.
If you install IIS, Apache, nginx etc on a workstation, it will run there too, as a cgi or a module.
The 'server-side' bit is that it is intended to preprocess stuff (in response to a client request) before injecting new content into HTML served to a client application (browser, wget, telnet, etc).
Server-"side" just means it's not intended to run in the client, not that both sides can't be on the same host.
+ 6
You can install it on computer. and PHP is server side it needs server to run. If I understand your question correctly means you want to run java without JVM. or c++ without compiler. Dude it is created for that it needs that. And for using it on computer download xammp or wamp. I suggested you to use xammp, Coz I don't know. But I love to use it than wamp. And with PHP you can also create GUI application. It will client side. but you are new bee don't go there.
+ 3
A web server is a software residing on the server (computer) and is used to handle requests from the client (computer). You can run PHP codes on your personal computer itself if you install a web server like Microsoft IIS or Apache Tomcat.
+ 2
because php runs as a service
+ 1
install php on your os
you can run php scripts clients side like python
it only runs on terminal and hasnt graphic mode
+ 1
@Teresa (I'd post on your code but you don't have any) - your 'apologies' (27th/28th) appear to be unrelated/from another thread (these, one other and you have another one that appears to be truncated). In case there's corruption related to your app/account you might want to write sololearn.
+ 1
php is like a waitress in a restaurant. she works there to bring you food and drinks and everything is fine. you can also have her at your home, but she cant bring you any food without the restaurant. maybe this is a bit of an oversimplification.
+ 1
you can run it on online php executor... it worked for me
0
Because PHP is a SERVER-SIDE scripting language.
0
- Because PHP is server side scripting language..
and if you want to run PHP in your personal computer then you can just install WAMP or XAMP.
download link: https://www.apachefriends.org/download.html
0
It requires a server. Server compiles it and rearrange the loops into html that you can inspect.
I use XAMPP server.