How do I save my php file? For example: CSS(.css) HTML(.html) and do I need a network before I can display / output my code. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How do I save my php file? For example: CSS(.css) HTML(.html) and do I need a network before I can display / output my code.

How do I save my php file? For example: CSS(.css) HTML(.html) and do I need a network before I can display / output my code.

15th Sep 2020, 6:02 PM
Adedeji Michael
Adedeji Michael - avatar
6 Answers
+ 3
Save it with .php extension. Actually, this is different from HTML and CSS that runs on the client's computer. PHP has to run on a server. The easiest way is to install a LAMP stack software like XAMPP. https://www.apachefriends.org/download.html No configuration is needed. If you just need PHP alone without MySQL, Tomcat, Filezilla.... You can download the binary from their official website. https://www.php.net/downloads.php You can simply start the built-in web server with the -S command php -S 127.0.0.1:80 For this to work you must have set your php path correctly.
15th Sep 2020, 7:51 PM
Ore
Ore - avatar
+ 6
It will be saved with .php and you'll select all file in the type.
16th Sep 2020, 7:37 PM
Oladimeji Abdrahman
Oladimeji Abdrahman - avatar
+ 4
Its not necessary to use internet connection but you must have download xamp
16th Sep 2020, 7:39 PM
Oladimeji Abdrahman
Oladimeji Abdrahman - avatar
15th Sep 2020, 6:14 PM
Dcc Lord
Dcc Lord - avatar
+ 1
Okay thanks
15th Sep 2020, 10:22 PM
Adedeji Michael
Adedeji Michael - avatar
15th Sep 2020, 7:27 PM
JaScript
JaScript - avatar