Arwen-Undomiel.com
http://www.arwen-undomiel.com/forum/

PHP Help
http://www.arwen-undomiel.com/forum/viewtopic.php?f=27&t=9782
Page 1 of 1

Author:  keyodie [ July 19th, 2006, 10:09 pm ]
Post subject:  PHP Help

Well, I'm trying to convert my website to PHP, but for some reason it isn't working...it's just showing the content, so I guess the code for linking to the PHP file isn't right, but I copied it directly from a tutorial and I did name my files header.php and footer.php.

Here are the codes:

index.php
Code:
<?php include('header.php'); ?>
<center><h1>Between the Rain Drops</h1></center></td></tr><tr><td>Welcome to <b>Between the Rain Drops</b>! Here you will find some of my graphics and art, but you will find things that you may use as well. You may use the goodies (tutorials, brushes, textures, and photography [coming soon]) though a link back would be appreciated. Also, join the <b>Between the Rain Drops Forum</b>, a forum mainly for graphic artists but for other people too. (Roleplaying, General Discussion, Fun and Games, etc.) Anyway, just take a look around and leave a comment on the tagboard if you have time. Enjoy your stay! :)</tr></td>
<tr><td><h1>7.??.06</h1></td></tr><tr><td>(Update coming soon)
<?php include('footer.php'); ?>


header.php
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>

<head>

<TITLE>Between the Rain Drops</TITLE>
<META NAME="description" CONTENT="A website (with a forum) for graphic designers (preferably photoshop users) with goodies such as textures, brushes and tutorials.">
<META NAME="keywords" CONTENT="graphics, photoshop, textures, brushes, tutorials, forum, art">
<META NAME="author" CONTENT="Melissa">

<style text="text/css">
body,tr,td,p {font-size:8pt; font-family:verdana; letter-spacing:0pt; align:justify; line-height:13px; color:#626262;}
h1 {font-size:12pt; font-family:verdana; cursor:none; letter-spacing;0pt; align:justify; line-height:14px; color:#626262;}
b {color:#FFFFFF;}
input, textarea, {font-size:8pt; font-family:verdana; color:#626262;
background-color:transparent; border:0;}
</style>
<style type="text/css"><!--
body{
scrollbar-3dlight-color:#7D7D7D;
scrollbar-arrow-color:#A0A0A0;
scrollbar-base-color:#7D7D7D;
scrollbar-darkshadow-color:#7D7D7D;
scrollbar-face-color:#7D7D7D;
scrollbar-highlight-color:#A0A0A0;
scrollbar-shadow-color:#7D7D7D;
scrollbar-track-color:#A0A0A0;
}
--></style>
<style type="text/css">
A:link { text-decoration:underline; color:#3A3A3A;}
A:visited { text-decoration:underline; color:#3A3A3A; }
A:hover {text-decoration:underline overline; color:#FFFFFF; cursor:text; font-size:10pt;}
</style>

</head>

<body>

<body topmargin="0" leftmargin="0" rightmargin="0">
<body bgcolor="#000000" background="images/layout/background.jpg" bgproperties="repeat">
<img src="images/layout/header.jpg" border="0" height="500" width="750">

<div style="position:absolute; top:450; left:547; filter:alpha(opacity=100)">
<table width="165" style="border:0"></div><tr><td>
<center>Navigation</center></td></tr><tr><td>
<center><a href="????">Home</a></center></td></tr><tr><td>
<center><a href="????">My Stuff</a></center></td></tr><tr><td>
<center><a href="????">Sitely</a></center></td></tr><tr><td>
<center><a href="????">Goodies</a></center></td></tr><tr><td>
<center><a href="????">About Me</a></center></td></tr><tr><td>
<center><a href="????" target="_blank">Forum</a></center></td></tr><tr><td>
<!-- BEGIN CBOX - http://www.cbox.ws -->
<table border="0" cellpadding="0" cellspacing="0" summary="cbox tagboard" align="center">
<tr><td align="center">
<iframe frameborder="0" width="160" height="175" src="http://www2.cbox.ws/box/?boxid=1394169&amp;boxtag=5679&amp;sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border: #ababab 1px solid;" id="cboxmain"></iframe>
</td></tr><tr><td align="center">
<iframe frameborder="0" width="160" height="75" src="http://www2.cbox.ws/box/?boxid=1394169&amp;boxtag=5679&amp;sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border: #ababab 1px solid; border-top: 0px;" id="cboxform"></iframe>
</td></tr>
</table>
<!-- END CBOX -->
</tr></td></table></div>
<div style="position:absolute; top:455; left:35; filter:alpha(opacity=100)">
<table width=480 style="border:0"><tr><td>


footer.php
Code:
</td></tr></table></div>
</body>
</html>


Thanks in advance! :)

Author:  The Grey Pilgrim [ July 20th, 2006, 7:39 am ]
Post subject: 

Does your host allow php?
Are header.php and footer.php in the same directory (folder) as index.php?

Author:  keyodie [ July 20th, 2006, 2:42 pm ]
Post subject: 

Well, I'm doing it all on notepad right now.

And yeah, they are all in the same folder.

Author:  Gilraen Ringeril [ July 20th, 2006, 9:27 pm ]
Post subject: 

keyodie -- freewebs doesn't allow PHP, that's why it doesn't work ;) But since you got a new host, I think it should work there :) But you'd have to check ;)

oh! also - you can't test php files through your browser (by going to file - open - yourfile.html). you have to upload them to your host first ;) (you might've already known that, but oh well!)

Author:  keyodie [ July 20th, 2006, 9:36 pm ]
Post subject: 

^Ohh! Okay. I didn't know PHP didn't work through your browser. :p Thanks! :) **huggles**

It seems the answers to most of my questions here are obvious. :D

Author:  Gilraen Ringeril [ July 20th, 2006, 9:43 pm ]
Post subject: 

no problem! :hug: :) :)

no worries - I had no idea either when I started using PHP ;) I've had my share of stupid problems :P

Author:  The Grey Pilgrim [ July 20th, 2006, 10:35 pm ]
Post subject: 

Ah, yeah. PHP stuff actually works through a program that your web host installs. Because it doesn't run in your browser, it can do some things you can't do with HTML or JavaScript, like password pages and forums and things.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/