note 76675 deleted from function.include by peehaa

From: Date: Fri, 09 Dec 2016 22:48:10 +0000
Subject: note 76675 deleted from function.include by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208388@lists.php.net to get a copy of this message
Note Submitter: Cory Gagliardi ---- Easy way to set $_GET values for local includes. This is an easy way to make up fake URLs for SEO purposes that are really just running other PHP pages with special $_GET values. This will NOT work: <?PHP include('communities.php?show=gated&where=naples'); ?> However, this will: <?PHP $_GET = array(); $_GET['show'] = 'gated'; $_GET['where'] = 'naples'; include('communities.php'); ?> Putting this on your page and nothing else will give the same result as going to 'communities.php?show=gated&where=naples' but the URL can be whatever you want it to be.

« previous php.notes (#208388) next »