[PHP] Re: Global Variables

2005-04-28 Thread Matthew Weier O'Phinney
* Dan <[EMAIL PROTECTED]>: > I taught myself PHP before the frenzy over register_globals. > After a reasonable break from the language, I'm back for more. > > I'm building a site where I'll be holding a lot of variables in memory > for each session. How do I do that? Apparently I can't use > sess

Re: [PHP] Re: Global variables in a class? Nested classes VS inheritance...

2004-03-18 Thread Justin Patrin
Chris W. Parker wrote: I make a database connection outside of my classes... lets call it $myDBConnection. I need to use this connection in a class nested in a class... Was wondering the most efficient way of doing this? I don't want to create a new db connection in the class. I want to use the ex

RE: [PHP] Re: Global variables in a class? Nested classes VS inheritance...

2004-03-18 Thread Chris W. Parker
>> I make a database connection outside of my classes... lets call it >> $myDBConnection. I need to use this connection in a class nested in a >> class... Was wondering the most efficient way of doing this? I don't >> want to create a new db connection in the class. I want to use the >> existing on

Re: [PHP] Re: Global variables in a class? Nested classes VS inheritance...

2004-03-17 Thread trlists
On 17 Mar 2004 Brent Westmoreland wrote: > I too have questions on how to handle this situation, any help would be > greatly appreciated. [Situation was how to use a single database connection inside a class nested within another class etc.] If you have a single DB connection open for the enti

[PHP] Re: Global variables in a class? Nested classes VS inheritance...

2004-03-17 Thread Brent Westmoreland
I too have questions on how to handle this situation, any help would be greatly appreciated. On 2003-07-30 11:30:54 -0400, [EMAIL PROTECTED] said: Hello, I'm lookin for some tips on the best way to do this... I make a database connection outside of my classes... lets call it $myDBConnection. I

[PHP] Re: global variables or not??

2002-09-13 Thread nicos
No you shouldn't. Define : $rd1 = $_POST['rd1']; $rd2 = $_POST['rd2']; at the begining of your scripts. http://www.php.net/manual/en/security.registerglobals.php -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Skitum" <[EMAIL PROTECTED]> a écrit

[PHP] RE: Global variables

2002-05-30 Thread Tim Ward
What about storing them in database or (below root) flat files? Tim Ward www.chessish.com -- From: serge gedeon [SMTP:[EMAIL PROTECTED]] Sent: 29 May 2002 14:35 To: [EMAIL PROTECTED] Subject: Global variables

[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread Timothy J. Luoma
On Wed, 27 Feb 2002, CC Zona wrote: > In that case, the "auto_prepend_file" config option may be of interest. > It's described on the page previously mentioned. Awesome... that was just what I needed. I hadn't made the connection before. Thanks TjL -- PHP General Mailing List (http://www.p

[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread CC Zona
In article , [EMAIL PROTECTED] (Timothy J. Luoma) wrote: > > > I have a virtual domain under Apache and do not have access to the global > > > php.ini file > > > > > > Apache lets me set site-wide configuration in an /.htaccess file > > > > > >

[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread Timothy J. Luoma
On Wed, 27 Feb 2002, CC Zona wrote: > > I have a virtual domain under Apache and do not have access to the global > > php.ini file > > > > Apache lets me set site-wide configuration in an /.htaccess file > > > > Is there something similar for PHP? > > Forget "similar", you can set PHP config opti

[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread CC Zona
In article , [EMAIL PROTECTED] (Timothy J. Luoma) wrote: > I have a virtual domain under Apache and do not have access to the global > php.ini file > > Apache lets me set site-wide configuration in an /.htaccess file > > Is there something sim

[PHP] Re: global variables as reference

2001-09-21 Thread Richard Lynch
http://www.php.net/manual/en/language.references.arent.php I stopped reading after the manual said "You can't do that", but there's a user-contributed note on a work-around that you may want to read. Disclaimer: I don't really grok & in PHP yet, so I just don't use it. :-p -- WARNING [EMAIL PR

[PHP] Re: Global Variables -> Local Scope

2001-07-27 Thread elias
$varname = "hi!"; function read_global() { $varname = $GLOBLS["varname"]; } "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How can I read in all of the global variables and give them local > scope? PLEASE HELP ME. -- PHP General Mai