UK Webmaster Talk - Online Marketing - SEO


 

dynamically add new php pages?

This is a discussion on dynamically add new php pages? within the Php and MySQL forums, part of the Programming / Scripting / Coding category; I am building a website for a friend and want to add a admin section where you can dynamically add ...


Go Back   UK Webmaster Talk - Online Marketing - SEO > Website Design & Development > Programming / Scripting / Coding > Php and MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices

Reply

 

LinkBack Thread Tools Display Modes
Old 23-02-2006, 14:24   #1 (permalink)
WMT Addict
 
Join Date: Feb 2005
Location: Aylesbury
Posts: 143
iTrader: 0 / 0%
benf is on a distinguished road
Default dynamically add new php pages?

I am building a website for a friend and want to add a admin section where you can dynamically add new html pages. How is this done, seen it alot in most GPL software that i have installed but not sure how to go about writing the code.

Any suggestions or tutorials people could point to me would be good?

Thanks.
benf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 23-02-2006, 15:07   #2 (permalink)
WMT Addict
 
Join Date: Apr 2005
Location: Brighton,UK
Posts: 162
iTrader: 0 / 0%
asgsoft is on a distinguished road
Default

they usually have a table for pages and their ID.

By adding a page u add an entery in the db which u can call later
asgsoft is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 23-02-2006, 15:12   #3 (permalink)
WMT Addict
 
Join Date: Feb 2005
Location: Aylesbury
Posts: 143
iTrader: 0 / 0%
benf is on a distinguished road
Default

Thanks for quick reply;

So dublicate an entry in the database and the content will just be a text area form content that is apllied using a variable or something. So i would also have to write a new entry to the navigation file at the same time?

Am i on the right track?
benf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 23-02-2006, 20:29   #4 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,030
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

Why not just install something like Joomla and prepare a template, then allow the friend to add content as required. Much easier than building from scratch.
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 23-02-2006, 21:02   #5 (permalink)
WMT Addict
 
Join Date: Apr 2005
Location: Brighton,UK
Posts: 162
iTrader: 0 / 0%
asgsoft is on a distinguished road
Default

Quote:
Originally Posted by benf
Thanks for quick reply;

So dublicate an entry in the database and the content will just be a text area form content that is apllied using a variable or something. So i would also have to write a new entry to the navigation file at the same time?

Am i on the right track?
Sort of

All you do is get the content of a textbox and add it to db. It will automatically change the nav page if you do it right
asgsoft is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-06-2006, 13:15   #6 (permalink)
WMT Addict
 
Join Date: Feb 2005
Location: Aylesbury
Posts: 143
iTrader: 0 / 0%
benf is on a distinguished road
Default

Your nav function which is what i have reads the titles from the content table to get the links, so when you add a page into the content table the title is automatically added to the nav bar.

Imagine that the nav bar and the content are all read from the same table. I usually have to input boxed when designing a cms. 1) title, 2) content. THe title is then read by the nav function which creates the links.
benf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 24-02-2007, 13:22   #7 (permalink)
Newbie
 
Join Date: Feb 2007
Posts: 2
iTrader: 0 / 0%
Phoenix is an unknown quantity at this point
Default

Well as monaghan said, its probably best for you to go with a content management system. You can find them on many script sites such as resourceindex.com, or hotscripts.com. Although opensourcecms.com is a good starting point.

Although I agree with monaghan, I think using a CMS like joomla might be too complex for what your looking for. I have had first hand experiences from many CMS systems and I would recommend either:

EcwCMS:
Website: www.ecwcms.com
Requiements: MySQL, PHP5.

This is a good CMS that is very simple to administer and incorperate with your templates, the only downside is that PHP5 is required and not many website hosts have upgraded due to the problems associated with it. You can try EcwCMS at opensourcecms.com.

Another good CMS I have used is called MiniCWB. Its is small, decent CMS for simple editing and creation of webpages. Its very customiseable and can be found here: www.mini-open-cms.com. The good points about this particular CMS is its very lightweight and it does not require a MySQL database, and it runs happily on either PHP4 or 5.

Hopefully that helps,

Pho~
Phoenix is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
add, dynamically, pages, php

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Linking pages in website ?? terryd68 Website Development Forum 2 06-09-2006 17:16
PR5 Homepage + 34 PR5 pages + 214 PR3 pages... SEOArt Buy and Sell Ad Space 0 11-08-2006 23:01
If your site map has say more than 100 links on several pages Paul Wainwright Search Engine Optimisation (SEO) 0 02-02-2006 08:33
How to create pages depending on previous selections? lanoak Programming / Scripting / Coding 3 10-07-2005 17:22
SEO Through Well-Built Pages Wistow SEO Articles 0 20-03-2005 13:27


All times are GMT +1. The time now is 18:10.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
UK Webmaster Forum © WebmasterTalk.co.uk | Design by Forbairt

Ad Management by RedTyger

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