php based site structure - 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 09-19-2009, 03:24 PM   #1 (permalink)
Junior Member
 
prototism's Avatar
 
Join Date: Sep 2009
Location: sd,ca,us
Posts: 1
Send a message via AIM to prototism Send a message via MSN to prototism Send a message via Yahoo to prototism
Default php based site structure

[bear with me while i think out loud, in an attempt to explain my eventual question.]

back before php was popular, most sites were structred with actual, individual html documents, as exemplified below

Code:
/root
  index.htm
  contact.htm
  links.htm
  ...
  /photos
     page1.htm
     page2.htm
     ...
to navigate the website, you would click a link on a page that would link you to an another .htm document (another "page") stored elsewhere on the server. the url would change to reference this new page (ie. example.com/index.htm → example.com/photos/page1.htm)

then php (and sql) came along, and instead of moving from page to page, you simply stayed on the same "page" (usually index.php), and the data "came to you", so to speak (1)

the urls however, were ugly, and enemies of seo. so eventually people wrote some ways to make the url a little more intuitive (ie: blog.com/2009/18/example-post) (2)

now, i say all that to get to my question: how do i accomplish (1) AND (2), on a "flat" website. [by "flat" i mean, everything (for front end purposes) is in root, aka there are no sub folders with linked content pages in them.]

my instincts tell me its relatively simple, but i do not know what exactly to search for on google (or these forums for that matter) to get started. hence, my reason for being here.

i know how to use php include, but that isnt exactly what i am looking for (or it may be, and i just havent explored it enough)

HELP

excuse my improper use of capitalization and punctuation

Last edited by prototism; 09-19-2009 at 03:27 PM.
prototism is offline   Reply With Quote
Sponsored Links
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 07:43 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