Re: [PHP] calculate the time that day ends

2009-02-03 Thread Lupus Michaelis
Shawn McKenzie a écrit : STFW That's not so fair. If Thodoris ask about day end, it is obvious he's wrong with the word. Wrong because he isn't mastering english. So, without the good word (sunset), he can't find. So please don't bash us when we appear silly ! -- Mickaël Wolff aka Lupu

Re: [PHP] Visibility of class constant

2009-02-03 Thread Shawn McKenzie
Chris Scott wrote: > You cannot access a class constant just by the constant name. See > http://docs.php.net/manual/en/language.oop5.paamayim-nekudotayim.php. Holy crap! Why can't it just be :: or double colon! -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.

RE: [PHP] Visibility of class constant

2009-02-03 Thread leledumbo
Got it, thanks. I see that PHP is unlike many other OO language, it's a little stricter in scoping. -- View this message in context: http://www.nabble.com/Visibility-of-class-constant-tp21803985p21823751.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Maili

Re: [PHP] How can I do the opposite of property_exists(), maybe a create_property() in PHP5?

2009-02-03 Thread Nathan Nobbe
On Tue, Feb 3, 2009 at 4:19 PM, Daevid Vincent wrote: > On Wed, 2009-02-04 at 08:58 +1100, Chris wrote: > > > >> the question is what is __set() doing, if it's throwing an exception > > >> for undefined properties then obviously it with 'blow up'. > > > > > > > > > > > > But why should __set() ev

Re: [PHP] How can I do the opposite of property_exists(), maybe a create_property() in PHP5?

2009-02-03 Thread Daevid Vincent
On Wed, 2009-02-04 at 08:58 +1100, Chris wrote: > >> the question is what is __set() doing, if it's throwing an exception > >> for undefined properties then obviously it with 'blow up'. > > > > > > > > But why should __set() even be called if I'm accessing the property > > directly? This seems

Re: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-03 Thread VamVan
On Tue, Feb 3, 2009 at 2:54 PM, Jim Lucas wrote: > TS wrote: > > I'm trying to send vars via POST somehow. Is this possible? > > > > Currently I'm doing > > > > header("Location: http://domain/index.php?var=3";); > > > > but, want to send POST or some other method that doesn't stick with the > se

Re: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-03 Thread Kyle Terry
On Tue, Feb 3, 2009 at 2:54 PM, Jim Lucas wrote: > TS wrote: >> I'm trying to send vars via POST somehow. Is this possible? >> >> Currently I'm doing >> >> header("Location: http://domain/index.php?var=3";); >> >> but, want to send POST or some other method that doesn't stick with the >> session.

Re: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-03 Thread Jim Lucas
TS wrote: > I'm trying to send vars via POST somehow. Is this possible? > > Currently I'm doing > > header("Location: http://domain/index.php?var=3";); > > but, want to send POST or some other method that doesn't stick with the > session. > > Thanks, T > > No, it is not possible. You will

[PHP] Is it possible to send POST vars through a header redirect?

2009-02-03 Thread TS
I'm trying to send vars via POST somehow. Is this possible? Currently I'm doing header("Location: http://domain/index.php?var=3";); but, want to send POST or some other method that doesn't stick with the session. Thanks, T -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] [PROJECT HELP] - JotBug - A Project Management & Issue Tracker written 100% with Zend Framework

2009-02-03 Thread rcastley
Hi, I now have a demo site available so you can easily monitor the projects progress. The site is updated daily with the svn checkins. http://www.jotbug.org The source is still hosted at http://jotbug.googlecode.com Regards, - Robert rcastley wrote: > > Hi, > > I am looking (begging!)

Re: [PHP] How can I do the opposite of property_exists(), maybe a creat_property() in PHP5?

2009-02-03 Thread Chris
the question is what is __set() doing, if it's throwing an exception for undefined properties then obviously it with 'blow up'. But why should __set() even be called if I'm accessing the property directly? This seems stupid. $this->oraclecustomerid = 1122; should NOT be the same as $this

Re: [PHP] calculate the time that day ends

2009-02-03 Thread tedd
At 11:36 AM -0500 2/3/09, Dan Shirah wrote: Doesn't every day end at 23:59:59? the next second would be 00:00:00...the beginning of a new day! :) Splitting hairs. December 31, 2008 had two 23:59:59 -- it was a leap second for that year. My grand-kids, being the nerds that they are counted th

Re: [PHP] How can I do the opposite of property_exists(), maybe a creat_property() in PHP5?

2009-02-03 Thread Daevid Vincent
On Tue, 2009-02-03 at 08:30 +0100, Edmund Hertle wrote: > 2009/2/3 Daevid Vincent > > > Is there a way to create a new property via PHP 5.2.4? > > > > I get a hash back from an authentication server. I'm not guaranteed that > > someone in another department won't add new key/values to the return

Re: [PHP] How can I do the opposite of property_exists(), maybe a creat_property() in PHP5?

2009-02-03 Thread Daevid Vincent
On Tue, 2009-02-03 at 12:51 +0100, Jochem Maas wrote: > Edmund Hertle schreef: > > 2009/2/3 Daevid Vincent > > > >> Is there a way to create a new property via PHP 5.2.4? > >> > >> I get a hash back from an authentication server. I'm not guaranteed that > >> someone in another department won't a

Re: [PHP] Re: calculate the time that day ends

2009-02-03 Thread Ralf Meyer
Am Dienstag, 3. Februar 2009 schrieb Shawn McKenzie: > I'm not sure that I understand, but I'm pretty sure that every day > ends on 23:59:59. No, for some people only most days :-) : http://en.wikipedia.org/wiki/Leap_second some days end on 23:59:60 which is not the same as 00:00:00. Ralf -- M

Re: [PHP] Re: Throwing an exception seems to defeat output buffering

2009-02-03 Thread Alpár Török
2009/2/3 Shawn McKenzie > Wickland, Leif wrote: > > I would expect that if I turn on output buffering, echo something, throw > an exception, and catch the exception, nothing will have been actually > output.. That doesn't seem to be the case. Throwing an exception seems to > defeat output buffe

Re: [PHP] calculate the time that day ends

2009-02-03 Thread Thodoris
Shawn McKenzie wrote: Thodoris wrote: 2009/2/3 Thodoris : I was wondering if there is way to find out what is the time that every day ends? I am planning to add this to the first page on an interface I am developing. Most days end at midnight, but there

Re: [PHP] calculate the time that day ends

2009-02-03 Thread Shawn McKenzie
Shawn McKenzie wrote: > Shawn McKenzie wrote: >> Thodoris wrote: 2009/2/3 Thodoris : > I was wondering if there is way to find out what is the time that > every > day ends? I am planning to add this to the first page on an > interface I am > developing. >

Re: [PHP] calculate the time that day ends

2009-02-03 Thread Shawn McKenzie
Shawn McKenzie wrote: > Thodoris wrote: >>> 2009/2/3 Thodoris : >>> I was wondering if there is way to find out what is the time that every day ends? I am planning to add this to the first page on an interface I am developing. >>> Most days end at midnight, b

Re: RES: [PHP] calculate the time that day ends

2009-02-03 Thread Thodoris
Try: echo date("H:i:s", mktime(23-date("H"), 59-date("i"), 59-date("s")); This is I guess how much time we have to reach midnight. But the question is how to calculate the time that sun stops showing its refreshing light. BTW try not to top post -- Thodoris -- PHP General Mailing

Re: [PHP] calculate the time that day ends

2009-02-03 Thread Shawn McKenzie
Thodoris wrote: > >> 2009/2/3 Thodoris : >> >>> I was wondering if there is way to find out what is the time that >>> every >>> day ends? I am planning to add this to the first page on an >>> interface I am >>> developing. >>> >> >> Most days end at midnight, but there may be some except

[PHP] Re: Throwing an exception seems to defeat output buffering

2009-02-03 Thread Shawn McKenzie
Wickland, Leif wrote: > I would expect that if I turn on output buffering, echo something, throw an > exception, and catch the exception, nothing will have been actually output.. > That doesn't seem to be the case. Throwing an exception seems to defeat > output buffering. > > In the following

RES: [PHP] calculate the time that day ends

2009-02-03 Thread Jônatas Zechim
Try: echo date("H:i:s", mktime(23-date("H"), 59-date("i"), 59-date("s")); -Mensagem original- De: Thodoris [mailto:t...@kinetix.gr] Enviada em: terça-feira, 3 de fevereiro de 2009 14:38 Para: Stuart Cc: php-general@lists.php.net Assunto: Re: [PHP] calculate the time that day ends > 200

[PHP] Re: calculate the time that day ends

2009-02-03 Thread Shawn McKenzie
Thodoris wrote: > Hi gang, >I was wondering if there is way to find out what is the time that > every day ends? I am planning to add this to the first page on an > interface I am developing. > I'm not sure that I understand, but I'm pretty sure that every day ends on 23:59:59. -- Thanks! -S

Re: [PHP] calculate the time that day ends

2009-02-03 Thread Thodoris
2009/2/3 Thodoris : I was wondering if there is way to find out what is the time that every day ends? I am planning to add this to the first page on an interface I am developing. Most days end at midnight, but there may be some exceptions ;-) Seriously though, not really sure what

Re: [PHP] calculate the time that day ends

2009-02-03 Thread Dan Shirah
> Hi gang, > I was wondering if there is way to find out what is the time that every > day ends? I am planning to add this to the first page on an interface I am > developing. > > -- > Thodoris Doesn't every day end at 23:59:59? the next second would be 00:00:00...the beginning of a new day! :

Re: [PHP] Throwing an exception seems to defeat output buffering

2009-02-03 Thread Stuart
2009/2/3 Wickland, Leif : > I would expect that if I turn on output buffering, echo something, throw an > exception, and catch the exception, nothing will have been actually output.. > That doesn't seem to be the case. Throwing an exception seems to defeat > output buffering. > > In the follow

Re: [PHP] calculate the time that day ends

2009-02-03 Thread Stuart
2009/2/3 Thodoris : > I was wondering if there is way to find out what is the time that every > day ends? I am planning to add this to the first page on an interface I am > developing. Most days end at midnight, but there may be some exceptions ;-) Seriously though, not really sure what you're

[PHP] Throwing an exception seems to defeat output buffering

2009-02-03 Thread Wickland, Leif
I would expect that if I turn on output buffering, echo something, throw an exception, and catch the exception, nothing will have been actually output.. That doesn't seem to be the case. Throwing an exception seems to defeat output buffering. In the following code, I would not expect to see t

[PHP] calculate the time that day ends

2009-02-03 Thread Thodoris
Hi gang, I was wondering if there is way to find out what is the time that every day ends? I am planning to add this to the first page on an interface I am developing. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I do the opposite of property_exists(), maybe a creat_property() in PHP5?

2009-02-03 Thread Jochem Maas
Edmund Hertle schreef: > 2009/2/3 Daevid Vincent > >> Is there a way to create a new property via PHP 5.2.4? >> >> I get a hash back from an authentication server. I'm not guaranteed that >> someone in another department won't add new key/values to the returned >> hash/array. I'm trying to work a

RE: [PHP] Visibility of class constant

2009-02-03 Thread Chris Scott
> -Original Message- > From: leledumbo [mailto:leledumbo_c...@yahoo.co.id] > Sent: 03 February 2009 05:03 > To: php-general@lists.php.net > Subject: [PHP] Visibility of class constant > > > I got a weird behaviour of class constant. Suppose I have Index_Controller > and Another_Controller

[PHP] Re: Throwing an exception seems to defeat output buffering

2009-02-03 Thread Colin Guthrie
'Twas brillig, and Leif Wickland at 03/02/09 06:02 did gyre and gimble: I would expect that if I turn on output buffering, echo something, throw an exception, and catch the exception, nothing will have been actually output. That doesn't seem to be the case. Throwing an exception seems to defeat

[PHP] Re: Throwing an exception seems to defeat output buffering

2009-02-03 Thread Ondrej Kulaty
Output buffer is flushed at the end of script. When you throw that exception in try block, this command: exit( 'Contents: ' . ob_get_clean()); never executes and it continues to catch block where you are outputing exception message, and it is added to the buffer, then the script ends and buffer