/    Sign up×
Community /Pin to ProfileBookmark

urgent help required re: url querey string

H, this is doing my nut in – does anyone know of a reason that PHP won’t pick up querey string vars OR post vars simply by calling them? This has never been a problem before, and only happens on my live server (v4.2.2), not my local one (v4.3.4).

Is there something in the .ini which is perhaps set to protect against url-imported vars? This is a big hinderance!

THanks in advance.

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@JonaMar 08.2004 — [font=arial]Use the phpinfo(); function to display all of the PHP.ini information on a web page on your server, and compare it to what's on your local server.[/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@mityaauthorMar 08.2004 — I have... but it would be helpful to know which area might be responsible. And anyway, I can't see anything amis. Like I say, this has never happened before and I'm utterly confused. Variables can be declared and called in the same script, but not read from URLs or forms.
Copy linkTweet thisAlerts:
@JonaMar 08.2004 — [font=arial]Have you checked these lines? These are the settings I have on mine.[/font]

[code=php]
; The separator used in PHP generated URLs to separate arguments.
; Default is "&".
;arg_separator.output="&"

; List of separator(s) used by PHP to parse input URLs into variables.
; Default is "&".
; NOTE: Every character in this directive is considered as separator!
;arg_separator.input="&"

; This directive describes the order in which PHP registers GET, POST, Cookie,
; Environment and Built-in variables (G, P, C, E & S respectively, often
; referred to as EGPCS or GPC). Registration is done from left to right, newer
; values override older values.
variables_order="EGPCS"

; Whether or not to register the EGPCS variables as global variables. You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data. This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
;
; You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals=Off

; This directive tells PHP whether to declare the argv&argc variables (that
; would contain the GET information). If you don't use these variables, you
; should turn it off for increased performance.
register_argc_argv=On
[/code]


[b][J]ona[/b]
Copy linkTweet thisAlerts:
@mityaauthorMar 08.2004 — Cheers for that, I'll go through it and see what happens :o)
Copy linkTweet thisAlerts:
@JonaMar 08.2004 — [font=arial]I hope you find what you're looking for![/font] ?

[b][J]ona[/b]
×

Success!

Help @mitya spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...