inherit
88478
0
Dec 3, 2024 17:13:56 GMT -8
Robyn
22,568
September 2006
millsberryfanrob
|
Post by Robyn on Nov 9, 2009 18:03:10 GMT -8
www.robertcity.comI have setup the php file as such: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <html> <head> <link rel="stylesheet" type="text/css" href="./style.css" /> <title>Welcome to RobertCity.com</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> </head> <body> <?php require_once "./menu_home.php"; ?> <font size="6">Welcome to RobertCity.com</font><br /><br /> Welcome<p> <?php require_once "./footer.php"; ?> </body> </html> Each of those .php files are on the same folder as the index file, which should load by default when loading the link above. Yet it doesn't load up the template? And even more strange, if you go to www.robertcity.com/menu_home.php you can see the images and links. What's wrong?
|
|
inherit
125499
0
Nov 8, 2011 4:03:57 GMT -8
moneyman18
:-
952
June 2008
moneyman18
|
Post by moneyman18 on Nov 9, 2009 18:16:09 GMT -8
Make sure your index file is index.php and not index.html or anything like that.
Also you have that <p> tag with out its closing unless its in the footer file.
Edit: And as far as I am aware there is only suppose to be one html tag at the beggining...
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Nov 9, 2009 20:08:33 GMT -8
Like moneyman said, I'd make sure you have it saved as index.php. That's normal and means that file is working. The browser can still display HTML elements without the other tags that you are supposed to have. And I just noticed that you have your pages saved as .html. <a href="./index.html"><img src="./images/home-on.png" /></a><a href="./about.html"><img src="./images/about.png" /></a><a href="./news.html"><img src="./images/news.png" /></a><a href="./ar.html"><img src="./images/ar.png" /></a><a href="./games.html"><img src="./images/games.png" /></a><a href="./community.html"><img src="./images/community.png" /></a><a href="./blog.html"><img src="./images/blog.png" /></a><a href="./contact.html"><img src="./images/contact.png" /></a>
|
|
inherit
88478
0
Dec 3, 2024 17:13:56 GMT -8
Robyn
22,568
September 2006
millsberryfanrob
|
Post by Robyn on Nov 10, 2009 5:32:55 GMT -8
I have updated the website to redirect to robertcity.com/index.php, removed the <P> and the <html> and changed the .html to .php and still the template won't load... By the way, what's the difference (if any) between http:// and http://www. ?
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Nov 10, 2009 10:10:21 GMT -8
There isn't one. instead of require_once "./file.php", use include('file.php');
|
|
inherit
88478
0
Dec 3, 2024 17:13:56 GMT -8
Robyn
22,568
September 2006
millsberryfanrob
|
Post by Robyn on Nov 10, 2009 10:36:20 GMT -8
I changed it but it still won't appear.
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Nov 10, 2009 13:43:00 GMT -8
I have updated the website to redirect to robertcity.com/index.php, removed the <P> and the <html> and changed the .html to .php and still the template won't load... By the way, what's the difference (if any) between http:// and http://www. ? Did you hit "Save As" instead of just renaming the .html file, and then replace the .html file?
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Nov 10, 2009 14:01:49 GMT -8
Oh lawd. I didn't even view the source code. It's displaying the PHP. jordan, PHP isn't a mime-type so Save As isn't going to effect it. PHP parses based on extension. Robert, it looks as though your host doesn't support PHP. That, or it doesn't have it enabled by default. You should ask them about it. If they do have it, it may not be associated with PHP extensions, and there's some .htaccess you can use to fix that. But that seems silly that they wouldn't.
|
|
inherit
88478
0
Dec 3, 2024 17:13:56 GMT -8
Robyn
22,568
September 2006
millsberryfanrob
|
Post by Robyn on Nov 10, 2009 14:28:17 GMT -8
Oh lawd. I didn't even view the source code. It's displaying the PHP. jordan, PHP isn't a mime-type so Save As isn't going to effect it. PHP parses based on extension. Robert, it looks as though your host doesn't support PHP. That, or it doesn't have it enabled by default. You should ask them about it. If they do have it, it may not be associated with PHP extensions, and there's some .htaccess you can use to fix that. But that seems silly that they wouldn't. Um, my host does, because I use php in this website: wahsweb.kariesweb.robertcity.com/And it displays just fine.
|
|
inherit
39608
0
Nov 26, 2011 18:53:00 GMT -8
iDunk
Previously Computerpros
2,533
April 2005
computerpros
|
Post by iDunk on Nov 10, 2009 22:35:31 GMT -8
It doesn't appear as though this problem is still occuring. I see the navigation, etc. just fine and no PHP source is shown. Can you confirm that it's working for you Robert?
-iDunk
|
|
inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Nov 11, 2009 4:18:59 GMT -8
All seems to be working for me too!
|
|
inherit
88478
0
Dec 3, 2024 17:13:56 GMT -8
Robyn
22,568
September 2006
millsberryfanrob
|
Post by Robyn on Nov 11, 2009 5:47:42 GMT -8
Yeah I went to my host's c-panel and checked the menu_home.php file and it was full of those special characters, so I replaced it with text, changed ./ to robertcity.com/, and changed .html to .php.
|
|