[PHP] binary subtraction assistance

2011-10-20 Thread Mike Alaimo
Hello, I have two binary numbers which are quite long. 128 bits to be exact. When converting the two items to decimal i get the same result. The binary numbers are quite different, so I am not getting the expected results. Here is my code: $b1 = '0011110110111000110110100

Re: [PHP] Storing user entered data in the session

2010-02-16 Thread Mike Alaimo
The data is displayed on the screen, and the user can change it as many times as they want. What do you think now Ash? Mike On Tue, Feb 16, 2010 at 9:29 AM, Ashley Sheridan wrote: > On Tue, 2010-02-16 at 09:07 -0500, Mike Alaimo wrote: > > Can anyone guide me here? I have the desire

[PHP] Storing user entered data in the session

2010-02-16 Thread Mike Alaimo
Can anyone guide me here? I have the desire to store user entered data into the session. I am regexing it to be only a-zA-z0-9 and a space. The data is stored in an object and then serialized before storing it into the session. Does anyone see any potential security risks here? Thanks, Mike

[PHP] Readline Thread Safety Question

2009-08-08 Thread MIke Alaimo
Hello, I am using PHP 5.3 with readline support. I read that PHP readline is never thread safe. I do not use the readline functions in a web application. What implications does this warning of thread safety have with respect to running normal web applications using apache2? Thank You,

Re: [PHP] DateInterval

2009-04-30 Thread MIke Alaimo
Ah. This makes perfect sense. Good idea. Mike Raymond Irving wrote: --- On Wed, 4/29/09, MIke Alaimo wrote: Raymond, have you tried using DateTime::modify? It appears to work like strtotime. also DateTime::format works like date. At least as far as I can tell. From the

Re: [PHP] DateInterval

2009-04-29 Thread MIke Alaimo
date, etc) support dates greater than 2038. I think this can be done internally by parsing the datetime value swith the DateInterval object and retuning the results to the standard functions. Best regards, __ Raymond Irving --- On *Wed, 4/29/09, MIke Alaimo //* wrote: From: MIke Alaimo

[PHP] DateInterval

2009-04-29 Thread MIke Alaimo
Hello, I would like to know how to correctly use DateInterval::format(). The documentation is unclear. Also, I am willing to write some documentation for the DateInterval and DatePeriod if no one has taken the task. Thanks for the help. Mike -- PHP General Mailing List (http://www.php.ne