note 62579 added to function.include
| From: | torokAlpar at gmail dot com | Date: | Fri, 03 Mar 2006 19:24:12 +0000 |
| Subject: | note 62579 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-104787@lists.php.net to get a copy of this message | ||
Hi i had a problem with passing values to the included script. Using the $_GET[] doesn't work
swo i'we comed up with a function witch returns with a same array as $_GET[]
<?
function get()
{
$uri=$_SERVER['REQUEST_URI'];
$uri=explode('?',$uri);
$uri=explode('&',$uri[1]);
$er=array();
foreach ($uri as $egy)
{
$egy=explode('=',$egy);
$er=$er+array($egy[0] => $egy[1]);
}
return $er;
}
?> hop it's usfull us it like $get=get(); adn you have the $_GET[] array :)
----
Server IP: 193.226.19.70
Probable Submitter: 85.204.110.95
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- http://master.php.net/note/edit/62579
Del: integrated -- http://master.php.net/note/delete/62579/integrated
Del: useless -- http://master.php.net/note/delete/62579/useless
Del: bad code -- http://master.php.net/note/delete/62579/bad+code
Del: spam -- http://master.php.net/note/delete/62579/spam
Del: non-english -- http://master.php.net/note/delete/62579/non-english
Del: in docs -- http://master.php.net/note/delete/62579/in+docs
Del: other reasons-- http://master.php.net/note/delete/62579
Reject -- http://master.php.net/note/reject/62579
Search -- http://master.php.net/manage/user-notes.php