Dynadot โ€” .com Registration $8.99

Netscape/Firefox shows PHP code?!

Spaceship Spaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Maybe post up the link to your site? So we can view the problem?
 
0
•••
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
•••
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
•••
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
•••
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
•••
Or I guess it could be improperly coded. Missing the opening and closing <? and ?> tags for instance.
 
0
•••
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
•••
well you have to intergrate php for apache
 
0
•••
thats because you made it in frontpage...well I think it is..
 
0
•••
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
•••
Unstoppable Domains
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back