2000 html pages or PHP - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > PHP Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-10-2011, 02:55 AM   #1 (permalink)
Junior Member
 
Join Date: Feb 2011
Posts: 1
Default 2000 html pages or PHP

Hi everyone,
I am new here.
I am thinking of developing a site with 2000 categories. Each would have some entries.
told by someone that there is no need to have 2000 htmls
how can this be salvaged by PHP and what, on average, would be the cost implications?
Steve
stevey2099 is offline   Reply With Quote
Sponsored Links
Old 02-15-2011, 09:46 AM   #2 (permalink)
Junior Member
 
johneva's Avatar
 
Join Date: Nov 2010
Location: UK
Posts: 61
Default Re: 2000 html pages or PHP

Erm yeah noway on this earth should you do this with basic HTML. Dynamic site is the only way to go if you have such a large amount of info.

How it would be implicated depends would need much much more info.

But simple terms this is how it works.

In a database you have a list of the data, so each record has a catagory and then the rest of the data for that record. Basic example.

id - catagory - Colour - price - info
1 - car - red - 3 - blah blah blah blah
2 - car - blue - 10 - blah blah blah blah
3 - car - black - 13 - blah blah blah blah
4 - bike - blue - 1 - blah blah blah blah

Then you make 1 php file which will list the different catagorys, which it can work out from the database, then it clicks into the next page generated, which the info on the page is populated by the data from the database.

I have not explained it great but you get the rough idea?
johneva is offline   Reply With Quote
Old 02-17-2011, 12:32 AM   #3 (permalink)
Junior Member
 
Join Date: Feb 2011
Posts: 17
Default Re: 2000 html pages or PHP

Good article, I liked it.
shellka is offline   Reply With Quote
Old 02-19-2011, 03:27 PM   #4 (permalink)
Junior Member
 
Join Date: Feb 2011
Posts: 39
Default Re: 2000 html pages or PHP

By using a single PHP file, that takes thew category Id/title from the URL. E.g. (note - not suitable for use in a production website, inout filtering omitted for sake of example)

PHP Code:
$cat_id $_GET['ID'];
$c = new Category();
$cat_data $c->get_category_info($cat_id);
$cat_products $c->get_products_in_category($cat_id);

echo 
'<title>Products in: ' $cat_data['Category_Name'] . '</title>';

//some more meta info maybe ....

echo '<h1>' $cat_data['Category_Name'] . '</h1>';

echo 
$cat_products;

//do other stuff, cache results etc. 
Webby Dev Rob is offline   Reply With Quote
Old 02-19-2011, 04:24 PM   #5 (permalink)
Regular User
 
Join Date: Feb 2011
Posts: 10
Default Re: 2000 html pages or PHP

Like the others say you only 1 php page that get's the catgegory etc from the url / query
Vera is offline   Reply With Quote
Old 02-20-2011, 09:46 AM   #6 (permalink)
Regular User
 
jaydeee's Avatar
 
Join Date: Feb 2010
Posts: 55
Default Re: 2000 html pages or PHP

2000 pages is best for PHP. having it hard coded is very tedious.
__________________
Update your Windows Xp with useful functions Download XP Drivers | Realtek Audio Driver
jaydeee is offline   Reply With Quote
Old 02-21-2011, 09:45 AM   #7 (permalink)
Junior Member
 
Join Date: Jun 2010
Location: Houston
Posts: 26
Default Re: 2000 html pages or PHP

You need to learn PHP and MySQL programming. A 2000 page website is fairly straight forward job in PHP... the hard part is getting the content for 2000 items.
ap2010 is offline   Reply With Quote
Old 02-24-2011, 01:37 PM   #8 (permalink)
Junior Member
 
Join Date: Feb 2011
Posts: 16
Default Re: 2000 html pages or PHP

what do you guys use for mySQL?
aokiji1 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 04:33 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting