[PHP] R: [PHP] Date Function Questions

2005-12-11 Thread Sebastian \En3pY\ Zdrojewski
afaik it's the system time. Cheers En3pY Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/ E-Mail: [EMAIL PROTECTED] Le informazioni contenute in questo messaggio sono riservate e confidenziali. Il loro utilizzo รจ

[PHP] R: [PHP] Performance question

2005-12-05 Thread Sebastian \En3pY\ Zdrojewski
Hi, I do prefer the first style programming after longer time in programming PHP. I like the idea of keeping HTML and PHP code separate for cosmetic purpose as well as mantainance. Actually a code with PHP only, I mean really with NO HTML code in it, is more portable and easy to mantain. As for

[PHP] R: [PHP] Re: Performance question

2005-12-05 Thread Sebastian \En3pY\ Zdrojewski
Hi, actually I think that if you have performance problem is when you make the calculations and process. If you make processes while giving output to the client, you might have some problems whether being somehow output buffering dependant... I would rather leave the output management as final

[PHP] R: [PHP] how to unregister session stored as multidimensional array?

2005-12-05 Thread Sebastian \En3pY\ Zdrojewski
Try ? @reset( $_SESSION['client'] ); while ( list( $var, $val ) = @each( $_SESSION['client'] ) ) { if ( $var != 'name' ) unset( $_SESSION['client'][ $val ] ); } ? a bit dirty but works... :-/ Sebastian Konstanty Zdrojewski URL: http://www.en3py.net/

[PHP] R: [PHP] Problem with Frames and Sessions

2005-11-28 Thread Sebastian \En3pY\ Zdrojewski
Change the logon script. The cookies of each frame are loaded separately, so if you want the session to be active in all the frames, at least once you got to reload them. The easiest way, I think, is to change the logon script: put it on a main page and once the user is logged in, create the

[PHP] R: [PHP] Intersecting Dates

2005-11-26 Thread Sebastian \En3pY\ Zdrojewski
If you got also the year you can transform the dates into UNIX TIMESTAMP and check againist that. If you don't have that, write down a simple procedure that converts dates into days since 01/01 and use that method, but it will be faulty if the date ranges overlap years. Cheers En3pY Sebastian

[PHP] R: [PHP] Re: Can't execute external program

2005-11-24 Thread Sebastian \En3pY\ Zdrojewski
Try verifying the following: - does the web server user (apache/nobody) have a shell? - can the web server user/group execute the file? (x permission) I believe this is your problem, the exec option for the apache would be useful if you need to run an executable from the apache service, not from