php-general Digest 14 Sep 2010 10:12:09 -0000 Issue 6940

2010-09-14 Thread php-general-digest-help
php-general Digest 14 Sep 2010 10:12:09 - Issue 6940 Topics (messages 308035 through 308059): Re: 1984 (Big Brother) 308035 by: chris h 308037 by: Daevid Vincent 308042 by: Micky Hulse 308045 by: Daniel Brown 308048 by: Micky Hulse 308049 by:

php-general Digest 15 Sep 2010 01:00:44 -0000 Issue 6941

2010-09-14 Thread php-general-digest-help
php-general Digest 15 Sep 2010 01:00:44 - Issue 6941 Topics (messages 308060 through 308074): Re: Counting Children! 308060 by: Sridhar Pandurangiah Re: 1984 (Big Brother) 308061 by: Kevin Kinsey 308065 by: tedd Adjusting Session Times 308062 by: Floyd

Re: [PHP] Could this be a bug?

2010-09-14 Thread Camilo Sperberg
Well, after some more testing I'm almost sure it is some kind of strange minor bug... so I've submitted a bug report: http://bugs.php.net/bug.php?id=52833 Greetings ! On Tue, Sep 14, 2010 at 00:51, Camilo Sperberg unrea...@gmail.com wrote: On Mon, Sep 13, 2010 at 18:56, Tamara Temple

Re: [PHP] Could this be a bug?

2010-09-14 Thread Thijs Lensselink
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 about what happens internally, but my best guess would be that after a memory exhaustion, when I try to execute a custom error

Re: [PHP] Could this be a bug?

2010-09-14 Thread Thijs Lensselink
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 about what happens internally, but my best guess would be that after a memory

Re: [PHP] 1984 (Big Brother)

2010-09-14 Thread viraj
got another idea.. setup the database on a machine which can detect the availability of the boss. if the boss machine is on.. and connected to network.. the script will try to verify the availability of the bosses's ip and interface hardware address. (if the boss change the nic or machine, mac has

Re: [PHP] 1984 (Big Brother)

2010-09-14 Thread viraj
On Tue, Sep 14, 2010 at 12:25 PM, viraj kali...@gmail.com wrote: got another idea.. setup the database on a machine which can detect the availability of the boss. if the boss machine is on.. and connected to network.. the script will try to verify the availability of the bosses's ip and

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 setup,

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

2010-09-14 Thread Richard Quadling
On 14 September 2010 08:05, Gary php-gene...@garydjones.name 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

[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 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] 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] 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. You

Re: [PHP] Adjusting Session Times

2010-09-14 Thread Andrew Ballard
On Tue, Sep 14, 2010 at 10:26 AM, Floyd Resler fres...@adex-intl.com 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

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,

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

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

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

Re: [PHP] php cli question

2010-09-14 Thread J Ravi Menon
On Tue, Sep 14, 2010 at 12:43 AM, Per Jessen p...@computer.org 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.

[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

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 p...@computer.org 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

[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

Re: [PHP] Could this be a bug?

2010-09-14 Thread Camilo Sperberg
On Tue, Sep 14, 2010 at 02:46, Thijs Lensselink d...@lenss.nl 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 about

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 mpbr...@gmail.com 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

[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

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 nrix...@gmail.com wrote: Daniel

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

Re: [PHP] 1984 (Big Brother)

2010-09-14 Thread Nathan Rixham
Daniel Brown wrote: On Mon, Sep 13, 2010 at 19:47, Micky Hulse mickyhulse.li...@gmail.com 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.

Re: [PHP] php cli question

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