Ian.V
Ian.V

Reputation: 375

php loading in a terminal or similar

I was wondering is it possible to program php without it being able to get accesed from another computer, and is it possible to load it in a terminal or in something that is not a browser?

Upvotes: 0

Views: 57

Answers (1)

Splinti
Splinti

Reputation: 385

On linux you can just type

php ExampleFile.php

On Windows you either put the php.exe in your PATH variable or do the same:

c:\PathToPhpInstallation\php.exe ExampleFile.php

to run the file without even having a webserver. You just need to have php installed.

Upvotes: 1

Related Questions