Re: Newbie Question: How to pass URL info to .php script ?

From: Date: Thu, 19 Jun 2008 08:01:12 +0000
Subject: Re: Newbie Question: How to pass URL info to .php script ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-275579@lists.php.net to get a copy of this message
On Thu, Jun 19, 2008 at 1:28 AM, Bob <phpnews@opensauce.com> wrote: > Have you tried CodeIgniter http://www.codeigniter.com? > > Not as restrictive as many MVC frameworks and very easy to work with. > > What you wish to achieve can be done with one line. > > $myvar = $this->uri->segment(2); right, and if you look at the implementation there, you can see usage of mod_rewrite and the $_SERVER array. what i was trying to convey is that OP will need some way to access the url that has been requested by the client. the $_SERVER array is the only way i know of; if there are other ways im always up for learning something new. -nathan

« previous php.general (#275579) next »