Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Updating content


Updating content

Reply
  #1 (permalink)  
Old 06-12-05, 12:34 PM
pccreative pccreative is offline
New Member
 
Join Date: Mar 2004
Location: St. Louis
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Updating content

my apologies if this has been addressed recently.

what options do i have if i need the most simplified way to update content on every page of an preexisting website? the operative word being "simplified"
Reply With Quote
  #2 (permalink)  
Old 06-13-05, 09:22 AM
amitroy5 amitroy5 is offline
Newbie Coder
 
Join Date: May 2005
Location: Mizoram, India
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
HTML is not the way to do it. I use PHP includes. Name all your files to *.php. For this, what you may want to do is something like this:

<html><head>
<title>Title For Page Here</title>
<meta content="keywords" content="<?php include 'metacontent.php'; ?>" />
<meta content="description" content="<?php include 'metadescription.php'; ?>" />
</head>
<body>
<?php include 'header.php'; ?><!--This file will be whatever you want for the top-->
THEN YOUR GENERAL CONTENT GOES HERE
<?php include 'footer.php'; ?><--What ever is below your body content-->
</body></html>

You can also do the index.php?page=whatevr method, but that has security holes. This way, you can make your pages search engine friendly without worrying about the mod_rewrite. Includes mean including external files. So, for example, open up metadescription.php and write your description. ie: This is my website about cars. Remember that quotes aren't needed. The PHP just takes the file and puts it in as if it were always there.

<?php include 'includefilehere.php'; ?>
Reply With Quote
Reply

Bookmarks


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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
linking to both iframe content and parent page vman2957 HTML/XHTML/XML 5 12-02-06 12:49 AM
Error On Registeration timmy408 ASP 2 09-05-04 02:53 PM
how to protect content on site MaritimeSource PHP 17 08-17-04 07:23 AM
forcing an iframe to scrolldown as it gets filled with content davidklonski JavaScript 2 07-20-04 08:27 AM
Network Content Management System Needed popmtop Script Requests 0 07-10-04 05:58 PM


All times are GMT -5. The time now is 08:44 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.