php ids?<

liunx

Guest
About half of my site is coded in PHP, and one of my staff members had asked yesterday, why Don't I just do the site with PHP id's.

I've been looking for some help with this, but I can't seem to find anything about it.


<!-- w --><a class="postlink" href="http://www.unsigned-online.com">www.unsigned-online.com</a><!-- w -->

So instead of /staff.php it would be
/content.php?go=staff

I've heard this also makes your site load more efficiently.Nah, personally I wouldn't do it like that.

It'd be better to just include the files that are the same on every page. By doing that it would have the same load time as by using GET variables.

And if you do do it with GET variables and then it's inaccessible for search engines, and to get by it you have to use mod_rewrite; which isn't fun to set up.Right now I'm using php includes, is there a more efficient way of doing this?No.

Maybe if you didn't have it already like that you could use a query string, but keep it like it is.Originally posted by Josh
And if you do do it with GET variables and then it's inaccessible for search engines, and to get by it you have to use mod_rewrite; which isn't fun to set up.
Nah, mod_rewrite isn't that hard to set up. ;) It's pretty powerful and uber cool. :DHeh, well when you get complicated URL's it can be a bit difficult.

It took me a few hours to get, but it is awesome.

i turned these url's
games.php?cat=1&display=20&page=1&by=1&order=asc
into
games/1/20/1/1/asc

And it is very powerful, you can do alot of stuff with it.i mix and match...

i have a .php for sections - home, manuals, tools, etc...

then i use the query string for documents within those sections.

i find it makes for a fairly efficient method of coding, and my file structure is kept clean too.
 
Back
Top