Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 02-15-2007, 05:05 PM   #1 (permalink)
Inactive
 
Join Date: 11-07-06
Location: Springfield
Posts: 111
iTrader: 0 / 0%
daniel0012 is on the right pathdaniel0012 is on the right path
Send a message via AIM to daniel0012 Send a message via MSN to daniel0012 Send a message via Yahoo to daniel0012
Problems with PHP

I am new to PHP andI am having trouble with the include() tag.
the url is http://scabaptist.org/test/index.php

This is my code.
Code:
<body> <?php include("header_home"); ?> <div align="center"> <table width="855" border="0"> <tr> <td width="15">&nbsp;</td> <td width="637"> <p><img src="/images/home_pic.jpg" width="637" height="478" /></p></td> <td width="189" valign="top"> <p align="center" class="style2"> Upcoming Events </p> <p align="center" class="style3"> </p> <p align="center" class="style2"> Service Times </p> <p align="center" class="style3"> Sunday School -- 9:30 a.m. <br /> Sunday Morning -- 10:30 a.m. <br /> Sunday Night -- 6:00 p.m. <br /> Wednesday Night -- 7:00 p.m. </p> <p align="center" class="style2"> Contact Information</p> <p align="center" class="style3"> 927 S. Campbell Ave. <br /> Springfield, MO 65806 <br /> (417) 862-8471 <br /> office@scabaptist.org </p> </td> </tr> </table> </div> <?php include("footer"); ?> </body>
daniel0012 is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 02-15-2007, 05:09 PM   #2 (permalink)
Contributing Member
 
Join Date: 02-10-07
Posts: 367
iTrader: 1 / 100%
Latest Blog:
None

ScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of light
Quote:
<?php include("header_home"); ?>
Should be in the form <?php include("filename.xxx"); ?>

Where xxx= php, inc whatever it is. Also the directory name may need to be included if is is not in the same directory.
__________________
ScriptMan
Gardening?
ScriptMan is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-15-2007, 05:11 PM   #3 (permalink)
Inactive
 
Join Date: 11-07-06
Location: Springfield
Posts: 111
iTrader: 0 / 0%
daniel0012 is on the right pathdaniel0012 is on the right path
Send a message via AIM to daniel0012 Send a message via MSN to daniel0012 Send a message via Yahoo to daniel0012
Oh my goodness. Wow. I can't believe I didn't see that. Thanks.
daniel0012 is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-15-2007, 05:16 PM   #4 (permalink)
Contributing Member
 
Join Date: 02-10-07
Posts: 367
iTrader: 1 / 100%
Latest Blog:
None

ScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of lightScriptMan is a glorious beacon of light
It is easy to do.

Windows hides the .ext when you are looking at the files on your local machine. You have to do this at least once to remember to include it next time.
__________________
ScriptMan
Gardening?
ScriptMan is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IE problems with CSS edbarton Coding Forum 8 04-01-2005 10:51 AM
CGI Problems SN3 Coding Forum 8 09-06-2004 03:01 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 09:50 PM.
© Copyright 2008 V7 Inc