Can php scripts be run on the desktop?
by Kmeron
Question by simpleonline12: Can php scripts be run on the desktop?
I’m going to try to pick up php to write some basic scripts and I was wondering if php is only for scripts that run on a server or can you create scripts with php that can run on a desktop as well?
Best answer:
Answer by Toby
You can create PHP scripts that run at the command line; however, any PHP script that you intend to run from a web browser needs to be on a server. Your desktop can be a server if you install IIS, Apache, or Nginx.
If you’re looking to do desktop scripting, Python is probably a better choice. PHP is designed for web scripting. Python is designed for what I think you mean by desktop scripting.
Add your own answer in the comments!