473,387 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

conf problem?

leo
When i echo the $catid, it returns null. $catid is there, confirmed by
command prompt and "select table from database".

Is php needed to set anything or security issue such that $HTTP_GET_VAR
associative array can't be retrieved?

Thanks a lot
$catid = $HTTP_GET_VAR['catid'];

echo "catid at showcat: $catid";
Apr 25 '06 #1
2 1688

OK, I'll start off with a "Huh?!" as this post doesn't make much sense,
but then I'll try to provide help.
When i echo the $catid, it returns null. $catid is there, confirmed by
command prompt and "select table from database".

Is php needed to set anything or security issue such that $HTTP_GET_VAR
associative array can't be retrieved?


OK, where are you getting this $catid from? You mention getting it from
$HTTP_GET_VAR ($_GET may be better for you anyway) but then also mention
getting it from a database which has nothing to do with GET parameters and
HTTP requests.

Can you be more clear in how you're trying extract this value and from
where? Maybe with a code snippet or two.

Cheers,
Andy
--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

Apr 25 '06 #2
leo wrote:
When i echo the $catid, it returns null. $catid is there, confirmed by
command prompt and "select table from database".

Is php needed to set anything or security issue such that $HTTP_GET_VAR
associative array can't be retrieved?

Thanks a lot
$catid = $HTTP_GET_VAR['catid'];

echo "catid at showcat: $catid";


Yes, it is in php5.
http://nl2.php.net/manual/en/ini.cor...er-long-arrays

FROM MANUAL:
-------------------------
register_long_arrays boolean

Tells PHP whether or not to register the deprecated long $HTTP_*_VARS
type predefined variables. When On (default), long predefined PHP variables
like $HTTP_GET_VARS will be defined. If you're not using them, it's
recommended to turn them off, for performance reasons. Instead, use the
superglobal arrays, like $_GET.

This directive became available in PHP 5.0.0.

-------------------------

So use $_GET[] or $_POST[] instead of the old $HTTP_GET_VARS, or change this
in your ini-settings.

My advise would be to use $_GET[] instead.

Regards,
Erwin Moller
Apr 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Oliver Hoehle | last post by:
Hello! I tried to get my J2EE app working with DB2 for several days and now it seems to work, but... (Tomcat 5.0.19 on NT 4.0 with J2SDK 1.4.1_02) 1) Declaring the DB2-datasource in...
6
by: David Nedrow | last post by:
I'm trying to set up the cyrus imap server using PostgreSQL as the authentication backend. Currently, the issue I'm having is that I'm unable to connect via psql on the loopback address...
5
by: Susemail | last post by:
Is this good advice? IDENT Authentication failed for user "postgres" This error has everything to do with the way distros set up access rights for postgres. They are way too restrictive and...
3
by: Si Chen | last post by:
Hello. It seems that every time I make a change to pg_hba.conf, I have to restart the database server for the new authentication to take effect. Is there a way to have the server use the new...
5
by: Raymond O'Donnell | last post by:
Hello all, I've installed the new Win32 version of 8.0-beta1, running as a service. When I connect to it using pgAdmin III and attempt to list databases, I get an error: 'Column "datpath" does...
4
by: coaxfiber | last post by:
Hi guys, my problem is when I installing the Apache v2.2.4 as my local server to run my php, and then run the test configuration, it tells me this error: httpd.exe: Syntax error on line 152 of...
1
by: dsudhakara | last post by:
In my queues.conf file my text message are stored here .I want to retrieve particular campaign modify some words in particular campaign and return to save the same queues.conf file .Plz give me...
3
by: smitty1e | last post by:
Just a fun exercise to unify some of the major input methods for a script into a single dictionary. Here is the output, given a gr.conf file in the same directory with the contents stated below: ...
1
by: jodleren | last post by:
Hi! It seems like I have a problem with httpd.conf... I have a folder named "icons", and when using <img src="icons/.... then it gets some from some apache icons folder... I found a site...
3
by: gjain123 | last post by:
Hi all, I am using netbeans as IDE and glassfish as app server for my web application. At runtime it needs some dll files and .conf file. Now the question is: 1. How should I package the .conf...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.