Irish SEO,  Marketing & Webmaster Discussion

 

Site Structure

This is a discussion on Site Structure within the Coding Help forums, part of the Webmaster Help category; I'm designing a site and its my first time using the below structure, just looking for a bit of feedback ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 14-02-2008, 02:12 AM
ziycon's Avatar
Wannabe Geek
 
Join Date: Jan 2007
Location: Dublin
Posts: 410
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ziycon will become famous soon enough
Send a message via MSN to ziycon Send a message via Skype™ to ziycon
Default Site Structure

I'm designing a site and its my first time using the below structure, just looking for a bit of feedback on it.

Basically there will be one file, just the index.php then a folder called source or something.
Every link on the site will have the parameter PID so a link will look like
http://www.site.com/index.php?PID=news
or
http://www.site.com/index.php?PID=photos

All that will be in the index file will be something like below:
PHP Code:
<?php
include('source/'.$_GET['PID'].'.php');
source_index();
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 14-02-2008, 04:49 AM
Frodo's Avatar
Ciaran Rooney - Weeno Ltd
 
Join Date: Jan 2007
Location: London
Posts: 360
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Frodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud of
Send a message via MSN to Frodo Send a message via Skype™ to Frodo
Default

Before I go into 50 different things here can you answer 2 questions.

1. What is your php experience like? is that is sudo code? Can see the problems and security risks with it as is? (EDIT: did you write the code (php) for ign.ie yourself or is it all flat file too?)

2. Why are you choosing to include flat php files over doing a database lookup?
__________________
PHP Code:
print "CEO Weeno Ltd   - http://www.weeno.ie";
print 
"CTO Skimbit Ltd - http://skimbit.com"
skimlinks.com :: Outsource your affiliate marketing and generate revenue from your content easily.

Last edited by Frodo; 14-02-2008 at 04:53 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 14-02-2008, 07:16 AM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
Recent Blog: Geansai Gorm
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 2,101
Nominated 2 Times in 1 Post
Nominated TOTW/F/M Award(s): 1
Forbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enough
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

Madness :| of a sorts ..

Why the urge to do it this way ?
__________________
Forbairt Media | Web Design & Development Galway / Dublin, Ireland - coming soon ... ( vague but descriptive isn't it )
Recent Work: Safari Club African Safari Holidays - Malawi Safaris
Other Stuff: FluffyLinkulator Rapid Inclusion Service Tools
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 14-02-2008, 10:39 AM
ziycon's Avatar
Wannabe Geek
 
Join Date: Jan 2007
Location: Dublin
Posts: 410
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ziycon will become famous soon enough
Send a message via MSN to ziycon Send a message via Skype™ to ziycon
Default

Quote:
Originally Posted by Frodo View Post
Before I go into 50 different things here can you answer 2 questions.

1. What is your php experience like? is that is sudo code? Can see the problems and security risks with it as is? (EDIT: did you write the code (php) for ign.ie yourself or is it all flat file too?)

2. Why are you choosing to include flat php files over doing a database lookup?
1: I've been coding in PHP for about 3/4 years now, as i said its just an idea, haven't started coding yet.
No i cant see the security risks straight off hence why i'm asking for feedback before i did any coding.
Wrote all the code for ign.ie myself.

2: The only info in the 'source' files would be the body layout of each page and then there would be calls to sql queries in another file for the DB.
Quote:
Originally Posted by Forbairt
Madness :| of a sorts ..

Why the urge to do it this way ?
Just an idea.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 14-02-2008, 03:12 PM
Wannabe Geek
 
Join Date: Nov 2006
Location: Carlow
Posts: 117
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
wheres me jumpa will become famous soon enough
Send a message via AIM to wheres me jumpa Send a message via MSN to wheres me jumpa
Default

If you were going to go this route, I would make the URLs more seo friendly. i.e. have a more descriptive term in the PID variable.
__________________
“When you want something, all the world conspires in helping you to achieve it.”

www.waffle.ie

waffle.ie/members/wheres me jumpa

Waffle Arcade
Waffle Casino
Waffle Radio
Waffle TV

NSFW.ie

wheresmejumpa.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 14-02-2008, 03:25 PM
ziycon's Avatar
Wannabe Geek
 
Join Date: Jan 2007
Location: Dublin
Posts: 410
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ziycon will become famous soon enough
Send a message via MSN to ziycon Send a message via Skype™ to ziycon
Default

Quote:
Originally Posted by wheres me jumpa View Post
If you were going to go this route, I would make the URLs more seo friendly. i.e. have a more descriptive term in the PID variable.
Of course, i'll use mod_rewrite to change the URLs.

Just wanted to get some feedback on the up sides and down sides of this or if there was any better way to structure the site to decrease space and run time with the code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 14-02-2008, 03:35 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

Your question doesn't make any sense to me.
You want to structure the pages based on folders but you want to pass the folder name by QS in the url?
Why?... when you just add the folder name like this: http://www.site.com/folder_name/

inside the folder you have your index.php file that will load as default.

If you don't want to give the original folder name you can use .htaccess to rewrite the path http://www.site.com/keywords_stuffed_name/ -> http://www.site.com/folder_name/

Does that sounds more like it?
__________________
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Directory Submission Directory Submission
:. News & Press Release Ireland GiveItSocks.com
:. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories
:. I Have 2 Find It Directory SEF Directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 14-02-2008, 03:53 PM
ziycon's Avatar
Wannabe Geek
 
Join Date: Jan 2007
Location: Dublin
Posts: 410
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ziycon will become famous soon enough
Send a message via MSN to ziycon Send a message via Skype™ to ziycon
Default

I've attached an image on the structure im asking about.

Basiclly someone will go to the index.php?PID=news and then it will call a function from the news.php file in the source folder that has the layout for the news page, the news.php page will call queries in the sql.php file to retrieve relevant data from the DB to populate the page.

Get me??

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 14-02-2008, 04:02 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

I do get you but you're really going to open yourself to attacks by using this type of query:

index.php?PID=news

using mode rewrite is a lot safer.
There is nothing wrong with this structure if it's done right.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 14-02-2008, 04:30 PM
ziycon's Avatar
Wannabe Geek
 
Join Date: Jan 2007
Location: Dublin
Posts: 410
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ziycon will become famous soon enough
Send a message via MSN to ziycon Send a message via Skype™ to ziycon
Default

Quote:
Originally Posted by louie View Post
I do get you but you're really going to open yourself to attacks by using this type of query:

index.php?PID=news

using mode rewrite is a lot safer.
There is nothing wrong with this structure if it's done right.
I will be using mod_rewrite but just to explain how i was intending in laying out the structure i posted the above link.
it'll actually show up like http://www.site.com/news.htm instead of http://www.site.com/index.pgp?PID=news

Also i was thinking of maybe checking the PID parameter againest a table in the DB and if it exists then it'll load the relevant page or else it'll load an error page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
site, structure

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
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Successful Site in 12 Months with Google Alone montyauto Webmaster Articles 11 18-02-2008 01:28 PM
How to Avoid the Google Sandbox Cormac Webmaster Articles 26 18-02-2008 05:38 AM
Redirecting multiple domains to one site Orinovo Search Engine Optimisation 2 19-01-2008 09:58 PM
Swapping Web Links, the best way to find link exchange partners Gman290 Search Engine Optimisation 5 28-04-2007 04:06 PM


Sponsored links

Paid On Results


All times are GMT +1. The time now is 01:34 PM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0