NameSilo

Netscape/Firefox shows PHP code?!

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

JustNewbie

Established Member
Impact
2
I renamed all my .html files into .php. Then, I opened it in IE. Looks great! But when I open them in Netscape or Firefox, they showed the PHP code not a web page.

What is the problem of those php, I just can't figure it out. Someone please help.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Maybe post up the link to your site? So we can view the problem?
 
0
Close
Does your server have php installed? You do know that it is not configured inside of browsers. This means if you are previewing it, the code will show. You will have to upload it to a server that has php installed.
 
0
Close
Unless it's on a PHP enabled server then it will not understand/execute the PHP, therefore any decent browser should display the php code as if it were any other ordinary text. Internet Explorer is not excecuting any code, just hiding it as if it were inside normal HTML comments.

All you have to do is put it on a proper server.
 
Last edited:
0
Close
PHP is a server-side language. That means the code is processed before its sent to the browser. If you're seeing it in your browser that means PHP is not properly installed or configured.
 
0
Close
Do you have PHP locally running? If not, that's the problem. You need a server or install PHP on your own computer before it can interpret the code like Ron said ^^
 
0
Close
Or I guess it could be improperly coded. Missing the opening and closing <? and ?> tags for instance.
 
0
Close
OK, first I installed Apache on my computer. Then I put everything into the 'htdocs' directory and everything works. Next, I installed PHP on my computer and renamed every .html files into .php. Now, the problem occurs.

Link; http://jotp.no-ip.info/sungsiew/
p/s: It's my computer, therefore the server is not stable as you think.
 
0
Close
well you have to intergrate php for apache
 
0
Close
thats because you made it in frontpage...well I think it is..
 
0
Close
Now, I fixed it. Not frontpage problem. Thanks wackyjoe , I didn't integrate my Apache2.0 with PHP. Thanks everyone for helping me out.
 
0
Close
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back