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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 1st, 2006, 12: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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 3rd, 2006, 11: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 3rd, 2006, 11: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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
PR4 links for sale...links in an excellent position agent14 Link Building and Link Sales 4 Sep 19th, 2008 16:09
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 09:05
Updating Links mrbernz Web Page Design 7 Dec 2nd, 2006 23:36
Blured Links (image links) bruno89 Web Page Design 2 Jul 25th, 2006 14:48


All times are GMT. The time now is 14:31.


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