TalkDomains.com - Discuss, Buy and Sell Domain Names
 
General Domain Names Discussion General discussion about domains and domain names industry. Discuss latest news. Industry announcements and press releases are welcome.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-31-2006, 06:18 AM
turtle turtle is offline
Member
 
Join Date: Mar 2006
Posts: 63
Default PHP includes

Just a hint for those who might still be coding static html pages - use PHP includes!

They allow you to put often used pieces of code into a seperate file which you include on the page, that means you only have to edit one file to make changes.
Reply With Quote
  #2 (permalink)  
Old 04-28-2006, 04:58 AM
Sam Sam is offline
Member
 
Join Date: Apr 2006
Posts: 34
Default

Thanks, good idea.
I need to go back and do this to my older sites.

How much trouble would it be to convert old sites to use includes?
Reply With Quote
  #3 (permalink)  
Old 04-28-2006, 07:18 AM
DomainAddict DomainAddict is offline
Member
 
Join Date: Apr 2006
Posts: 65
Default

not too much sam, how many pages are there on the sites?
Generally you can do a find and replace on all the pages so it will be automatic, in which case it will take a matter of seconds
Reply With Quote
  #4 (permalink)  
Old 05-02-2006, 08:04 AM
James James is offline
Member
 
Join Date: Mar 2006
Posts: 59
Default

And this is how you do the include file:

<?php include("menu.inc"); ?>

where menu.inc is the file containing your menu
Reply With Quote
  #5 (permalink)  
Old 09-08-2006, 10:24 AM
Quozt Quozt is offline
Junior Member
 
Join Date: Sep 2006
Posts: 19
Default

using PSPad (a free text editor) you can open all the files and do a multi file search and replace

so search for your header and replace with

include("header.php");

and your footer with

include("footer.php");
Reply With Quote
  #6 (permalink)  
Old 09-18-2006, 02:41 PM
michael michael is offline
Senior Member
 
Join Date: Sep 2006
Posts: 105
Default

it sounds good and does it means we donot have to use any programme to write PHP?
the coding of PHP is on notepad?
Reply With Quote
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
PHP Programming Basics Geoserv General Domain Names Discussion 0 01-19-2007 02:31 AM
PHP or ASP turtle General Domain Names Discussion 10 10-08-2006 05:59 PM
PHP and Perl michael General Domain Names Discussion 0 09-18-2006 02:47 PM
html or php YellowBoy General Domain Names Discussion 3 05-03-2006 02:33 AM



 
©2006 TalkDomains.com
Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24