[PHP] Re: missing $_GET

2005-06-05 Thread Ric Manalac
What PHP version is known to cause this type of problem? Does anyone
know what specific configuration setting causes the $_GET to not catch
values passed through the querystring?

My hosting company's PHP version is 4.3.4. Below are some info from phpinfo():

register_globals is set to On

Configure Command
'./configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu'
'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=../config.cache'
'--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect'
'--disable-debug' '--enable-pic' '--disable-rpath'
'--enable-inline-optimization' '--with-bz2' '--with-db4=/usr'
'--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd'
'--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext'
'--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr'
'--with-openssl' '--with-png' '--with-pspell' '--with-regex=system'
'--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU'
'--enable-bcmath' '--enable-exif' '--enable-ftp'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path'
'--enable-track-vars' '--enable-trans-sid' '--enable-yp'
'--enable-wddx' '--without-oci8' '--with-pear=/usr/share/pear'
'--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos'
'--with-ldap=shared' '--with-mysql=shared,/usr' '--with-mhash=shared'
'--with-mcrypt=shared' '--with-oci8=shared' '--with-snmp=shared,/usr'
'--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-pgsql=shared'
'--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath'
'--enable-shmop' '--enable-versioning' '--enable-calendar'
'--enable-dbx' '--enable-dio' '--enable-mcal'
'--with-apxs2filter=/usr/sbin/apxs'

Thanks.

On 4 Jun 2005 13:15:23 -, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 
 php-general Digest 4 Jun 2005 13:15:23 - Issue 3493
 
 Topics (messages 216354 through 216369):
 
 missing $_GET
 216360 by: Ric Manalac
 216361 by: JamesBenson
 
 -- Forwarded message --
 From: JamesBenson [EMAIL PROTECTED]
 To: php-general@lists.php.net
 Date: Sat, 04 Jun 2005 08:09:34 +0100
 Subject: Re: missing $_GET
 Possibly the PHP version your using, try looking at the PHP manual and
 also getting your PHP version by placing ? phpinfo(); ?
 into a file and running it in your browser, see this document for other
 methods:-
 
 http://php.net/manual/en/reserved.variables.php#reserved.variables.get


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] missing $_GET

2005-06-04 Thread Ric Manalac
Hello,

I've encountered a weird problem with using $_GET. I've recently moved
to a new hosting company and an old code suddenly stopped working
correctly.

From my index page, I pass a value through the querystring to another
PHP script. The querystring parameter goes like ?catid=500.

In the script that attempts to get the value, I have the following code:

if (isset($_GET[catid]))
{
   $catid = $_GET[catid];
}
else
{
   $catid = 1;
}

What used to happen was $catid is assigned the value of $_GET[catid]
if the catid parameter is passed through the querystring. But what
happens now is $catid is always set to 1 because $_GET[catid] seems
to be always blank now. I've already tried removing the isset()
check and went directly assigning the value as such:

$catid = $_GET[catid];

... but it still returned a blank value. What's happening to my
$_GET values? 

I hope someone can help. Is this something that can be
fixed by changing some configuration on the server? Is there something
that I need to change with my code?

Thanks!

Ric

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php