Re: [PHP] How to check if remote machines are running using PHP and Eclipse-Require Urgent Help

2011-04-02 Thread tedd

At 3:10 PM -0400 4/2/11, Bastien wrote:

On 2011-04-02, at 12:21 PM, tedd  wrote:


 At 11:30 PM +0100 4/1/11, Stuart Dallas wrote:
 Also, give your boss a slap. Why is he specifying what editor you 
use to write a PHP script? I really don't understand most 
management types!


 -Stuart



 Management rises to their level of competence++.

 Cheers,

 tedd

 --
 ---
 http://sperling.com/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



Tedd,

I usually find that it's one level above their competence.

Bastien Koert
Sent from my iPhone


That's what the ++ meant.

Cheers,

tedd
--
---
http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Re: Looking for Tool to read JSON format

2011-04-02 Thread Michelle Konzack
Hello Robert Stone,

Am 2011-04-02 16:04:22, hacktest Du folgendes herunter:
> Have you looked at http://pecl.php.net/package/json

Yes, it took me over 40 seconds to  load  on  my  GSM  connection,  then
something hanged and timed out after arround 3 minutes...  not funny!

> Might help. Package php-services-json is at version 1.0.2-1 on my
> Debian install.

This what I have now installed and it is annoying, if there is not  even
a text/plain file (which can easyly generated from the HTML page) in the
package which tell someone how to use it.

"Open Source Software" is very nice, but there  are  MANY  things  which
could be much more better.  I am OSS programmer and my Customers expect,
that ANYTHING is documented because they do not want  to  guess  how  is
something working or like to search the Internet for infos about it.

> Bon soir,
> Robert

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL   itsystems@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

  
 

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Re: [PHP] Re: Looking for Tool to read JSON format

2011-04-02 Thread Robert Stone
Have you looked at http://pecl.php.net/package/json

Might help. Package php-services-json is at version 1.0.2-1 on my Debian 
install.

Bon soir,
Robert



--- Em sáb, 2/4/11, Michelle Konzack  escreveu:

De: Michelle Konzack 
Assunto: [PHP] Re: Looking for Tool to read JSON format
Para: php-general@lists.php.net
Data: Sábado, 2 de Abril de 2011, 15:25

Hello Me,

Am 2011-04-01 17:34:39, hacktest Du folgendes herunter:
> http://www.php.net/manual/en/book.json.php

Was using Debian/Lenny and have not found any JSON/PHP stuff  but  under
Squeeze the package "php-services-json" and what I dslike is, that there
is NO documentation with the Package, exspecialy if  I  install  Squeeze
from DVD and have from time to time no Intenet connection  and  wehre  I
live, I can not get ADSL only GSM and if the whether is good, UMTS/HSPA.

So, software without documentation is only worse...

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL       itsystems@tdnet UG (limited liability)
Owner Michelle Konzack            Owner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz                 Kinzigstraße 17
67100 Strasbourg/France           77694 Kehl/Germany
Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

  
         

Jabber linux4miche...@jabber.ccc.de
ICQ    #328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/



  

Re: [PHP] date problem

2011-04-02 Thread Dan Dan
It seems different php versions have different outputs for this code:

Fedora Core 14 (x86):

first: 01-03-2011 00:00:00
second: 08-03-2011 00:00:00
third: 22-03-2011 00:00:00
fourth: 22-03-2011 00:00:00
fifth: 29-03-2011 00:00:00

Fedora Core11 (x86_64):

first: 31-12-1969 16:00:00
second: 31-12-1969 16:00:00
third: 22-03-2011 00:00:00
fourth: 31-12-1969 16:00:00
fifth: 31-12-1969 16:00:00

However it works if reorder Year and Month like:

echo "first: ".date("d-m-Y H:i:s",strtotime('2011 March first
wednesday'))."\n";
echo "second: ".date("d-m-Y H:i:s",strtotime('2011 March second
wednesday'))."\n";
echo "third: ".date("d-m-Y H:i:s",strtotime('2011 March third
wednesday'))."\n";
echo "fourth: ".date("d-m-Y H:i:s",strtotime('2011 March fourth
wednesday'))."\n";
echo "fifth: ".date("d-m-Y H:i:s",strtotime('2011 March fifth
wednesday'))."\n";

first: 02-03-2011 00:00:00
second: 09-03-2011 00:00:00
third: 16-03-2011 00:00:00
fourth: 23-03-2011 00:00:00
fifth: 30-03-2011 00:00:00

Thanks
-dani


On Sat, Apr 2, 2011 at 1:17 AM, Louis Huppenbauer <
louis.huppenba...@gmail.com> wrote:

> Just try "of March". Worked for me.
>
>
> print "first: ".date("d-m-Y H:i:s",strtotime('first Tuesday of March
> 2011'))."\n";
> print "second: ".date("d-m-Y H:i:s",strtotime('second Tuesday of March
> 2011'))."\n";
> print "third: ".date("d-m-Y H:i:s",strtotime('third Tuesday of March
> 2011'))."\n";
> print "fourth: ".date("d-m-Y H:i:s",strtotime('fourth Tuesday of March
> 2011'))."\n";
> print "fifth: ".date("d-m-Y H:i:s",strtotime('fifth Tuesday of March
> 2011'))."\n";
>
>
> 2011/4/2 Dan Dan :
> > I removed the day (1 before the March), but its still giving the same
> > result, i.e. different days of month with and without the 'first'. Any
> > further help ?
> >
> > print "first Tuesday :".date("d-m-Y H:i:s",strtotime('March 2011
> > Tuesday'))."\n";
> > print "first: ".date("d-m-Y H:i:s",strtotime('March 2011 first
> > Tuesday'))."\n";
> > print "second: ".date("d-m-Y H:i:s",strtotime('March 2011 second
> > Tuesday'))."\n";
> > print "third: ".date("d-m-Y H:i:s",strtotime('March 2011 third
> > Tuesday'))."\n";
> > print "fourth: ".date("d-m-Y H:i:s",strtotime('March 2011 fourth
> > Tuesday'))."\n";
> >
> > first Tuesday :01-03-2011 00:00:00
> > first: 08-03-2011 00:00:00
> > second: 15-03-2011 00:00:00
> > third: 22-03-2011 00:00:00
> > fourth: 29-03-2011 00:00:00
> >
> > Thanks
> > -dani
> >
> >
> >
> > On Fri, Apr 1, 2011 at 9:37 AM, Daniel Brown  wrote:
> >
> >> On Fri, Apr 1, 2011 at 12:35, Dan Dan  wrote:
> >> > Hi Folks,
> >> >
> >> > I am trying to get the day of month for a particular day of week (e.g.
> >> > Tuesday) for the first, second, third, fourth week in a month. The
> code i
> >> > have seems issues in March, but works e.g. in April:
> >> >
> >> > print date("d-m-Y H:i:s",strtotime('1 March 2011 Tuesday'));
> >> >>> 01-03-2011 00:00:00
> >> >
> >> > print date("d-m-Y H:i:s",strtotime('1 March 2011 first Tuesday'));
> >> >>> 08-03-2011 00:00:00
> >> >
> >> > While in April, I have
> >> >
> >> > print date("d-m-Y H:i:s",strtotime('1 April 2011 Tuesday'));
> >> >>> 05-04-2011 00:00:00
> >> >
> >> > print date("d-m-Y H:i:s",strtotime('1 April 2011 first Tuesday'));
> >> >>> 05-04-2011 00:00:00
> >> >
> >> > Could someone help whats wrong with the technique i am trying to find
> >> that
> >> > day of month. Is there any better way ?
> >>
> >> Because you're combining the date with the day of the week.  It so
> >> happens that 1 March was a Tuesday, but today - 1 April - is a Friday.
> >>  Pick one or the other, not both.
> >>
> >> --
> >> 
> >> Network Infrastructure Manager
> >> http://www.php.net/
> >>
> >
>


Re: [PHP] How to check if remote machines are running using PHP and Eclipse-Require Urgent Help

2011-04-02 Thread Bastien


On 2011-04-02, at 12:21 PM, tedd  wrote:

> At 11:30 PM +0100 4/1/11, Stuart Dallas wrote:
>> Also, give your boss a slap. Why is he specifying what editor you use to 
>> write a PHP script? I really don't understand most management types!
>> 
>> -Stuart
> 
> 
> Management rises to their level of competence++.
> 
> Cheers,
> 
> tedd
> 
> -- 
> ---
> http://sperling.com/
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

Tedd,

I usually find that it's one level above their competence. 

Bastien Koert
Sent from my iPhone
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Looking for Tool to read JSON format

2011-04-02 Thread Michelle Konzack
Hello Me,

Am 2011-04-01 17:34:39, hacktest Du folgendes herunter:
> http://www.php.net/manual/en/book.json.php

Was using Debian/Lenny and have not found any JSON/PHP stuff  but  under
Squeeze the package "php-services-json" and what I dslike is, that there
is NO documentation with the Package, exspecialy if  I  install  Squeeze
from DVD and have from time to time no Intenet connection  and  wehre  I
live, I can not get ADSL only GSM and if the whether is good, UMTS/HSPA.

So, software without documentation is only worse...

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL   itsystems@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

  
 

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Re: [PHP] How to check if remote machines are running using PHP and Eclipse-Require Urgent Help

2011-04-02 Thread tedd

At 11:30 PM +0100 4/1/11, Stuart Dallas wrote:
Also, give your boss a slap. Why is he specifying what editor you 
use to write a PHP script? I really don't understand most management 
types!


-Stuart



Management rises to their level of competence++.

Cheers,

tedd

--
---
http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] date problem

2011-04-02 Thread Louis Huppenbauer
Just try "of March". Worked for me.


print "first: ".date("d-m-Y H:i:s",strtotime('first Tuesday of March
2011'))."\n";
print "second: ".date("d-m-Y H:i:s",strtotime('second Tuesday of March
2011'))."\n";
print "third: ".date("d-m-Y H:i:s",strtotime('third Tuesday of March
2011'))."\n";
print "fourth: ".date("d-m-Y H:i:s",strtotime('fourth Tuesday of March
2011'))."\n";
print "fifth: ".date("d-m-Y H:i:s",strtotime('fifth Tuesday of March
2011'))."\n";


2011/4/2 Dan Dan :
> I removed the day (1 before the March), but its still giving the same
> result, i.e. different days of month with and without the 'first'. Any
> further help ?
>
> print "first Tuesday :".date("d-m-Y H:i:s",strtotime('March 2011
> Tuesday'))."\n";
> print "first: ".date("d-m-Y H:i:s",strtotime('March 2011 first
> Tuesday'))."\n";
> print "second: ".date("d-m-Y H:i:s",strtotime('March 2011 second
> Tuesday'))."\n";
> print "third: ".date("d-m-Y H:i:s",strtotime('March 2011 third
> Tuesday'))."\n";
> print "fourth: ".date("d-m-Y H:i:s",strtotime('March 2011 fourth
> Tuesday'))."\n";
>
> first Tuesday :01-03-2011 00:00:00
> first: 08-03-2011 00:00:00
> second: 15-03-2011 00:00:00
> third: 22-03-2011 00:00:00
> fourth: 29-03-2011 00:00:00
>
> Thanks
> -dani
>
>
>
> On Fri, Apr 1, 2011 at 9:37 AM, Daniel Brown  wrote:
>
>> On Fri, Apr 1, 2011 at 12:35, Dan Dan  wrote:
>> > Hi Folks,
>> >
>> > I am trying to get the day of month for a particular day of week (e.g.
>> > Tuesday) for the first, second, third, fourth week in a month. The code i
>> > have seems issues in March, but works e.g. in April:
>> >
>> > print date("d-m-Y H:i:s",strtotime('1 March 2011 Tuesday'));
>> >>> 01-03-2011 00:00:00
>> >
>> > print date("d-m-Y H:i:s",strtotime('1 March 2011 first Tuesday'));
>> >>> 08-03-2011 00:00:00
>> >
>> > While in April, I have
>> >
>> > print date("d-m-Y H:i:s",strtotime('1 April 2011 Tuesday'));
>> >>> 05-04-2011 00:00:00
>> >
>> > print date("d-m-Y H:i:s",strtotime('1 April 2011 first Tuesday'));
>> >>> 05-04-2011 00:00:00
>> >
>> > Could someone help whats wrong with the technique i am trying to find
>> that
>> > day of month. Is there any better way ?
>>
>>     Because you're combining the date with the day of the week.  It so
>> happens that 1 March was a Tuesday, but today - 1 April - is a Friday.
>>  Pick one or the other, not both.
>>
>> --
>> 
>> Network Infrastructure Manager
>> http://www.php.net/
>>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php