Re: URL rewriting...anybody done this?

From: Date: Thu, 15 Jan 2004 23:55:22 +0000
Subject: Re: URL rewriting...anybody done this?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174735@lists.php.net to get a copy of this message
I had the same problem with PHP after I've upgraded to 4.3.3 from 4.3.1. I was tearing my hair out but couldn't figure out what was wrong. I ended up editing my php.ini file and turning REGISTER GLOBALS = On. It works fine now and since this is on my development box I don't really care about security that much. Hope this helped... -Pete P.S.: This all happened on a Gentoo Linux box... On Wed, 2004-01-14 at 17:11, Ryan A wrote: > Oops sorry, missed that. > > Heres whats on top of the page: > > echo "Ok,we are in show.php<br>"; > if(isset($_GET["id"])){echo "Got \$_GET[id]<br>";}else{echo "No > \$_GET[id]<br>";} > if(isset($_GET["sid"])){echo "Got \$_GET[sid]<br>";}else{echo > "No > \$_GET[sid]<br>";} > print_r($_GET); > print_r($_GET['id']); > print_r($_GET['sid']); > > and heres the output: > > Ok,we are in show.php > No $_GET[id] > No $_GET[sid] > Array ( ) > > > Ideas? > > Cheers, > -Ryan > > > > > On 1/14/2004 10:56:35 PM, Jason Wong (php-general@gremlins.biz) wrote: > > On Thursday 15 January 2004 05:01, Ryan A wrote: > > > > > I put this in for testing: > > > > > > if(isset($_GET["id"])){echo "Got \$_GET[id]<br>";}else{echo > > "No > > > \$_GET[id]<br>";} > > > if(isset($_GET["sid"])){echo "Got > > > \$_GET[sid]<br>";}else{echo > > "No > > > \$_GET[sid]<br>";} > > > > > > and heres the output: > > > No $_GET[id] > > > No $_GET[sid] > > > > > > So the variables are not being passed.... > > > Any idea why and what I can do about this? > > > (Am a total newbie here) > > > > As was previously suggested just do a > > > > print_r($_GET) > > > > to see what, if anything, > > you're getting. > > > > -- > > Jason Wong -> Gremlins Associates -> www.gremlins.biz > > Open Source Software Systems Integrators > > * Web Design & Hosting * Internet & Intranet Applications Development * > > ------------------------------------------ > > Search the list archives before you post > > http://marc.theaimsgroup.com/?l=php-general > > ------------------------------------------ > > /* > > Price's > > Advice: > > It's all a game -- play it to have fun. > > */ > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php -- perl -e 'print pack("H*", "70766572746573406E79632E72722E636F6D0A")'

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.general (#174735) next »