0

How to run Php code offline?

I found out that php is a server side programming lang, so it can run on web servers, but how to run it on local device even without and internet connectivity? Is there a php compiler for that? if the, pz tell me. I dont get wifi most of time cuz I steal my neighbour's (but onky at nite :)

23rd Feb 2019, 5:38 PM
Shubham Tiwary
Shubham Tiwary - avatar
2 Respuestas
+ 12
InvokerX first install Xampp server on your PC then on the Apache server and MySQL from that xamp server you can do that by going on your browser then type localhost and enter then choose phpmyadmin and start this above 2 mention server. Then you need any environment like sublime or notepad++ then run your code by adding path to the file in browser like for eg. If your file a.php is store in folder htdocs present in xampp folder at C drive then in that folder u have an folder name sololearn then your file a.php so you need to just give the path of that file in browser C://htdocs//sololearn//a.php This way you can access the php code without going online
23rd Feb 2019, 5:46 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 3
You can do it in two ways. In first type you can install and configure apache php and mysql one by one manually Or in second type use easy to install local server sotwares like xampp, wamp, easyPHP ect. By using any one method your pc will run as a server and you can easily test your php codes without any internet connectivity.
24th Feb 2019, 3:04 AM
ajin_bnk
ajin_bnk - avatar