Re: [PHP] Could this be a bug?

2010-09-14 Thread Thijs Lensselink
On 09/14/2010 11:31 PM, Camilo Sperberg wrote: On Tue, Sep 14, 2010 at 02:46, Thijs Lensselink wrote: On 09/14/2010 08:33 AM, Thijs Lensselink wrote: On 09/14/2010 12:16 AM, Camilo Sperberg wrote: I have some really strange behaviour going on here, and I think it could be a (minor) PH

Re: [PHP] php cli question

2010-09-14 Thread J Ravi Menon
On Tue, Sep 14, 2010 at 1:15 PM, Per Jessen wrote: > J Ravi Menon wrote: > >> On Tue, Sep 14, 2010 at 12:43 AM, Per Jessen wrote: >>> J Ravi Menon wrote: >>> Few questions: 1) Does opcode cache really matter in such cli-based daemons? As 'SomeClass' is instantiated at every lo

Re: [PHP] 1984 (Big Brother)

2010-09-14 Thread Nathan Rixham
Daniel Brown wrote: On Mon, Sep 13, 2010 at 19:47, Micky Hulse wrote: Motion sensing camera connected to a mechanical pointer stick aimed to trigger the server power button. On his way out of the office: Clap on/clap off Clapper connected to computer power cable. It would be cheaper to

Re: [PHP] php cli question

2010-09-14 Thread Nathan Rixham
Per Jessen wrote: J Ravi Menon wrote: 2) What about garbage collection? In a standard apache-mod-php setup, we rely on the end of a request-cycle to free up resources - close file descriptiors, free up memory etc.. I am assuming in the aforesaid standalone daemon case, we would have to do this m

Re: [PHP] Question about news.php.net

2010-09-14 Thread Daniel Brown
Good to know there's a workaround. I am thinking of using one (or more) of the old VOOM boxes to mirror the news server for NNTP-only access. Sent from my DROID. Apologies if formatting is off or I'm top-posting on a list. On Sep 14, 2010 8:59 PM, "Nathan Rixham" wrote: > Daniel Brown wrote: >>

[PHP] Re: Adjusting Session Times

2010-09-14 Thread Nathan Rixham
Floyd Resler wrote: We just got a client whose requirement is that user sessions expire after 30 minutes of inactivity. Our other clients are happy with not having their sessions expire during the work day (i.e. life is 8 hours). I am using a MySQL database to store the session data. My tho

Re: [PHP] Question about news.php.net

2010-09-14 Thread Nathan Rixham
Daniel Brown wrote: On Mon, Sep 13, 2010 at 18:09, MikeB wrote: However, getting access seems to be hit-and-miss, since I more often than not get a message that the connection to news.php.net timed out. Is this an indication that the server is just very busy? I don't get this on any other news

Re: [PHP] Could this be a bug?

2010-09-14 Thread Camilo Sperberg
On Tue, Sep 14, 2010 at 02:46, Thijs Lensselink wrote: > On 09/14/2010 08:33 AM, Thijs Lensselink wrote: > >> On 09/14/2010 12:16 AM, Camilo Sperberg wrote: >> >>> I have some really strange behaviour going on here, and I think it could >>> be >>> a (minor) PHP's bug. >>> I am not really sure a

[PHP] Image question for runways

2010-09-14 Thread Alexis
Hi, I am trying to create an on the fly image of runway layouts but am hitting a brick wall. I have both the starting and ending coordinates of each runway, it's length, as well as it's angle of direction (heading). I can draw one runway without any problem, but where I am falling short is

Re: [PHP] php cli question

2010-09-14 Thread Per Jessen
J Ravi Menon wrote: > On Tue, Sep 14, 2010 at 12:43 AM, Per Jessen wrote: >> J Ravi Menon wrote: >> >>> Few questions: >>> >>> 1) Does opcode cache really matter in such cli-based daemons? As >>> 'SomeClass' is instantiated at every loop, I am assuming it is only >>> compiled once as it has alrea

[PHP] bcompiler: compile in a diferent directory

2010-09-14 Thread Ramiro Gonzalez
I use bcompiler in my php code(bcompiler_write_header+bcompiler_write_file+bcompiler_write_footer). If the original phps are not located in the deployment directory I get an error: require_once use the path to the not compiled phps. I'd like to know if there is any way to compile the phps and use t

Re: [PHP] php cli question

2010-09-14 Thread J Ravi Menon
On Tue, Sep 14, 2010 at 12:43 AM, Per Jessen wrote: > J Ravi Menon wrote: > >> Few questions: >> >> 1) Does opcode cache really matter in such cli-based daemons? As >> 'SomeClass' is instantiated at every loop, I am assuming it is only >> compiled once as it has already been 'seen'. > > Yup. Just

RE: [PHP] Filestat.c erorrs when building php-5.3.3 on solaris

2010-09-14 Thread STANFIELD, VICKI CTR DFAS
For the record, the problem appears to have been that the gcc version was too old. It compiles with gcc 3.4.6 -Vicki Stanfield, RHCE, CISSP Web Management Group tso-cs-web-t...@dfas.mil Defense Finance and Accounting Service Technical Services Organization - Corporate Services vicki.stanfield.

Re: [PHP] Adjusting Session Times

2010-09-14 Thread Floyd Resler
Tedd, I really like your solution. The idea of storing the expiration in the SESSION makes it easier for me and makes it more flexible. Someone else had provided a solution that would actually allow me to take it down to a user level if I needed to. I loved the idea for flexibility bu

Re: [PHP] Adjusting Session Times

2010-09-14 Thread tedd
At 10:26 AM -0400 9/14/10, Floyd Resler wrote: We just got a client whose requirement is that user sessions expire after 30 minutes of inactivity. Our other clients are happy with not having their sessions expire during the work day (i.e. life is 8 hours). I am using a MySQL database to store

Re: [PHP] 1984 (Big Brother)

2010-09-14 Thread tedd
At 8:05 PM -0400 9/13/10, Daniel Brown wrote: The boss stands up, his entire infrastructure collapses, everyone's connections are closed, and all PCs subsequently catch fire. LOL Sounds good to me. After that happens a couple of times, maybe things will change. If it's the private sector, th

Re: [PHP] Adjusting Session Times

2010-09-14 Thread Andrew Ballard
On Tue, Sep 14, 2010 at 10:26 AM, Floyd Resler wrote: > We just got a client whose requirement is that user sessions expire after 30 > minutes of inactivity.  Our other clients are happy with not having their > sessions expire during the work day (i.e. life is 8 hours).  I am using a > MySQL da

Re: [PHP] Adjusting Session Times

2010-09-14 Thread chris h
> My thought is to adjust the session expiration in the table based on the > client currently logged in. > > I don't know if there's a better way, but I would probably just do that. The expiration would be set to whatever the client's preference is, and default to 8 hours if he doesn't have one.

[PHP] Adjusting Session Times

2010-09-14 Thread Floyd Resler
We just got a client whose requirement is that user sessions expire after 30 minutes of inactivity. Our other clients are happy with not having their sessions expire during the work day (i.e. life is 8 hours). I am using a MySQL database to store the session data. My thought is to adjust the

Re: [PHP] Re: 1984 (Big Brother)

2010-09-14 Thread Kevin Kinsey
Gary wrote: tedd wrote: I have a client who wants his employees' access to their online business database restricted to only times when he is logged on. (Don't ask why) Simply put a "dead man's handle" under his seat which turns on the power to the server when he sits on it. I figured we'd

[PHP] Re: Counting Children!

2010-09-14 Thread Sridhar Pandurangiah
I managed to solve this myself. Here is the code. For some reason "foreach" works for the first set of non unique tags and doesn't work if the non unique tags are nested within the first set. Use the following code to access the tag values of the nested non unique tags. (see the XML file below

Re: [PHP] Re: 1984 (Big Brother)

2010-09-14 Thread Richard Quadling
On 14 September 2010 08:05, Gary wrote: > tedd wrote: >> I have a client who wants his employees' access to their online business >> database restricted to only times when he is logged on. (Don't ask why) > > Simply put a "dead man's handle" under his seat which turns on the power > to the server

Re: [PHP] php cli question

2010-09-14 Thread Per Jessen
J Ravi Menon wrote: > Few questions: > > 1) Does opcode cache really matter in such cli-based daemons? As > 'SomeClass' is instantiated at every loop, I am assuming it is only > compiled once as it has already been 'seen'. Yup. > 2) What about garbage collection? In a standard apache-mod-php se