Sign In
New User? Register
SunCityJodhpurLUG · just call it "SunnyLUG@Jodhpur"
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
You can set the sort order of messages? Just click on the link in the date column. Your preferences will be remembered, so you don't have to do it again when you return.

Messages

  Messages Help
Advanced
PHP: register_globals = on   Message List  
Reply | Forward Message #1201 of 1439 |
Re: PHP: register_globals = on

hello mr rai,

now when the register global variable is off, so u have to convert all the vars. in form of $_GET and $_POPST.

so the easiest way i can suggest u is in your main page put a variable like that

<?
$values = $_POST ? $_POST : $_GET;
and then for each variable which u want to change it just put

$values['abc'], instead of $_GET['abc'] or $_POST['abc']

so only for each page u hv to include $values'[ and ']
and do not forget to put the main line of intialization a top of the page.

for any other q. mail me

----------------------
ganu
bolo open source ki jai...
khmma ghani...
----------
On 26 Sep 2005 20:19:18 -0000, SunCityJodhpurLUG@... < SunCityJodhpurLUG@...> wrote:

   Date: Mon, 26 Sep 2005 12:42:18 +0530 (IST)
   From: H S Rai <hsrai@...>
Subject: PHP: register_globals = on

Mine PHP programs run when I set register_globals = on. Is
there any quick way to convert my all such programs to run
when I set that "off".

I learnt PHP from OnLine tutoral which taught me that way.
There should be some URL which make this change smooth and
quick.

Any pointer or hint will be appreciated.

Thanks in advance.

--
H.S.Rai


--
G@nu


Tue Sep 27, 2005 2:57 pm

ganumaharaj
Offline Offline
Send Email Send Email

Forward
Message #1201 of 1439 |
Expand Messages Author Sort by Date

Mine PHP programs run when I set register_globals = on. Is there any quick way to convert my all such programs to run when I set that "off". I learnt PHP from...
H S Rai
hsrai
Offline Send Email
Sep 26, 2005
7:34 am

hello mr rai, now when the register global variable is off, so u have to convert all the vars. in form of $_GET and $_POPST. so the easiest way i can suggest u...
G@nu
ganumaharaj
Offline Send Email
Sep 27, 2005
10:53 pm

... Thanks for your reply. But, I have not used $_GET or $POST anywhere. I have uploaded files at http://gndec.ac.in/~hsrai/tmp/lug/ There rcc.php is main...
H S Rai
hsrai
Offline Send Email
Sep 28, 2005
1:01 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help