News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

The Shadow Fox Network:
Create Dynamic URLs With Mod_Rewrite and PHP Functions
October 26, 2006 @ 11:12:00

On the Shadow Fox Network, there's a new tutorial that shows how to combine the Apache mod_rewrite functionality with some PHP functions to make passing variables over your rewritten URL easy.

You can't pass variables well without adding more commands to mod_rewrite. So here you'll learn to add unlimited parameters to your links with only one simple PHP function.

He starts with a mini-refresher course on the contents of the previous article and moves to the simple rewrite example that makes it possible - a two line statement. Then, it's on to the PHP - again, a simple function that does things simply, grabs all of the parameters from the URL and splits them out into a global parameters array. He even includes a simple example as a tutorial you can try out with the demo.

0 comments voice your opinion now!
tutorial modrewrite apache passing parameters simple function tutorial modrewrite apache passing parameters simple function


blog comments powered by Disqus

Similar Posts

Juozas Kaziukenas' Blog: Lambda functions are coming to PHP

Eran Galperin's Blog: Breaking Down The PayPal API

Matthew Weir O'Phinney's Blog: Cgiapp2 Tutorial 1 - Switch Template Plugins at Will

Elizabeth Smith's Blog: Treeviews and Cell Renderer Properties - Practical PHP-GTK

PHP-GTK Community Site: Add icons to GtkMenu


Community Events

Don't see your event here?
Let us know!


interview framework example laravel laravel5 series php7 extension opinion podcast release list api community version language voicesoftheelephpant introduction security library

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework