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.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 11-30-2003, 06:08 AM   #1 (permalink)
Contributing Member
 
Join Date: 10-14-03
Location: UK
Posts: 181
iTrader: 0 / 0%
Latest Blog:
None

tigermann is on the right pathtigermann is on the right pathtigermann is on the right path
PHP and SSI file???

Hi everyone,

I am sort of stuck:

In one of the articles on the Home Page, probably by John Scott:
I read,
<<<<<<<<<<<<<
Having seen the failure of these pages to rank on page-elements SEO alone, we simply inserted links to these pages with optimized anchor text in 60 or so pages by way of a PHP includes file. Using a PHP includes or a SSI file is recommended for ease of updating.
<<<<<<<<<<<<<

Using a PHP includes or a SSI file is recommended for ease of updating - Hmm! Could this be set up by someone without any real knowledge of PHP?

If so could someone please point me in the right direction?
tigermann is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2003, 06:30 AM   #2 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
iTrader: 0 / 0%
Latest Blog:
A+ Certification

kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
take http://business.thespear.net as an example.
see the top part till the horizontal rule? then theres text and then another horizontal rule for the footer
header.php has all the nitty gritty stuff and the top part... stuff that will be on all pages..
index.php only contains the text i want to show it there also at top of file it includes header and at the bottom it includes the footer
the footer contains info that will be on all pages...
so any page is just like
[code:1:bd62072a35]<?php
include('header.php');
print "Welcome to my site!";
include("footer.php');[/code:1:bd62072a35]
you can make it more advanced by having this in your header.php :
[code:1:bd62072a35]<?php
echo '<title>theSpear :: $title</title>';
?>[/code:1:bd62072a35]
and having this in your index.php
[code:1:bd62072a35]<?php
$title = "Home";
include('header.php');
print "Welcome to my site!";
include("footer.php');[/code:1:bd62072a35]

you understand?
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2003, 07:32 AM   #3 (permalink)
Contributing Member
 
Join Date: 10-14-03
Location: UK
Posts: 181
iTrader: 0 / 0%
Latest Blog:
None

tigermann is on the right pathtigermann is on the right pathtigermann is on the right path
Thanks Spear, I tried a few times but could not access

http://business.thespear.net

Is there a typing error?

Thanks again.
tigermann is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2003, 07:34 AM   #4 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
iTrader: 0 / 0%
Latest Blog:
A+ Certification

kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
oh woops havent set up subdomain yet
http://www.theSpear.net/business
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2003, 07:37 AM   #5 (permalink)
Contributing Member
 
Join Date: 10-14-03
Location: UK
Posts: 181
iTrader: 0 / 0%
Latest Blog:
None

tigermann is on the right pathtigermann is on the right pathtigermann is on the right path
That's ok.
I'll check back later .... I need a break!
tigermann is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2003, 07:39 AM   #6 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
iTrader: 0 / 0%
Latest Blog:
A+ Certification

kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
use the link i just posted
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2003, 12:22 PM   #7 (permalink)
Contributing Member
 
Join Date: 10-14-03
Location: UK
Posts: 181
iTrader: 0 / 0%
Latest Blog:
None

tigermann is on the right pathtigermann is on the right pathtigermann is on the right path
Thanks.
I think I got it - create a header.php page
and a footer.php page (if required)


then put the code below in every page?

<?php
include('header.php');
print "Welcome to my site!";
include("footer.php');


Does this have the same disadvantages of frames?
i.e. would google ever index the center section without the header and footer?
tigermann is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2003, 12:51 PM   #8 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
iTrader: 0 / 0%
Latest Blog:
A+ Certification

kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
no.. unless you had a link to it..
also you need a ?> at the end of the code.. sorry
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2003, 02:43 PM   #9 (permalink)
Contributing Member
 
Join Date: 10-14-03
Location: UK
Posts: 181
iTrader: 0 / 0%
Latest Blog:
None

tigermann is on the right pathtigermann is on the right pathtigermann is on the right path
<<<<<
also you need a ?> at the end of the code
<<<<<<


Like this?

<?php
include('header.php');
print "Welcome to my site!";
include("footer.php');
?>
tigermann is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2003, 03:12 PM   #10 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
iTrader: 0 / 0%
Latest Blog:
A+ Certification

kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
yes
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-30-2003, 04:15 PM   #11 (permalink)
Contributing Member
 
Join Date: 10-14-03
Location: UK
Posts: 181
iTrader: 0 / 0%
Latest Blog:
None

tigermann is on the right pathtigermann is on the right pathtigermann is on the right path
Thanks
tigermann 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
SEO & PDF file vidura SEO Forum 4 02-14-2008 06:08 AM


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


All times are GMT -7. The time now is 03:01 AM.
© Copyright 2008 V7 Inc