[PHP] How can I make this smaller

2001-04-05 Thread Richard Kurth
Is there another way to write this I would like to make it smaller also How would I write it so it is a function and I would be able to use all the data throughout the whole program every time I try the rest of the program does not see the data if(file_exists("userdata")) { $fp2=fopen

Re: [PHP] How can I make this smaller

2001-04-05 Thread Matt McClanahan
On Thu, Apr 05, 2001 at 01:40:54PM -0700, Richard Kurth wrote: Is there another way to write this I would like to make it smaller also How would I write it so it is a function and I would be able to use all the data throughout the whole program every time I try the rest of the program does

Re: [PHP] How can I make this smaller

2001-04-05 Thread Chris Anderson
l 05, 2001 6:56 PM Subject: Re: [PHP] How can I make this smaller On Thu, Apr 05, 2001 at 01:40:54PM -0700, Richard Kurth wrote: Is there another way to write this I would like to make it smaller also How would I write it so it is a function and I would be able to use all the data throughout

Re: [PHP] How can I make this smaller

2001-04-05 Thread Lindsay Adams
On 4/5/01 3:56 PM, "Matt McClanahan" [EMAIL PROTECTED] wrote: On Thu, Apr 05, 2001 at 01:40:54PM -0700, Richard Kurth wrote: Is there another way to write this I would like to make it smaller also How would I write it so it is a function and I would be able to use all the data throughout

Re: [PHP] How can I make this smaller + something neet with global

2001-04-05 Thread Plutarck
Um...I think you could just use "global". As in: global $domain, $tld, $firstname, $lastname, $userid; Once a variable is declared global, any change to that variable inside the function is reflected outside of the function. So: function before_after () { global $var; echo $var . "BR"; $var