User avatar
grabbitmedia
Posts: 2
Joined: Wed Dec 28, 2016 5:27 am
Location: lahore,Pakistan
Contact: Website

Why my PHP code won't open in Google Chrome? read detail

Wed Dec 28, 2016 7:24 am

I'm using Debian Linux, and I just wrote some HTML code , and it's working perfectly. I called it ''Flist.html''. After that I have added php code to this HTML , and it's not showing to page.Then I changed ''Flist.html'' to ---> ''Flist.php'' , and I can't even open the page in that way.

Thanks
Johnag
http://www.grabbitmedia.com
http://www.grabbitmedia.com/

willieaames
Posts: 18
Joined: Tue Aug 09, 2016 6:14 am

Re: Why my PHP code won't open in Google Chrome? read detail

Wed Dec 28, 2016 10:52 am

if you see things like:

Code: Select all

<?php

code code code

?>
then your php is not being processed. If you are just opening the file saved locally in your web browser, this is what will happen. PHP needs to sit on a server to run. A server can be local, look for an AMP stack for your computer.

Otherwise upload the file to a web server that offers php support and you should see what you are expecting.

Return to “General discussion”