PHP Master Page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
lenton
Forum Commoner
Posts: 49
Joined: Sun Jun 20, 2010 6:45 am

PHP Master Page

Post by lenton »

I already have a master page using GET from urls like index.php?page=home.

I need a different method because this isn't good for search engines and can become confusing. My friend mentioned using prepend and append but I'm not sure what he means by this.
Thanks for your help.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: PHP Master Page

Post by AbraCadaver »

If you use apache then look up mod_rewrite. You would construct your urls something like this: /home and apache will rewrite it to: index.php?page=home.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply