|
Post by Moonstar on Aug 8, 2006 23:30:47 GMT -5
hi all. I'm trying to install a php header and footer to make uploading my site eaiser. However i was told the coding was wrong and I needed to install a certain program, which I don't even know how to use. The php works but the layout isn't appearing now. HELP? /
|
|
|
Post by Betty Ann on Aug 9, 2006 20:44:02 GMT -5
hi all. I'm trying to install a php header and footer to make uploading my site eaiser. However i was told the coding was wrong and I needed to install a certain program, which I don't even know how to use. The php works but the layout isn't appearing now. HELP? / Can you post a copy of the exact error message, and a copy of your code please?
|
|
|
Post by Moonstar on Aug 11, 2006 9:38:00 GMT -5
hm...I'm not getting that message now, but I still can't get the layout to work. <_<
|
|
|
Post by Betty Ann on Aug 11, 2006 13:04:53 GMT -5
hm...I'm not getting that message now, but I still can't get the layout to work. <_< Ok, can you show me your code and the link to your website? Maybe I can help you, but I need to see the code first, and then I might be able to figure out what the problem is.
|
|
|
Post by Moonstar on Aug 15, 2006 0:39:22 GMT -5
<? include('top.txt'); ?> <? include('bottom.txt'); ?> top includes: <html> <head> <style type="text/css" title="currentStyle"> @import "summer.css"; </style> <TITLE>[ Moonlit Stars vers. Summer Serenity ]</TITLE> </head> <body> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <div id="title"> </div> <div id="content"> <!-- CONTENT BEGINS HERE --> bottom includes: <p class="title" align="center">Copyrights</p> <p class="contents"> Sailor Starlights Copyright Naoko Takeuchi<br> site © to <a href="mailto:moonstar@NOSPAMreisei-sa.net">moonstar</a><br> current layout image © @ <a href="http://www.moon-prism.net" target="_blank">moon-prism.net</a><br> hosted by : <a href="http://www.reisei-sa.net" target="_blank">reisei-sa.net</a><br> all rights reserved, 2006</p> </div> <br><br> <center> </center> <br><br> </div> </body> </html> site is: www.reisei-sa.net/moonlitstars/Adopted.html
|
|
|
Post by shimanneke on Aug 15, 2006 8:44:20 GMT -5
aah the Galaxia and Kakyuu adoptables are too cute
|
|
|
Post by Betty Ann on Aug 15, 2006 19:40:09 GMT -5
Try making the .txt files into .html files (they really should be), and then using this php code instead: <?php require("top.html"); ?> <?php require("bottom.html"); ?> You should also make EXTRA sure that they're pointing to the right place. It might be best to put www.reisei-sa.net/moonlitstars/bottom.html instead of just bottom.html ...
|
|
|
Post by Moonstar on Aug 15, 2006 20:18:33 GMT -5
umm..it didn't work. *sighs and sweatdrops* I wonder if I did the top and bottom codes right....
|
|
|
Post by Betty Ann on Aug 15, 2006 23:38:29 GMT -5
Oh!! You need to save the MAIN file as a .php file, not a .html file!! So it should be Adopted.php, not Adopted.html !!!
|
|
|
Post by Moonstar on Aug 16, 2006 0:10:26 GMT -5
so I have to change all my files to php now?
|
|
kali
Senshi in Training
Posts: 42
|
Post by kali on Aug 16, 2006 6:51:56 GMT -5
If you are using PHP includes on all of them, yes.
|
|
|
Post by Betty Ann on Aug 16, 2006 11:14:02 GMT -5
so I have to change all my files to php now? yup.
|
|
|
Post by Moonstar on Aug 16, 2006 13:49:58 GMT -5
*cries* nothing's working! She(MY HOST) told me I have PHP. <_<
|
|
|
Post by Betty Ann on Aug 16, 2006 19:57:06 GMT -5
*cries* nothing's working! She(MY HOST) told me I have PHP. <_< Be calm!! I think that you do have PHP, because your host is usig PHP on her site. Here are some steps to follow: - Make sure to make EVERYTHING end in the .php extension - Use the code I gave you earlier - Make sure the path to the PHP file is right. You might need to make it THE FULL URL. If that doesn't work, you might need a different path. For example, the path to PHP files on my old site was something really complicated, not the URL. Ask your host what the PATH to PHP files is. This is really, really important, because it won't work at all if it's not pointing to the right place. If the FULL URL doesn't work, ask you host for the PATH. - Don't panic!! You will get it working
|
|
|
Post by Moonstar on Aug 24, 2006 9:52:16 GMT -5
|
|