Many thanks
Testing PHP on my PC
Moderator: General Moderators
Testing PHP on my PC
How can I test/run PHP scripts on my PC without having to upload it to a internet host ?
Many thanks
Many thanks
Well you basically install php on your PC
http://php.net/install
You will probably want to install apache and mysql too. And if you want people from outside to see stuff on your PC there are some additional networking adjustments and security considerations.
But go one step at a time.
If have specific problems with install procedure let us know.
Enjoy
http://php.net/install
You will probably want to install apache and mysql too. And if you want people from outside to see stuff on your PC there are some additional networking adjustments and security considerations.
But go one step at a time.
If have specific problems with install procedure let us know.
Enjoy
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
might I suggest using Uniform Server?
http://www.uniformserver.com/
might make things easier to set up (just unzip and run) - comes with mysql, phpmyadmin, apache, etc...
http://www.uniformserver.com/
might make things easier to set up (just unzip and run) - comes with mysql, phpmyadmin, apache, etc...
Actually it probably wasnt installed properly as I uninstalled it but get the same results through Firefox.
Not sure what I did wrong as it seemed to install ok. Just did basic install, no server options.
Firefox just displays :-
".$mydate."
"; echo "";$img=$myback_colort=$bgcolo; #include "pom.html"; echo "";} echo ""; #echo ""; unset($img); } }echo "
"; $sc1=" "; $ip_list=file("ip_list.txt"); for ($i=0; $i
".$ip_address[2]." ". $ip_address[0]." ".$ip_services[$j]."
"; } else { print"The file ip_list.txt does not exist"; } ?>
Im trying to run a network monitor program that just pings specified network devices periodically. I cant run from the internet cos it wont find the IPs im trying to ping due to network security / firewalls, hence I have to run the script locally.
Not sure what I did wrong as it seemed to install ok. Just did basic install, no server options.
Firefox just displays :-
".$mydate."
"; echo "";$img=$myback_colort=$bgcolo; #include "pom.html"; echo "";} echo ""; #echo ""; unset($img); } }echo "
"; $sc1=" "; $ip_list=file("ip_list.txt"); for ($i=0; $i
".$ip_address[2]." ". $ip_address[0]." ".$ip_services[$j]."
"; } else { print"The file ip_list.txt does not exist"; } ?>
Im trying to run a network monitor program that just pings specified network devices periodically. I cant run from the internet cos it wont find the IPs im trying to ping due to network security / firewalls, hence I have to run the script locally.
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
uniform server - seriously. Setting up all the components yourself seems a tad high on the old learning curve if you just want to get up and running quickly (<1min).
Then use http://localhost/ to access your local site.
Then use http://localhost/ to access your local site.