Run PHP without webserver
binarysoul
Member Posts: 993
in Off-Topic
I'm testing some PHP code and was wondering if there's any way to run it on my PC without use of webserver.
If I have to install a web server, how can I have it "local" only aside from using a firewall?
If I have to install a web server, how can I have it "local" only aside from using a firewall?
Comments
-
dynamik Banned Posts: 12,312 ■■■■■■■■■□What OS are you using?
http://us2.php.net/features.commandline
Most web servers will allow you to specify which IPs/IP-ranges to allow/block. -
Plazma Member Posts: 503You can use the php command line tool much like you would use "perl" or "python" just php <yourfile.php>
Keep in mind without a webserver you won't be able to do much "active" testing if you use forms and such.CCIE - COMPLETED! -
bighornsheep Member Posts: 1,506I'm not sure what you mean by having it local without a firewall...but this is my favourite LAMP package:
http://www.apachefriends.org/en/xampp-windows.html
Supports many extended php and js library, or toolkits. Can run as nt-service if need be.Jack of all trades, master of none