Updating Links

This is a discussion on "Updating Links" within the PHP Forum section. This forum, and the thread "Updating Links are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 1st, 2006, 11:52
New Member
Join Date: Nov 2006
Location: Washington
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Updating Links

Hi, this is in response to my orginal post in the HTML forums
http://www.webforumz.com/html-forum/10559-updating-links.htm

So for a simple example

Let's say the index.php looks like:

<html>
<?PHP include("includes/header.php"); ?>
</html>

And header.php looked like:

<a href="page1.htm">Page 1</a><br>
<a href="page2.htm'>Page 2</a>

A browser would then display index.php as
<html>
<a href="page1.htm">Page 1</a><br>
<a href="page2.htm'>Page 2</a>
</html>


Is that all what is needed? Also, how does the hosting know to use index.php instead of .htm?
Reply With Quote

  #2 (permalink)  
Old Dec 3rd, 2006, 10:16
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Updating Links

Quote:
Is that all what is needed?
Yup, that's why people spend the time to learn PHP

Quote:
Also, how does the hosting know to use index.php instead of .htm?
Don't have a page named index.htm.
Reply With Quote
  #3 (permalink)  
Old Dec 3rd, 2006, 10:19
Junior Member
Join Date: Oct 2006
Location: Uxbridge, West London
Age: 26
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Updating Links

Some hosts will require a page named index.htm so it is sometimes necessary to create the page and simply redirect it to index.php.
Reply With Quote
Reply

Tags
includes tag, php

Thread Tools

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

BB 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
Easy way of updating a sites internal links. dcjetski Web Page Design 5 May 27th, 2008 08:44
Msie doesn't make my links links.. delusion Web Page Design 7 Nov 7th, 2007 08:05
PR4 links for sale...links in an excellent position agent14 Link Building and Link Sales 1 Mar 5th, 2007 21:33
Updating Links mrbernz Web Page Design 7 Dec 2nd, 2006 22:36
Blured Links (image links) bruno89 Web Page Design 2 Jul 25th, 2006 14:48


All times are GMT. The time now is 01:48.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43