RE: [PHP] Pls Help: Moving script from Win to Linux
Hi Shane, I can pass variables till I am blue in the face, even see them in the URL but they are still showing up as (!isset) Are you accessing these variables through $var or $_GET[var]? Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pls Help: Moving script from Win to Linux
is register globals enabled? On Tue, 10 Dec 2002, Shane wrote: Greetings gang. You know me, I never ask for help if I haven't checked all my other options, but this is day two, and I'm getting spanked on this one. Some recently moved scripts from a WIN2K server running PHP 4.2.1 to an Apache PHP 4.2.3 setup have stop accepting HTML Form Variables. I can pass variables till I am blue in the face, even see them in the URL but they are still showing up as (!isset) My ISP (Whom is using Virtual Directories) has no solution, and I have tried every code variation I could think of to troubleshoot it. This code has been working fine for Months on the WIN2K box, but just doesn't pass a var on the Linux solution. Can any Server pros out there possibly throw me a bone? My deadline is looming. :^) As always, a million thanks in advance. Yours truly. -NorthBayShane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pls Help: Moving script from Win to Linux
Register_Globals is off by default in version 4.2.3. See the following manual page for more information. http://www.php.net/manual/en/language.variables.predefined.php - Original Message - From: Shane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 11:08 AM Subject: [PHP] Pls Help: Moving script from Win to Linux Greetings gang. You know me, I never ask for help if I haven't checked all my other options, but this is day two, and I'm getting spanked on this one. Some recently moved scripts from a WIN2K server running PHP 4.2.1 to an Apache PHP 4.2.3 setup have stop accepting HTML Form Variables. I can pass variables till I am blue in the face, even see them in the URL but they are still showing up as (!isset) My ISP (Whom is using Virtual Directories) has no solution, and I have tried every code variation I could think of to troubleshoot it. This code has been working fine for Months on the WIN2K box, but just doesn't pass a var on the Linux solution. Can any Server pros out there possibly throw me a bone? My deadline is looming. :^) As always, a million thanks in advance. Yours truly. -NorthBayShane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Pls Help: Moving script from Win to Linux
I can pass variables till I am blue in the face, even see them in the URL but they are still showing up as (!isset) Are you accessing these variables through $var or $_GET[var]? I am accessing them as $var. Example (from memory) if(!isset($var)){ // do nothing }else{ // VAR IS SET.. DO SOMETHING } Real basic stuff, but if I echo out the value so I see if it matches what I see in the above URL I get... (SAMPLE URL) blah/my_url.php?submit=submit (SAMPLE CODE) ? echo Submit = .$submit ? (SAMPLE RESULTS) Submit = Thanks gang! I have never needed to use $_GET[var] What is the main difference? Would this be a setting difference between a WIN setup of PHP and a Linux setu of PHP? - over -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Pls Help: Moving script from Win to Linux
Ahh Yes, Register Globals is off on the new set up, and is ON on the old Win Box. You folks soo rule Drinks all around! -Thanks a million NorthBayShane Register_Globals is off by default in version 4.2.3. See the following manual page for more information. http://www.php.net/manual/en/language.variables.predefined.php - Original Message - From: Shane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 11:08 AM Subject: [PHP] Pls Help: Moving script from Win to Linux Greetings gang. You know me, I never ask for help if I haven't checked all my other options, but this is day two, and I'm getting spanked on this one. Some recently moved scripts from a WIN2K server running PHP 4.2.1 to an Apache PHP 4.2.3 setup have stop accepting HTML Form Variables. I can pass variables till I am blue in the face, even see them in the URL but they are still showing up as (!isset) My ISP (Whom is using Virtual Directories) has no solution, and I have tried every code variation I could think of to troubleshoot it. This code has been working fine for Months on the WIN2K box, but just doesn't pass a var on the Linux solution. Can any Server pros out there possibly throw me a bone? My deadline is looming. :^) As always, a million thanks in advance. Yours truly. -NorthBayShane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pls Help: Moving script from Win to Linux
Needs to be changed to the following if your forms are using the GET HTTP method: if(!isset($_GET[var])){ // do nothing }else{ // VAR IS SET.. DO SOMETHING } If your forms use the POST HTTP method then it needs to be changed to: if(!isset($_POST[var])){ // do nothing }else{ // VAR IS SET.. DO SOMETHING } I can pass variables till I am blue in the face, even see them in the URL but they are still showing up as (!isset) Are you accessing these variables through $var or $_GET[var]? I am accessing them as $var. Example (from memory) if(!isset($var)){ // do nothing }else{ // VAR IS SET.. DO SOMETHING } Real basic stuff, but if I echo out the value so I see if it matches what I see in the above URL I get... (SAMPLE URL) blah/my_url.php?submit=submit (SAMPLE CODE) ? echo Submit = .$submit ? (SAMPLE RESULTS) Submit = Thanks gang! I have never needed to use $_GET[var] What is the main difference? Would this be a setting difference between a WIN setup of PHP and a Linux setu of PHP? - over -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Pls Help: Moving script from Win to Linux
If you do not want to re-write all your code and your web server is Apache and your host allows the use of .htaccess files you can turn register_globals = on programmatically: http://www.php.net/manual/en/configuration.directives.php#ini.register-globa ls (php_flag register_globals = ON;) i think. Just a thought, -Craig -Original Message- From: Rodney Green [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 11:35 AM To: Shane; [EMAIL PROTECTED] Subject: Re: [PHP] Pls Help: Moving script from Win to Linux Needs to be changed to the following if your forms are using the GET HTTP method: if(!isset($_GET[var])){ // do nothing }else{ // VAR IS SET.. DO SOMETHING } If your forms use the POST HTTP method then it needs to be changed to: if(!isset($_POST[var])){ // do nothing }else{ // VAR IS SET.. DO SOMETHING } I can pass variables till I am blue in the face, even see them in the URL but they are still showing up as (!isset) Are you accessing these variables through $var or $_GET[var]? I am accessing them as $var. Example (from memory) if(!isset($var)){ // do nothing }else{ // VAR IS SET.. DO SOMETHING } Real basic stuff, but if I echo out the value so I see if it matches what I see in the above URL I get... (SAMPLE URL) blah/my_url.php?submit=submit (SAMPLE CODE) ? echo Submit = .$submit ? (SAMPLE RESULTS) Submit = Thanks gang! I have never needed to use $_GET[var] What is the main difference? Would this be a setting difference between a WIN setup of PHP and a Linux setu of PHP? - over -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pls Help: Moving script from Win to Linux
On Wednesday 11 December 2002 02:38, Craig Thomas wrote: If you do not want to re-write all your code and your web server is Apache and your host allows the use of .htaccess files you can turn register_globals = on programmatically: http://www.php.net/manual/en/configuration.directives.php#ini.register-glob a ls (php_flag register_globals = ON;) i think. Can't be done at run-time. See table in manual. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* A government that is big enough to give you all you want is big enough to take it all away. -- Barry Goldwater */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Pls Help: Moving script from Win to Linux
Can't be done at run-time. See table in manual. Perhaps programmatically was the wrong word. Using .htaccess files it can be set per directory/site. http://www.php.net/manual/en/security.registerglobals.php (read to the BOTTOM of the page). -Craig -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 2:04 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Pls Help: Moving script from Win to Linux On Wednesday 11 December 2002 02:38, Craig Thomas wrote: If you do not want to re-write all your code and your web server is Apache and your host allows the use of .htaccess files you can turn register_globals = on programmatically: http://www.php.net/manual/en/configuration.directives.php#ini.regi ster-glob a ls (php_flag register_globals = ON;) i think. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* A government that is big enough to give you all you want is big enough to take it all away. -- Barry Goldwater */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php