php-general Digest 25 Mar 2007 09:26:30 -0000 Issue 4696
Topics (messages 251300 through 251317):
Gb`ÈlÈåW
251300 by: ÉéÝ
is pecl.php.net down?
251301 by: martin
251302 by: Gregory Beaver
251303 by: martin
Re: Computing and calculating dates
251304 by: Jake McHenry
Array Question
251305 by: rluckhurst.resmaster.com
251307 by: Jake McHenry
251309 by: Jake McHenry
251310 by: rluckhurst.resmaster.com
251311 by: rluckhurst.resmaster.com
251313 by: Jake McHenry
251314 by: rluckhurst.resmaster.com
251315 by: Jake McHenry
251317 by: Stut
My own "captcha" from 2 years ago......
251306 by: Jake McHenry
251308 by: itoctopus
251312 by: Jake McHenry
Re: newbie question about storing big5 codes into mysql-5.0.24a
251316 by: Man-wai Chang
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
■[NANA]さんからメッセージが1通届いています■
http://hame-taosi.org/free/as00101/faeataia01/
NANAだょん♪今わぁ大学の春休みなんで毎日お休みっす!
暇ばっかしてたら死んじゃうからぁ遊んでょぉ☆
年上の優しい人とドライブとかでかけたいな!
彼氏もいないからぁいっぱい遊んじゃおーよ♪
お返事待ってるしぃ☆
http://hame-taosi.org/free/as00101/faeataia01/
こちらもどうぞ
http://hame-taosi.org/free/as00101/jayauana01/
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Since about 7 hours now i can't get on the pecl.php.net pages. The site
doesn't seem to be available.
Does somebody know why?
Thanks,
Martin
--------------------------------------------------------------------------------
J'utilise la version gratuite de SPAMfighter pour utilisateurs privés.
42980 e-mails spam ont été bloqués jusqu'à maintenant.
Les utilisateurs payant n'ont pas ce message dans leurs e-mails.
Essayez SPAMfighter gratuitement maintenant!
--- End Message ---
--- Begin Message ---
martin wrote:
> Since about 7 hours now i can't get on the pecl.php.net pages. The site
> doesn't seem to be available.
>
> Does somebody know why?
Hi Martin,
The entire machine that runs pear.php.net and pecl.php.net was down for
a very long time. It has recently come back up online, you should be
able to use the website fully now.
Thanks,
Greg
--- End Message ---
--- Begin Message ---
thanks Greg, it's back running
Martin
"Gregory Beaver" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> martin wrote:
>> Since about 7 hours now i can't get on the pecl.php.net pages. The site
>> doesn't seem to be available.
>>
>> Does somebody know why?
>
> Hi Martin,
>
> The entire machine that runs pear.php.net and pecl.php.net was down for
> a very long time. It has recently come back up online, you should be
> able to use the website fully now.
>
> Thanks,
> Greg
--------------------------------------------------------------------------------
J'utilise la version gratuite de SPAMfighter pour utilisateurs privés.
42980 e-mails spam ont été bloqués jusqu'à maintenant.
Les utilisateurs payant n'ont pas ce message dans leurs e-mails.
Essayez SPAMfighter gratuitement maintenant!
--- End Message ---
--- Begin Message ---
Change it to the format strtotime needs? Not hard.... Or mktime(0, 0, 0,
date("m", $date), date("d", $date)+7, date("Y", $date)); for +7 days... Same
with + 14 days.... Strtotime is usefull, you can just put first day next
month and it just works... Lol... Then you could explode that back into
mktime, or just into a string..... There are many ways to do what your
asking :)
Jake
> -----Original Message-----
> From: Otto Wyss [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 24, 2007 4:37 PM
> To: [email protected]
> Subject: Re: [PHP] Computing and calculating dates
>
> Travis Doherty wrote:
> > Otto Wyss wrote:
> >> local_formated_date + 7; // days
> >> local_formated_date > local_formated_first_day_next_month;
> >> local_formated_date > (current_date + 14)
> >>
> >> etc. Which functions are best suited for such calculations?
> >>
> >> O. Wyss
> >>
> > www.php.net/strtotime is probably a good start.
> >
> Thanks, strtotime isn't able to parse a european formatted date
> (dd.mm.yyyy). How do I get the timestamp of such a date?
>
> O. Wyss
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
> Date: 3/23/2007 3:27 PM
>
>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007
3:27 PM
--- End Message ---
--- Begin Message ---
Hi All
I am having a bit of trouble with PHP arrays and would appreciate some help.
I currently have the following piece of code
$count=count($data->legs->leg);
$k=0;
while($k < $count)
{
$legrow[$k]=$data->legs->leg[$k]['legId'].$VM.$data->legs->leg[$k]['depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->legs->leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$VM.$data->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'].$VM.$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['miles'].$VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[$k]['meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->legs->leg[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
$k++;
}
This works fine extracting the leg attributes from the legs array and
putting the data into a new legrow array delimited by $VM.
I can do a print_r($legrow); and I get the rows displayed correctly. I can
also access any row by using $legrow[n] where n is the key number.
What I want to do is to find a way of indexing the array using the legId
as the key if possible. In other words I want to extract the row where the
legId has a particular value where I do not know the row key.
I have been thinking that this might be possible with an associative array
but my attempts to do this have not worked.
What I have tried is as follows
$count=count($data->legs->leg);
$k=0;
while($k < $count)
{
$legrow["$data->legs->leg[$k]['legId']"]=$data->legs->leg[$k]['depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->legs->leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$VM.$data->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'].$VM.$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['miles'].$VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[$k]['meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->legs->leg[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
$k++;
}
My thinking is that the $data->legs->leg[$k]['legId'] is the legId and I
might use that as a key. This however does not work.
I would appreciate some guidance on how I might get this to work.
Regards
Richard Luckhurst
--- End Message ---
--- Begin Message ---
$legrow["$data->legs->leg[$k]['legId']"]
?? See if that works...
Jake
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 24, 2007 11:27 PM
> To: [email protected]
> Subject: [PHP] Array Question
>
> Hi All
>
> I am having a bit of trouble with PHP arrays and would
> appreciate some help.
>
> I currently have the following piece of code
>
> $count=count($data->legs->leg);
> $k=0;
> while($k < $count)
> {
>
> $legrow[$k]=$data->legs->leg[$k]['legId'].$VM.$data->legs->leg
> [$k]['depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->
> legs->leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$V
> M.$data->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'
> ].$VM.$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['mil
> es'].$VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[
> $k]['meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->leg
> s->leg[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
>
> $k++;
> }
>
> This works fine extracting the leg attributes from the legs array and
> putting the data into a new legrow array delimited by $VM.
>
> I can do a print_r($legrow); and I get the rows displayed
> correctly. I can
> also access any row by using $legrow[n] where n is the key number.
>
> What I want to do is to find a way of indexing the array
> using the legId
> as the key if possible. In other words I want to extract the
> row where the
> legId has a particular value where I do not know the row key.
>
> I have been thinking that this might be possible with an
> associative array
> but my attempts to do this have not worked.
>
> What I have tried is as follows
>
> $count=count($data->legs->leg);
> $k=0;
> while($k < $count)
> {
>
> $legrow["$data->legs->leg[$k]['legId']"]=$data->legs->leg[$k][
> 'depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->legs-
> >leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$VM.$da
> ta->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'].$VM
> .$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['miles'].
> $VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[$k]['
> meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->legs->le
> g[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
>
> $k++;
> }
>
> My thinking is that the $data->legs->leg[$k]['legId'] is the
> legId and I
> might use that as a key. This however does not work.
>
> I would appreciate some guidance on how I might get this to work.
>
> Regards
>
> Richard Luckhurst
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
> Date: 3/23/2007 3:27 PM
>
>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007
3:27 PM
--- End Message ---
--- Begin Message ---
What if you put $temp = $data->legs->leg[$k]['legId'];
And then put that into $legrow[$temp];
Do you have anything in $temp?
Jake
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 24, 2007 11:27 PM
> To: [email protected]
> Subject: [PHP] Array Question
>
> Hi All
>
> I am having a bit of trouble with PHP arrays and would
> appreciate some help.
>
> I currently have the following piece of code
>
> $count=count($data->legs->leg);
> $k=0;
> while($k < $count)
> {
>
> $legrow[$k]=$data->legs->leg[$k]['legId'].$VM.$data->legs->leg
> [$k]['depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->
> legs->leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$V
> M.$data->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'
> ].$VM.$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['mil
> es'].$VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[
> $k]['meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->leg
> s->leg[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
>
> $k++;
> }
>
> This works fine extracting the leg attributes from the legs array and
> putting the data into a new legrow array delimited by $VM.
>
> I can do a print_r($legrow); and I get the rows displayed
> correctly. I can
> also access any row by using $legrow[n] where n is the key number.
>
> What I want to do is to find a way of indexing the array
> using the legId
> as the key if possible. In other words I want to extract the
> row where the
> legId has a particular value where I do not know the row key.
>
> I have been thinking that this might be possible with an
> associative array
> but my attempts to do this have not worked.
>
> What I have tried is as follows
>
> $count=count($data->legs->leg);
> $k=0;
> while($k < $count)
> {
>
> $legrow["$data->legs->leg[$k]['legId']"]=$data->legs->leg[$k][
> 'depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->legs-
> >leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$VM.$da
> ta->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'].$VM
> .$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['miles'].
> $VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[$k]['
> meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->legs->le
> g[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
>
> $k++;
> }
>
> My thinking is that the $data->legs->leg[$k]['legId'] is the
> legId and I
> might use that as a key. This however does not work.
>
> I would appreciate some guidance on how I might get this to work.
>
> Regards
>
> Richard Luckhurst
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
> Date: 3/23/2007 3:27 PM
>
>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007
3:27 PM
--- End Message ---
--- Begin Message ---
Hi Jake
Thanks for the answer.
That is what I had in my example that did not work.
I had tried that and then wondered how I might access that key.
I have tried $legrow["number"];
where number is a value I know to be one of the legId's. Is this correct?
Regards
Richard
> $legrow["$data->legs->leg[$k]['legId']"]
>
> ?? See if that works...
>
> Jake
>
>
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Saturday, March 24, 2007 11:27 PM
>> To: [email protected]
>> Subject: [PHP] Array Question
>>
>> Hi All
>>
>> I am having a bit of trouble with PHP arrays and would
>> appreciate some help.
>>
>> I currently have the following piece of code
>>
>> $count=count($data->legs->leg);
>> $k=0;
>> while($k < $count)
>> {
>>
>> $legrow[$k]=$data->legs->leg[$k]['legId'].$VM.$data->legs->leg
>> [$k]['depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->
>> legs->leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$V
>> M.$data->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'
>> ].$VM.$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['mil
>> es'].$VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[
>> $k]['meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->leg
>> s->leg[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
>>
>> $k++;
>> }
>>
>> This works fine extracting the leg attributes from the legs array and
>> putting the data into a new legrow array delimited by $VM.
>>
>> I can do a print_r($legrow); and I get the rows displayed
>> correctly. I can
>> also access any row by using $legrow[n] where n is the key number.
>>
>> What I want to do is to find a way of indexing the array
>> using the legId
>> as the key if possible. In other words I want to extract the
>> row where the
>> legId has a particular value where I do not know the row key.
>>
>> I have been thinking that this might be possible with an
>> associative array
>> but my attempts to do this have not worked.
>>
>> What I have tried is as follows
>>
>> $count=count($data->legs->leg);
>> $k=0;
>> while($k < $count)
>> {
>>
>> $legrow["$data->legs->leg[$k]['legId']"]=$data->legs->leg[$k][
>> 'depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->legs-
>> >leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$VM.$da
>> ta->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'].$VM
>> .$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['miles'].
>> $VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[$k]['
>> meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->legs->le
>> g[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
>>
>> $k++;
>> }
>>
>> My thinking is that the $data->legs->leg[$k]['legId'] is the
>> legId and I
>> might use that as a key. This however does not work.
>>
>> I would appreciate some guidance on how I might get this to work.
>>
>> Regards
>>
>> Richard Luckhurst
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>> --
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
>> Date: 3/23/2007 3:27 PM
>>
>>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007
> 3:27 PM
>
>
--- End Message ---
--- Begin Message ---
Hi Jake
I tried that and got the same result.
Regards
Richard
> What if you put $temp = $data->legs->leg[$k]['legId'];
> And then put that into $legrow[$temp];
>
> Do you have anything in $temp?
>
> Jake
>
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Saturday, March 24, 2007 11:27 PM
>> To: [email protected]
>> Subject: [PHP] Array Question
>>
>> Hi All
>>
>> I am having a bit of trouble with PHP arrays and would
>> appreciate some help.
>>
>> I currently have the following piece of code
>>
>> $count=count($data->legs->leg);
>> $k=0;
>> while($k < $count)
>> {
>>
>> $legrow[$k]=$data->legs->leg[$k]['legId'].$VM.$data->legs->leg
>> [$k]['depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->
>> legs->leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$V
>> M.$data->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'
>> ].$VM.$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['mil
>> es'].$VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[
>> $k]['meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->leg
>> s->leg[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
>>
>> $k++;
>> }
>>
>> This works fine extracting the leg attributes from the legs array and
>> putting the data into a new legrow array delimited by $VM.
>>
>> I can do a print_r($legrow); and I get the rows displayed
>> correctly. I can
>> also access any row by using $legrow[n] where n is the key number.
>>
>> What I want to do is to find a way of indexing the array
>> using the legId
>> as the key if possible. In other words I want to extract the
>> row where the
>> legId has a particular value where I do not know the row key.
>>
>> I have been thinking that this might be possible with an
>> associative array
>> but my attempts to do this have not worked.
>>
>> What I have tried is as follows
>>
>> $count=count($data->legs->leg);
>> $k=0;
>> while($k < $count)
>> {
>>
>> $legrow["$data->legs->leg[$k]['legId']"]=$data->legs->leg[$k][
>> 'depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->legs-
>> >leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$VM.$da
>> ta->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'].$VM
>> .$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['miles'].
>> $VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[$k]['
>> meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->legs->le
>> g[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
>>
>> $k++;
>> }
>>
>> My thinking is that the $data->legs->leg[$k]['legId'] is the
>> legId and I
>> might use that as a key. This however does not work.
>>
>> I would appreciate some guidance on how I might get this to work.
>>
>> Regards
>>
>> Richard Luckhurst
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>> --
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
>> Date: 3/23/2007 3:27 PM
>>
>>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007
> 3:27 PM
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
What is the result your getting?
Jake
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 24, 2007 11:57 PM
> To: Jake McHenry
> Cc: [email protected]
> Subject: RE: [PHP] Array Question
>
> Hi Jake
>
> I tried that and got the same result.
>
> Regards
>
> Richard
>
> > What if you put $temp = $data->legs->leg[$k]['legId'];
> > And then put that into $legrow[$temp];
> >
> > Do you have anything in $temp?
> >
> > Jake
> >
> >
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >> Sent: Saturday, March 24, 2007 11:27 PM
> >> To: [email protected]
> >> Subject: [PHP] Array Question
> >>
> >> Hi All
> >>
> >> I am having a bit of trouble with PHP arrays and would
> >> appreciate some help.
> >>
> >> I currently have the following piece of code
> >>
> >> $count=count($data->legs->leg);
> >> $k=0;
> >> while($k < $count)
> >> {
> >>
> >> $legrow[$k]=$data->legs->leg[$k]['legId'].$VM.$data->legs->leg
> >> [$k]['depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->
> >> legs->leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$V
> >> M.$data->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'
> >> ].$VM.$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['mil
> >> es'].$VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[
> >> $k]['meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->leg
> >> s->leg[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
> >>
> >> $k++;
> >> }
> >>
> >> This works fine extracting the leg attributes from the
> legs array and
> >> putting the data into a new legrow array delimited by $VM.
> >>
> >> I can do a print_r($legrow); and I get the rows displayed
> >> correctly. I can
> >> also access any row by using $legrow[n] where n is the key number.
> >>
> >> What I want to do is to find a way of indexing the array
> >> using the legId
> >> as the key if possible. In other words I want to extract the
> >> row where the
> >> legId has a particular value where I do not know the row key.
> >>
> >> I have been thinking that this might be possible with an
> >> associative array
> >> but my attempts to do this have not worked.
> >>
> >> What I have tried is as follows
> >>
> >> $count=count($data->legs->leg);
> >> $k=0;
> >> while($k < $count)
> >> {
> >>
> >> $legrow["$data->legs->leg[$k]['legId']"]=$data->legs->leg[$k][
> >> 'depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->legs-
> >> >leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$VM.$da
> >> ta->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'].$VM
> >> .$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['miles'].
> >> $VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[$k]['
> >> meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->legs->le
> >> g[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
> >>
> >> $k++;
> >> }
> >>
> >> My thinking is that the $data->legs->leg[$k]['legId'] is the
> >> legId and I
> >> might use that as a key. This however does not work.
> >>
> >> I would appreciate some guidance on how I might get this to work.
> >>
> >> Regards
> >>
> >> Richard Luckhurst
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >> --
> >> No virus found in this incoming message.
> >> Checked by AVG Free Edition.
> >> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
> >> Date: 3/23/2007 3:27 PM
> >>
> >>
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
> Date: 3/23/2007
> > 3:27 PM
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
> Date: 3/23/2007 3:27 PM
>
>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007
3:27 PM
--- End Message ---
--- Begin Message ---
Hi Jake
I am getting nothing at all.
Regards
Richard
> What is the result your getting?
>
> Jake
>
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Saturday, March 24, 2007 11:57 PM
>> To: Jake McHenry
>> Cc: [email protected]
>> Subject: RE: [PHP] Array Question
>>
>> Hi Jake
>>
>> I tried that and got the same result.
>>
>> Regards
>>
>> Richard
>>
>> > What if you put $temp = $data->legs->leg[$k]['legId'];
>> > And then put that into $legrow[$temp];
>> >
>> > Do you have anything in $temp?
>> >
>> > Jake
>> >
>> >
>> >> -----Original Message-----
>> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> >> Sent: Saturday, March 24, 2007 11:27 PM
>> >> To: [email protected]
>> >> Subject: [PHP] Array Question
>> >>
>> >> Hi All
>> >>
>> >> I am having a bit of trouble with PHP arrays and would
>> >> appreciate some help.
>> >>
>> >> I currently have the following piece of code
>> >>
>> >> $count=count($data->legs->leg);
>> >> $k=0;
>> >> while($k < $count)
>> >> {
>> >>
>> >> $legrow[$k]=$data->legs->leg[$k]['legId'].$VM.$data->legs->leg
>> >> [$k]['depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->
>> >> legs->leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$V
>> >> M.$data->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'
>> >> ].$VM.$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['mil
>> >> es'].$VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[
>> >> $k]['meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->leg
>> >> s->leg[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
>> >>
>> >> $k++;
>> >> }
>> >>
>> >> This works fine extracting the leg attributes from the
>> legs array and
>> >> putting the data into a new legrow array delimited by $VM.
>> >>
>> >> I can do a print_r($legrow); and I get the rows displayed
>> >> correctly. I can
>> >> also access any row by using $legrow[n] where n is the key number.
>> >>
>> >> What I want to do is to find a way of indexing the array
>> >> using the legId
>> >> as the key if possible. In other words I want to extract the
>> >> row where the
>> >> legId has a particular value where I do not know the row key.
>> >>
>> >> I have been thinking that this might be possible with an
>> >> associative array
>> >> but my attempts to do this have not worked.
>> >>
>> >> What I have tried is as follows
>> >>
>> >> $count=count($data->legs->leg);
>> >> $k=0;
>> >> while($k < $count)
>> >> {
>> >>
>> >> $legrow["$data->legs->leg[$k]['legId']"]=$data->legs->leg[$k][
>> >> 'depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->legs-
>> >> >leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$VM.$da
>> >> ta->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'].$VM
>> >> .$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['miles'].
>> >> $VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[$k]['
>> >> meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->legs->le
>> >> g[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
>> >>
>> >> $k++;
>> >> }
>> >>
>> >> My thinking is that the $data->legs->leg[$k]['legId'] is the
>> >> legId and I
>> >> might use that as a key. This however does not work.
>> >>
>> >> I would appreciate some guidance on how I might get this to work.
>> >>
>> >> Regards
>> >>
>> >> Richard Luckhurst
>> >>
>> >> --
>> >> PHP General Mailing List (http://www.php.net/)
>> >> To unsubscribe, visit: http://www.php.net/unsub.php
>> >>
>> >> --
>> >> No virus found in this incoming message.
>> >> Checked by AVG Free Edition.
>> >> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
>> >> Date: 3/23/2007 3:27 PM
>> >>
>> >>
>> >
>> > --
>> > No virus found in this outgoing message.
>> > Checked by AVG Free Edition.
>> > Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
>> Date: 3/23/2007
>> > 3:27 PM
>> >
>> >
>> > --
>> > PHP General Mailing List (http://www.php.net/)
>> > To unsubscribe, visit: http://www.php.net/unsub.php
>> >
>>
>> --
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
>> Date: 3/23/2007 3:27 PM
>>
>>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007
> 3:27 PM
>
>
--- End Message ---
--- Begin Message ---
Like I said.. I'm half crocked... So I'm trying my best here... Give me some
time...
>> > What if you put $temp = $data->legs->leg[$k]['legId'];
Does $temp have anything in it?
Jake
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Sunday, March 25, 2007 12:09 AM
> To: Jake McHenry
> Cc: [email protected]
> Subject: RE: [PHP] Array Question
>
> Hi Jake
>
> I am getting nothing at all.
>
> Regards
>
> Richard
>
> > What is the result your getting?
> >
> > Jake
> >
> >
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >> Sent: Saturday, March 24, 2007 11:57 PM
> >> To: Jake McHenry
> >> Cc: [email protected]
> >> Subject: RE: [PHP] Array Question
> >>
> >> Hi Jake
> >>
> >> I tried that and got the same result.
> >>
> >> Regards
> >>
> >> Richard
> >>
> >> > What if you put $temp = $data->legs->leg[$k]['legId'];
> >> > And then put that into $legrow[$temp];
> >> >
> >> > Do you have anything in $temp?
> >> >
> >> > Jake
> >> >
> >> >
> >> >> -----Original Message-----
> >> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >> >> Sent: Saturday, March 24, 2007 11:27 PM
> >> >> To: [email protected]
> >> >> Subject: [PHP] Array Question
> >> >>
> >> >> Hi All
> >> >>
> >> >> I am having a bit of trouble with PHP arrays and would
> >> >> appreciate some help.
> >> >>
> >> >> I currently have the following piece of code
> >> >>
> >> >> $count=count($data->legs->leg);
> >> >> $k=0;
> >> >> while($k < $count)
> >> >> {
> >> >>
> >> >> $legrow[$k]=$data->legs->leg[$k]['legId'].$VM.$data->legs->leg
> >> >> [$k]['depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->
> >> >> legs->leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$V
> >> >> M.$data->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'
> >> >> ].$VM.$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['mil
> >> >> es'].$VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[
> >> >> $k]['meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->leg
> >> >> s->leg[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
> >> >>
> >> >> $k++;
> >> >> }
> >> >>
> >> >> This works fine extracting the leg attributes from the
> >> legs array and
> >> >> putting the data into a new legrow array delimited by $VM.
> >> >>
> >> >> I can do a print_r($legrow); and I get the rows displayed
> >> >> correctly. I can
> >> >> also access any row by using $legrow[n] where n is the
> key number.
> >> >>
> >> >> What I want to do is to find a way of indexing the array
> >> >> using the legId
> >> >> as the key if possible. In other words I want to extract the
> >> >> row where the
> >> >> legId has a particular value where I do not know the row key.
> >> >>
> >> >> I have been thinking that this might be possible with an
> >> >> associative array
> >> >> but my attempts to do this have not worked.
> >> >>
> >> >> What I have tried is as follows
> >> >>
> >> >> $count=count($data->legs->leg);
> >> >> $k=0;
> >> >> while($k < $count)
> >> >> {
> >> >>
> >> >> $legrow["$data->legs->leg[$k]['legId']"]=$data->legs->leg[$k][
> >> >> 'depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->legs-
> >> >> >leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$VM.$da
> >> >> ta->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'].$VM
> >> >> .$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['miles'].
> >> >> $VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[$k]['
> >> >> meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->legs->le
> >> >> g[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
> >> >>
> >> >> $k++;
> >> >> }
> >> >>
> >> >> My thinking is that the $data->legs->leg[$k]['legId'] is the
> >> >> legId and I
> >> >> might use that as a key. This however does not work.
> >> >>
> >> >> I would appreciate some guidance on how I might get
> this to work.
> >> >>
> >> >> Regards
> >> >>
> >> >> Richard Luckhurst
> >> >>
> >> >> --
> >> >> PHP General Mailing List (http://www.php.net/)
> >> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >> >>
> >> >> --
> >> >> No virus found in this incoming message.
> >> >> Checked by AVG Free Edition.
> >> >> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
> >> >> Date: 3/23/2007 3:27 PM
> >> >>
> >> >>
> >> >
> >> > --
> >> > No virus found in this outgoing message.
> >> > Checked by AVG Free Edition.
> >> > Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
> >> Date: 3/23/2007
> >> > 3:27 PM
> >> >
> >> >
> >> > --
> >> > PHP General Mailing List (http://www.php.net/)
> >> > To unsubscribe, visit: http://www.php.net/unsub.php
> >> >
> >>
> >> --
> >> No virus found in this incoming message.
> >> Checked by AVG Free Edition.
> >> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
> >> Date: 3/23/2007 3:27 PM
> >>
> >>
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
> Date: 3/23/2007
> > 3:27 PM
> >
> >
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
> Date: 3/23/2007 3:27 PM
>
>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007
3:27 PM
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
$count=count($data->legs->leg);
$k=0;
while($k < $count)
{
$legrow["$data->legs->leg[$k]['legId']"]=$data->legs->leg[$k]['depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->legs->leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$VM.$data->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'].$VM.$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['miles'].$VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[$k]['meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->legs->leg[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
Drop the quotes in the key...
$legrow[$data->legs->leg[$k]['legId']]=$data->legs->leg[$k]['depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->legs->leg[$k]['dstApt'].$VM.$data->legs->leg[$k]['arrTime'].$VM.$data->legs->leg[$k]['equip'].$VM.$data->legs->leg[$k]['fNo'].$VM.$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['miles'].$VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[$k]['meals'].$VM.$data->legs->leg[$k]['smoker'].$VM.$data->legs->leg[$k]['stops'].$VM.$data->legs->leg[$k]['eticket'];
$k++;
}
My thinking is that the $data->legs->leg[$k]['legId'] is the legId and I
might use that as a key. This however does not work.
It will work if they are all unique. If you have any duplicates they
will overwrite previous assignments.
-Stut
--- End Message ---
--- Begin Message ---
Well, I've been creating my own... Since like two years ago... Lol.. But
this is the KNOWN name now..... Anyways... How can I get the info from the
image creation script back to my main script? Sessions DO NOT WORK! They
give me the previous entry instead of the current.. Which obviously won't
work... This was on the back burner for a long time, but my boss said .....
Oh wow.. That looks cool... And I told him I had started it a long time
ago.. But never finished it cause he told me to work on something else...
Anyways... U can see what I mean.... http://nittanytravel.com:8080/
The numbers surrounding the images displayed are session values created in
the image scripts...which as you will see are the previous value.... It may
be a simple fix.. But once again... I'm tired... And had one too many long
island iced teas tonight to think about this..... And yes... My boss works
me even on saturdays after happy hour :(
Thanks,
Jake
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007
3:27 PM
--- End Message ---
--- Begin Message ---
Hey Jake,
I checked the thing, and I tell you I did lots and lots of captchas in my
life and they mainly rely on the session.
Is it possible for you to post the script so that me (or anyone else for
that matter) fix it for you?
Take care,
--
itoctopus - http://www.itoctopus.com
""Jake McHenry"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Well, I've been creating my own... Since like two years ago... Lol.. But
> this is the KNOWN name now..... Anyways... How can I get the info from the
> image creation script back to my main script? Sessions DO NOT WORK! They
> give me the previous entry instead of the current.. Which obviously won't
> work... This was on the back burner for a long time, but my boss said
.....
> Oh wow.. That looks cool... And I told him I had started it a long time
> ago.. But never finished it cause he told me to work on something else...
> Anyways... U can see what I mean.... http://nittanytravel.com:8080/
>
> The numbers surrounding the images displayed are session values created in
> the image scripts...which as you will see are the previous value.... It
may
> be a simple fix.. But once again... I'm tired... And had one too many long
> island iced teas tonight to think about this..... And yes... My boss works
> me even on saturdays after happy hour :(
>
>
> Thanks,
> Jake
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007
> 3:27 PM
>
--- End Message ---
--- Begin Message ---
.... Sorry.. Was playing around with dates and how long I've been sitting
here watching this generate random numbers..... Lol .. The only lines
referring to the "captcha" are the img lines... As you can tell... Calling
the next script... Should I do it this way? I'm pretty sure that is the
problem, cause the session variable is being created and set in that second
script which is called.... Session[security_code] is created in rnum1.php,
and session[code] is created in rnum2.php... Which I didn't include here...
But is the same concept only bigger.....
Index.php
<?php
session_start();
header("Refresh: 1");
$before = $_SESSION['security_code'];
echo "<img src='rnum1.php'>";
$after = $_SESSION['security_code'];
if (!isset($_SESSION['start_time']))
{
$_SESSION['start_time'] = time();
}
else
{
$_SESSION['current_time'] = time();
}
$running_time = mktime(date("H", $_SESSION['current_time'])-date("H",
$_SESSION['start_time']), date("i", $_SESSION['current_time'])-date("i",
$_SESSION['start_time']), date("s", $_SESSION['current_time'])-date("s",
$_SESSION['start_time']), date("m", $_SESSION['start_time']), date("d",
$_SESSION['start_time']), date("Y", $_SESSION['start_time']));
echo '<br>Before: ' . $before . '<br>After: ' . $after . '<br>Time: ' .
date("H:i:s m-d-Y", $running_time) . '<br><img src=rnum2.php><br>' .
$_SESSION['code'];
?>
Rnum1.php
<?php
session_start();
header("Content-type: image/png");
$_SESSION['security_code'] = $code = rand(1000,9999);
//width, height
$im = @ImageCreate(40, 20) or die("There is an error Jake");
// R, G, B
$background_color = ImageColorAllocate($im, 255, 255, 255);
//R, G, B
$text_color = ImageColorAllocate($im, 0, 0, 0);
//font size, left margin, top margin
ImageString($im, 10, 3, 3, $code, $text_color);
//display image
ImagePNG($im);
?>
> -----Original Message-----
> From: itoctopus [mailto:[EMAIL PROTECTED]
> Sent: Sunday, March 25, 2007 12:49 AM
> To: [email protected]
> Subject: [PHP] Re: My own "captcha" from 2 years ago......
>
> Hey Jake,
> I checked the thing, and I tell you I did lots and lots of
> captchas in my
> life and they mainly rely on the session.
> Is it possible for you to post the script so that me (or
> anyone else for
> that matter) fix it for you?
>
> Take care,
>
> --
> itoctopus - http://www.itoctopus.com
> ""Jake McHenry"" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Well, I've been creating my own... Since like two years
> ago... Lol.. But
> > this is the KNOWN name now..... Anyways... How can I get
> the info from the
> > image creation script back to my main script? Sessions DO
> NOT WORK! They
> > give me the previous entry instead of the current.. Which
> obviously won't
> > work... This was on the back burner for a long time, but my
> boss said
> .....
> > Oh wow.. That looks cool... And I told him I had started it
> a long time
> > ago.. But never finished it cause he told me to work on
> something else...
> > Anyways... U can see what I mean.... http://nittanytravel.com:8080/
> >
> > The numbers surrounding the images displayed are session
> values created in
> > the image scripts...which as you will see are the previous
> value.... It
> may
> > be a simple fix.. But once again... I'm tired... And had
> one too many long
> > island iced teas tonight to think about this..... And
> yes... My boss works
> > me even on saturdays after happy hour :(
> >
> >
> > Thanks,
> > Jake
> >
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
> Date: 3/23/2007
> > 3:27 PM
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release
> Date: 3/23/2007 3:27 PM
>
>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007
3:27 PM
--- End Message ---
--- Begin Message ---
>> create table temp ( big5 char(2) ) character set big5 collate big5_bin;
>> insert into temp ( big5 ) values ( 0x9f54 );
>> insert into temp ( big5 ) values ( 0x9f53 );
>> The 2nd query will report duplicated key. How should I fix the problem?
> What does this has to do with PHP?
> First of all I don't see any PHP code, and second this is an error in
> your SQL query, so you should be on the MySQL list.
I used mysqli_query() to send the SQL. How could I make it work?
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.20.4
^ ^ 14:43:01 up 1 day 1:55 0 users load average: 1.01 1.02 1.00
news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk
--- End Message ---