TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-31-2008, 02:29 AM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default Everything by URL's or by separate .php files

I am wanting to know which would be a better way of handling things
URL vars, as say if you made a CMS, and you wanted to add news you'd have a URL as such:
http://www.example.com/admin/?act=addnews&id=1

Or shall I go with doing this:
http://www.example.com/admin/news.php?act=add
or
http://www.example.com/admin/news.php?act=del&id=1

:S??
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 01-31-2008, 02:51 AM   #2 (permalink)
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default

Quote:
Originally Posted by Orc View Post
I am wanting to know which would be a better way of handling things
URL vars, as say if you made a CMS, and you wanted to add news you'd have a URL as such:
http://www.example.com/admin/?act=addnews&id=1

Or shall I go with doing this:
http://www.example.com/admin/news.php?act=add
or
http://www.example.com/admin/news.php?act=del&id=1

:S??
how about www.example.com/admin/news setup a rule in htaccess so the page can be found by search engines
__________________
no signature set
sarmenhb is offline  
Reply With Quote
The Following User Says Thank You to sarmenhb For This Useful Post:
Orc (01-31-2008)
Old 01-31-2008, 02:54 AM   #3 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by sarmenhb View Post
how about www.example.com/admin/news setup a rule in htaccess so the page can be found by search engines
Not yet, I'm a noobie at MySQL, so this is a bit tough for me. :S
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 01-31-2008, 02:58 AM   #4 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Best to separate the files, makes for easier to manage and read code.
__________________

Village Idiot is offline  
Reply With Quote
The Following User Says Thank You to Village Idiot For This Useful Post:
Orc (01-31-2008)
Old 01-31-2008, 03:05 AM   #5 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by Village Idiot View Post
Best to separate the files, makes for easier to manage and read code.
Yeah, sounds better.. :]
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 01-31-2008, 01:23 PM   #6 (permalink)
The Acquainted
 
Join Date: Oct 2007
Posts: 170
Thanks: 18
maZtah is an unknown quantity at this point
Default

Quote:
Originally Posted by sarmenhb View Post
how about www.example.com/admin/news setup a rule in htaccess so the page can be found by search engines
There's no need to make the CMS SEO-friendly. Likely you don't want Google into your CMS, right? So you should not waste time on that. Just keep it simple with different files to keep it well organized.
maZtah is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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


All times are GMT. The time now is 09:01 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design