+ 1

Why PHP can not run on computer? Why only on server?

23rd Dec 2016, 4:58 PM
Abhishek Patil
Abhishek Patil - avatar
11 Antworten
+ 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.
23rd Dec 2016, 5:05 PM
Kirk Schafer
Kirk Schafer - avatar
+ 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.
23rd Dec 2016, 5:15 PM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 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.
5th Jan 2017, 2:44 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 2
because php runs as a service
5th Jan 2017, 4:30 PM
Arpit Sharma
Arpit Sharma - avatar
+ 1
install php on your os you can run php scripts clients side like python it only runs on terminal and hasnt graphic mode
24th Dec 2016, 7:20 AM
king coder
king coder - avatar
+ 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.
5th Jan 2017, 1:05 AM
Kirk Schafer
Kirk Schafer - avatar
+ 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.
5th Jan 2017, 12:16 PM
Chris
+ 1
you can run it on online php executor... it worked for me
5th Jan 2017, 12:16 PM
Arpit Sharma
Arpit Sharma - avatar
0
Because PHP is a SERVER-SIDE scripting language.
5th Jan 2017, 7:58 AM
Akshay Kapoor
Akshay Kapoor - avatar
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
5th Jan 2017, 6:50 PM
Miten Patel
Miten Patel - avatar
0
It requires a server. Server compiles it and rearrange the loops into html that you can inspect. I use XAMPP server.
28th Jan 2017, 3:05 AM
Animesh
Animesh - avatar