[PHP] Finding the sizeof a variable....

2004-06-02 Thread Matthew A. Blasinski
Hi, I'm wondering if there's something similar to the C sizeof operator in PHP? I would like to find out how much space in memory a variable is actually using (and possibly adjust the max memory per script accordingly). No, sizeof() http://us3.php.net/sizeof is not what I want :-( Thanks! Matt

Re: [PHP] Changing Bytes to KB, to megs, to gigs.

2003-07-26 Thread Matthew A. Blasinski
Philip J. Newman wrote: My goal is to input the amount of Bytes used by a user as $inputbox and calculate how many kbs,megs,gigs along with $cost for the price per meg. Questions? 1. Should I be dividing by 1024 or 1000? This was passed to me by word of mouth ... 2. Any way of rounding to 2 or 3

Re: [PHP] Best way to transfer session IDs

2003-07-26 Thread Matthew A. Blasinski
Chris Shiflett wrote: --- "Matthew A. Blasinski" <[EMAIL PROTECTED]> wrote: So, I'm thinking a plausible session id could be made by hashing their identification (to make it useful to the rightful owner only) with a private key (to make it hard to get and guess). I think the

Re: [PHP] Best way to transfer session IDs

2003-07-25 Thread Matthew A. Blasinski
ain, Matt Chris Shiflett wrote: --- "Matthew A. Blasinski" <[EMAIL PROTECTED]> wrote: My question - what is the best way to "know" the session id between pages? Posting it in the URL and using $_GET["PHPSESSID"] is one solution, but this seems like a hassl

[PHP] Best way to transfer session IDs

2003-07-25 Thread Matthew A. Blasinski
Hi, I'm trying to track session data and merge several related services through a common server-side session (using Apache). One condition is that it won't use cookies to store the user data OR the session ID. Another is that the services we're merging use different languages, including PHP a