View Full Version : HAving a small problem with PHP pages
SiNiStEr_NaTiOn
02-11-2004, 01:10 AM
I just got a free account for now and uploaded what I had done so far and when I type in the url to check the site out to make sure everything is ok, like it is offline. instead of showing my page it's showing my php code instead.
How can I view my pages instead of my coding.
Give us the domain name and we can take a look.
In general index.php should work fine.
If you are using PHP in an HTM or HTML file then add the following to the .htacess file in your public_html directory:# - to get Apache to parse PHP in HTML/HTM files as per HR FAQ
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htmSee the HR FAQ (http://support.hostrocket.com/index.php?page=index_v2&id=110&c=15) .
SiNiStEr_NaTiOn
02-11-2004, 10:51 AM
I had already done that because there are some pages that's strictly has html in the page with a few blocks of PHP.
but my index.php has only this
<?php
include 'header.php';
include 'main.php';
include 'footer.php';
?>
I know it works because I'm building this offline. The code above is all that exist in the index.php. I tried to view the site again around 9:45 and it wasn't able to pull anything and got an error something like there wasn't nothing there. So I tried again and got a connection refused. I had tried both the url and the test url and got the same results from both of them.
y6y6y6
02-11-2004, 11:48 AM
"I had tried both the url and the test url"
Which would be? Are you on the free servers?
Husky
02-11-2004, 10:59 PM
I'm having exactly the same problem. I am on the free servers. It used to work fine but not any more. I know my code works because I have built it offline.
Here is my homepage, go to 'Guest Book' on the side bar and you will see the problem.
http://www.husky.hostrocket.com/index.html
teafan
02-11-2004, 11:14 PM
Originally posted by Husky
I'm having exactly the same problem. I am on the free servers. It used to work fine but not any more. I know my code works because I have built it offline.
You are not alone, every single user on the free account had the same problem. It has being on and off for the last few days. So I think you just had to wait for HR to fix it. I believe is a server config problem. Nothing to do with your coding don't waste your time trying to trouble shoot.
SiNiStEr_NaTiOn
02-12-2004, 04:53 AM
K thanxs I just hope it will be fix soon
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.