RE: [PHP-DB] Variables de SESSION dentro de funciones PHP
english please!!! ___ Mark Snijders, Developer Atos Origin Groenewoudeseweg 1, Room VN-515 5621 BA Eindhoven, The Netherlands * : [EMAIL PROTECTED] *:+31 (0)40 - 2785992 (tel) * : +31 (0)40 - 2788729 (fax) The information in this mail is intended only for use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. Access to this mail by anyone else than the addressee is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken omitted to be taken in reliance of it, is prohibited and may be unlawful. -Original Message- From: _netPerceptions?= [mailto:[EMAIL PROTECTED]] Sent: vrijdag 13 december 2002 12:33 To: [EMAIL PROTECTED] Subject: [PHP-DB] Variables de SESSION dentro de funciones PHP Hola, tengo una función en PHP que me lee de un fichero una configuración de unas tablas de BBDD, quiero que el nombre de las tablas así como los datos de conexión, me queden residentes en unas variables de sesión. Cuando registro las variables dentro de la función, al acceder desde cualquier otro punto con $HTTP_SESSION_VARS[nombrevariable] me pone como que está vacía. ¿alguien podría aclararme el tratamiento de estas variables en PHP? Saludos y muchas gracias. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Variables de SESSION dentro de funciones PHP
Hi Francisco José Saiz netPerceptions, would you be so kind and repeat your mail in english. Regards, Ruprecht -- Ruprecht Helms IT-Service und Softwareentwicklung Tel/Fax.: +49[0]7621 16 99 16 Homepage: http://www.rheyn.de email: [EMAIL PROTECTED] -- -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Variables de SESSION dentro de funciones PHP
through the magic of babelfish! I have a function in PHP that reads of a file a configuration to me of BBDD tables, I want that the name of the tables as well as the data of connection, I have left residents in session variables. When registry the variables within the function, when acceding from any other point with $$HTTP_SESSION_VARS[nombrevariable ] puts to me because she is empty. somebody could clarify the treatment to me of these variables in PHP? Greetings and thank you very much. (just in case he can't speak English!) -Original Message- From: Ruprecht Helms [mailto:[EMAIL PROTECTED]] Sent: 13 December 2002 12:32 To: Francisco José Saiz :@mayn.de: netPerceptions Cc: [EMAIL PROTECTED] Subject: RE: [PHP-DB] Variables de SESSION dentro de funciones PHP Hi Francisco José Saiz netPerceptions, would you be so kind and repeat your mail in english. Regards, Ruprecht -- Ruprecht Helms IT-Service und Softwareentwicklung Tel/Fax.: +49[0]7621 16 99 16 Homepage: http://www.rheyn.de email: [EMAIL PROTECTED] -- -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ This message has been checked for all known viruses by the MessageLabs Virus Control Centre. This message has been checked for all known viruses by the MessageLabs Virus Control Centre. * Notice: This email is confidential and may contain copyright material of Ocado Limited (the Company). Opinions and views expressed in this message may not necessarily reflect the opinions and views of the Company. If you are not the intended recipient, please notify us immediately and delete all copies of this message. Please note that it is your responsibility to scan this message for viruses. Company reg. no. 3875000. Swallowdale Lane, Hemel Hempstead HP2 7PY * -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Variables de SESSION dentro de funciones PHP
Hi, I have made a PHP function that reads a tablename from a file. I want to keep the tablename value into a session var. I register the session vars and assign the value. But when I try to access outside the function the variable is empty. I do this: session_start(); function OneFunction { $myvar=ABC; session_register(myvar); } echo($HTTP_SESSION_VARS[myvar]); And do not prints nothing. Why? Is a scope fault? Thanks. -Original Message- From: Snijders, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 1:08 PM To: '_netPerceptions?='; [EMAIL PROTECTED] Subject: RE: [PHP-DB] Variables de SESSION dentro de funciones PHP english please!!! ___ Mark Snijders, Developer Atos Origin Groenewoudeseweg 1, Room VN-515 5621 BA Eindhoven, The Netherlands * : [EMAIL PROTECTED] *:+31 (0)40 - 2785992 (tel) * : +31 (0)40 - 2788729 (fax) The information in this mail is intended only for use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. Access to this mail by anyone else than the addressee is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken omitted to be taken in reliance of it, is prohibited and may be unlawful. -Original Message- From: _netPerceptions?= [mailto:[EMAIL PROTECTED]] Sent: vrijdag 13 december 2002 12:33 To: [EMAIL PROTECTED] Subject: [PHP-DB] Variables de SESSION dentro de funciones PHP Hola, tengo una función en PHP que me lee de un fichero una configuración de unas tablas de BBDD, quiero que el nombre de las tablas así como los datos de conexión, me queden residentes en unas variables de sesión. Cuando registro las variables dentro de la función, al acceder desde cualquier otro punto con $HTTP_SESSION_VARS[nombrevariable] me pone como que está vacía. ¿alguien podría aclararme el tratamiento de estas variables en PHP? Saludos y muchas gracias. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Variables de SESSION dentro de funciones PHP
Thanks, I'll try it now. -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 1:49 PM To: Francisco José Saiz :: netPerceptions Subject: Re: [PHP-DB] Variables de SESSION dentro de funciones PHP You're mixing register_globals off session code with register_globals on session code. $HTTP_SESSION_VARS['myvar'] doesn't get defined until the second page view after setting it. Try: session_start(); function OneFunction() { $GLOBALS['HTTP_SESSION_VARS']['myvar'] = 'ABC'; } onefunction(); echo($HTTP_SESSION_VARS[myvar]); Francisco José Saiz :: netPerceptions wrote: Hi, I have made a PHP function that reads a tablename from a file. I want to keep the tablename value into a session var. I register the session vars and assign the value. But when I try to access outside the function the variable is empty. I do this: session_start(); function OneFunction { $myvar=ABC; session_register(myvar); } echo($HTTP_SESSION_VARS[myvar]); And do not prints nothing. Why? Is a scope fault? Thanks. -Original Message- From: Snijders, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 1:08 PM To: '_netPerceptions?='; [EMAIL PROTECTED] Subject: RE: [PHP-DB] Variables de SESSION dentro de funciones PHP english please!!! ___ Mark Snijders, Developer Atos Origin Groenewoudeseweg 1, Room VN-515 5621 BA Eindhoven, The Netherlands * : [EMAIL PROTECTED] *:+31 (0)40 - 2785992 (tel) * : +31 (0)40 - 2788729 (fax) The information in this mail is intended only for use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. Access to this mail by anyone else than the addressee is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken omitted to be taken in reliance of it, is prohibited and may be unlawful. -Original Message- From: _netPerceptions?= [mailto:[EMAIL PROTECTED]] Sent: vrijdag 13 december 2002 12:33 To: [EMAIL PROTECTED] Subject: [PHP-DB] Variables de SESSION dentro de funciones PHP Hola, tengo una función en PHP que me lee de un fichero una configuración de unas tablas de BBDD, quiero que el nombre de las tablas así como los datos de conexión, me queden residentes en unas variables de sesión. Cuando registro las variables dentro de la función, al acceder desde cualquier otro punto con $HTTP_SESSION_VARS[nombrevariable] me pone como que está vacía. ¿alguien podría aclararme el tratamiento de estas variables en PHP? Saludos y muchas gracias. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php