Rules      FAQ       Register        Login
It is currently May 11th, 2025, 10:25 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: PHP Help
PostPosted: July 19th, 2006, 10:09 pm 
Istari
Istari
User avatar

Joined: 28 June 2005
Posts: 2310
Location: USA

Offline
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! :)

_________________
<center>
<a href="http://raindrops.lemon-drop.net/">Between the Rain Drops</a>
[ + @ # ? : ]


Top
 Profile       WWW            
 
 Post subject:
PostPosted: July 20th, 2006, 7:39 am 
Rider of Rohan
Rider of Rohan
User avatar

Joined: 10 December 2005
Posts: 134

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

_________________
<img src="http://thulcandra.com/randombanner/banner.php" title="Banner by Arwen">
I can help with HTML/CSS/JavaScript/PHP/ASP. I can't do graphics or layouts.
Post in Site Help, I'll see it. Or PM me.


Top
 Profile                  
 
 Post subject:
PostPosted: July 20th, 2006, 2:42 pm 
Istari
Istari
User avatar

Joined: 28 June 2005
Posts: 2310
Location: USA

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

And yeah, they are all in the same folder.

_________________
<center>
<a href="http://raindrops.lemon-drop.net/">Between the Rain Drops</a>
[ + @ # ? : ]


Top
 Profile       WWW            
 
 Post subject:
PostPosted: July 20th, 2006, 9:27 pm 
Maia
Maia
User avatar

Joined: 04 June 2005
Posts: 4449
Location: Northern USA

Offline
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!)

_________________
Image
<center>icon & banner by me
skyward-thoughts
</center>


Top
 Profile       WWW            
 
 Post subject:
PostPosted: July 20th, 2006, 9:36 pm 
Istari
Istari
User avatar

Joined: 28 June 2005
Posts: 2310
Location: USA

Offline
^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

_________________
<center>
<a href="http://raindrops.lemon-drop.net/">Between the Rain Drops</a>
[ + @ # ? : ]


Top
 Profile       WWW            
 
 Post subject:
PostPosted: July 20th, 2006, 9:43 pm 
Maia
Maia
User avatar

Joined: 04 June 2005
Posts: 4449
Location: Northern USA

Offline
no problem! :hug: :) :)

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

_________________
Image
<center>icon & banner by me
skyward-thoughts
</center>


Top
 Profile       WWW            
 
 Post subject:
PostPosted: July 20th, 2006, 10:35 pm 
Rider of Rohan
Rider of Rohan
User avatar

Joined: 10 December 2005
Posts: 134

Offline
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.

_________________
<img src="http://thulcandra.com/randombanner/banner.php" title="Banner by Arwen">
I can help with HTML/CSS/JavaScript/PHP/ASP. I can't do graphics or layouts.
Post in Site Help, I'll see it. Or PM me.


Top
 Profile                  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]




Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  




Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Boyz theme by Zarron Media 2003