You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(9) |
May
(28) |
Jun
(54) |
Jul
(68) |
Aug
(34) |
Sep
(20) |
Oct
(62) |
Nov
(58) |
Dec
(77) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(91) |
Feb
(101) |
Mar
(73) |
Apr
(107) |
May
(56) |
Jun
(43) |
Jul
(68) |
Aug
(31) |
Sep
(35) |
Oct
(50) |
Nov
(20) |
Dec
(37) |
2004 |
Jan
(17) |
Feb
(3) |
Mar
(2) |
Apr
(7) |
May
(3) |
Jun
(11) |
Jul
(8) |
Aug
(22) |
Sep
(10) |
Oct
(9) |
Nov
(17) |
Dec
(6) |
2005 |
Jan
(14) |
Feb
(11) |
Mar
(6) |
Apr
(30) |
May
(17) |
Jun
(57) |
Jul
(18) |
Aug
(18) |
Sep
(32) |
Oct
(49) |
Nov
(19) |
Dec
(40) |
2006 |
Jan
(48) |
Feb
(68) |
Mar
(74) |
Apr
(92) |
May
(90) |
Jun
(60) |
Jul
(25) |
Aug
(47) |
Sep
(36) |
Oct
(64) |
Nov
(57) |
Dec
(21) |
2007 |
Jan
(74) |
Feb
(24) |
Mar
(49) |
Apr
(37) |
May
(56) |
Jun
(27) |
Jul
(23) |
Aug
(24) |
Sep
(24) |
Oct
(58) |
Nov
(13) |
Dec
(9) |
2008 |
Jan
(41) |
Feb
(16) |
Mar
(53) |
Apr
(19) |
May
(53) |
Jun
(20) |
Jul
(44) |
Aug
(12) |
Sep
(19) |
Oct
(22) |
Nov
(64) |
Dec
(14) |
2009 |
Jan
(16) |
Feb
(37) |
Mar
(30) |
Apr
(24) |
May
(3) |
Jun
(14) |
Jul
(39) |
Aug
(30) |
Sep
(38) |
Oct
(10) |
Nov
(9) |
Dec
(30) |
2010 |
Jan
(27) |
Feb
(9) |
Mar
(8) |
Apr
(38) |
May
(17) |
Jun
(2) |
Jul
(15) |
Aug
(3) |
Sep
(9) |
Oct
(3) |
Nov
(14) |
Dec
(6) |
2011 |
Jan
(1) |
Feb
(14) |
Mar
(18) |
Apr
(7) |
May
(3) |
Jun
(5) |
Jul
(3) |
Aug
|
Sep
(3) |
Oct
(3) |
Nov
(3) |
Dec
(2) |
2012 |
Jan
(2) |
Feb
(2) |
Mar
(1) |
Apr
|
May
(2) |
Jun
(1) |
Jul
(2) |
Aug
(2) |
Sep
(1) |
Oct
(4) |
Nov
(5) |
Dec
|
2013 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Adam L. <apl...@gm...> - 2008-11-19 16:25:00
|
I see that the From: is this -- in...@vp... But the message-id is this -- dad...@fr... Is Yahoo! pretty anal about a message from a particular domain trying to appear as if from a different domain? I don't have experience with their particular filter. Adam -----Original Message----- From: Wilfried Schobeiri [mailto:ws...@de...] Sent: Wednesday, November 19, 2008 9:35 AM To: Discussions of PHP-related topics among members of the Chicago PHP User's Group. Subject: Re: [chiPHPug-discuss] PHP Mailer/Yahoo Problems Domenic, look into Domain Keys and DKIM. Best bet for solving this, I've found, is to make sure your outbound messages get signed by a milter or such (if you're using sendmail). Good luck, this can be a huge PITA depending on your MTA. >> Authentication-Results: mta100.mail.ac4.yahoo.com >> from=vps.homesalerelief.com; domainkeys=neutral (no sig) Wilfried On Nov 19, 2008, at 09:30 , Domenic Roti wrote: > Hey everyone, I've got a problem thats been driving me crazy and was > wondering if anyone else might have experienced this in the past. > I'm on a clients server and am trying to send out a confirmation > email after registering for the site. The problem I have is that > Yahoo always blocks it, not just sends it to the SPAM folder but > completely blocks it. > > I have a GMAIL account that also forwards to my yahoo account, and > my GMAIL account receives the emails just fine. I first started by > using the mail function, but when I did that the forwarded email > wouldn't even go though to my yahoo account. > > So I switched to phpmailer and well it still doesn't go to my yahoo > account - GMAIL atleast forwards it. My code looks like this: > > > date_default_timezone_set('America/Chicago'); > //date_default_timezone_set(date_default_timezone_get()); > > include_once('class.phpmailer.php'); > > $mail = new PHPMailer(); > $body = $mail->getFile('/home/freeandc/public_html/ > ConfirmationEmail.html'); > $body = eregi_replace("[\]",'',$body); > > $mail->IsSendmail(); // telling the class to use SendMail transport > > $mail->From = "in...@vp..."; > $mail->FromName = "Mortgage Relief Formula"; > > $mail->Subject = $subject; > > $mail->AltBody = "To view the message, please use an HTML > compatible email viewer!"; // optional, comment out and test > > $mail->MsgHTML($body); > > $mail->AddAddress("Dom...@gm...", "Domenic Roti"); > > if(!$mail->Send()) { > echo "Mailer Error: " . $mail->ErrorInfo; > } else { > echo "Message sent!"; > } > > > Here are the headers that I get from the forwarded email: > > <domenic.roti+caf_=rodstir656=yah...@gm...> > Authentication-Results: mta100.mail.ac4.yahoo.com > from=vps.homesalerelief.com; domainkeys=neutral (no sig) > Received: from 72.14.220.158 (EHLO fg-out-1718.google.com) > (72.14.220.158) by mta100.mail.ac4.yahoo.com with SMTP; Wed, 19 Nov > 2008 07:20:57 -0800 > Received: by fg-out-1718.google.com with SMTP id l27so15628fgb.33 > for <rod...@ya...>; Wed, 19 Nov 2008 07:20:56 -0800 (PST) > Received: by 10.187.239.18 with SMTP id q18mr219346far. > 16.1227108056694; Wed, 19 Nov 2008 07:20:56 -0800 (PST) > Delivered-To: dom...@gm... > Received: by 10.187.208.5 with SMTP id k5cs253157faq; Wed, 19 Nov > 2008 07:20:55 -0800 (PST) > Received: by 10.64.180.15 with SMTP id c15mr1167647qbf. > 80.1227108054218; Wed, 19 Nov 2008 07:20:54 -0800 (PST) > Return-Path: <no...@vp...> > Received: from vps.homesalerelief.com (vps.homesalerelief.com > [69.4.237.250]) by mx.google.com with ESMTP id k29si11055191qba. > 7.2008.11.19.07.20.53; Wed, 19 Nov 2008 07:20:54 -0800 (PST) > Received-SPF: pass (google.com: best guess record for domain of no...@vp... > designates 69.4.237.250 as permitted sender) client-ip=69.4.237.250; > Authentication-Results: mx.google.com; spf=pass (google.com: best > guess record for domain of no...@vp... designates > 69.4.237.250 as permitted sender) smtp.mail=no...@vp... > Received: from nobody by vps.homesalerelief.com with local (Exim > 4.69) (envelope-from <no...@vp...>) id > 1L2orN-0000Wa-IM for Dom...@gm...; Wed, 19 Nov 2008 > 09:20:53 -0600 > Date: Wed, 19 Nov 2008 09:20:53 -0600 > To: Domenic Roti <Dom...@gm...> > From: > Mortgage Relief Formula <in...@vp...> > Add sender to Contacts > Subject: > Message-ID: <dad...@fr...> > MIME-Version: 1.0 > Content-Type: multipart/alternative; > boundary="b1_dadbd41ef9512a26b9627d6fe560e8f2" > Content-Length: 384 > > > > Does anyone have any idea what might be causing this? > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Wilfried S. <ws...@de...> - 2008-11-19 15:59:47
|
Domenic, look into Domain Keys and DKIM. Best bet for solving this, I've found, is to make sure your outbound messages get signed by a milter or such (if you're using sendmail). Good luck, this can be a huge PITA depending on your MTA. >> Authentication-Results: mta100.mail.ac4.yahoo.com >> from=vps.homesalerelief.com; domainkeys=neutral (no sig) Wilfried On Nov 19, 2008, at 09:30 , Domenic Roti wrote: > Hey everyone, I've got a problem thats been driving me crazy and was > wondering if anyone else might have experienced this in the past. > I'm on a clients server and am trying to send out a confirmation > email after registering for the site. The problem I have is that > Yahoo always blocks it, not just sends it to the SPAM folder but > completely blocks it. > > I have a GMAIL account that also forwards to my yahoo account, and > my GMAIL account receives the emails just fine. I first started by > using the mail function, but when I did that the forwarded email > wouldn't even go though to my yahoo account. > > So I switched to phpmailer and well it still doesn't go to my yahoo > account - GMAIL atleast forwards it. My code looks like this: > > > date_default_timezone_set('America/Chicago'); > //date_default_timezone_set(date_default_timezone_get()); > > include_once('class.phpmailer.php'); > > $mail = new PHPMailer(); > $body = $mail->getFile('/home/freeandc/public_html/ > ConfirmationEmail.html'); > $body = eregi_replace("[\]",'',$body); > > $mail->IsSendmail(); // telling the class to use SendMail transport > > $mail->From = "in...@vp..."; > $mail->FromName = "Mortgage Relief Formula"; > > $mail->Subject = $subject; > > $mail->AltBody = "To view the message, please use an HTML > compatible email viewer!"; // optional, comment out and test > > $mail->MsgHTML($body); > > $mail->AddAddress("Dom...@gm...", "Domenic Roti"); > > if(!$mail->Send()) { > echo "Mailer Error: " . $mail->ErrorInfo; > } else { > echo "Message sent!"; > } > > > Here are the headers that I get from the forwarded email: > > <domenic.roti+caf_=rodstir656=yah...@gm...> > Authentication-Results: mta100.mail.ac4.yahoo.com > from=vps.homesalerelief.com; domainkeys=neutral (no sig) > Received: from 72.14.220.158 (EHLO fg-out-1718.google.com) > (72.14.220.158) by mta100.mail.ac4.yahoo.com with SMTP; Wed, 19 Nov > 2008 07:20:57 -0800 > Received: by fg-out-1718.google.com with SMTP id l27so15628fgb.33 > for <rod...@ya...>; Wed, 19 Nov 2008 07:20:56 -0800 (PST) > Received: by 10.187.239.18 with SMTP id q18mr219346far. > 16.1227108056694; Wed, 19 Nov 2008 07:20:56 -0800 (PST) > Delivered-To: dom...@gm... > Received: by 10.187.208.5 with SMTP id k5cs253157faq; Wed, 19 Nov > 2008 07:20:55 -0800 (PST) > Received: by 10.64.180.15 with SMTP id c15mr1167647qbf. > 80.1227108054218; Wed, 19 Nov 2008 07:20:54 -0800 (PST) > Return-Path: <no...@vp...> > Received: from vps.homesalerelief.com (vps.homesalerelief.com > [69.4.237.250]) by mx.google.com with ESMTP id k29si11055191qba. > 7.2008.11.19.07.20.53; Wed, 19 Nov 2008 07:20:54 -0800 (PST) > Received-SPF: pass (google.com: best guess record for domain of no...@vp... > designates 69.4.237.250 as permitted sender) client-ip=69.4.237.250; > Authentication-Results: mx.google.com; spf=pass (google.com: best > guess record for domain of no...@vp... designates > 69.4.237.250 as permitted sender) smtp.mail=no...@vp... > Received: from nobody by vps.homesalerelief.com with local (Exim > 4.69) (envelope-from <no...@vp...>) id > 1L2orN-0000Wa-IM for Dom...@gm...; Wed, 19 Nov 2008 > 09:20:53 -0600 > Date: Wed, 19 Nov 2008 09:20:53 -0600 > To: Domenic Roti <Dom...@gm...> > From: > Mortgage Relief Formula <in...@vp...> > Add sender to Contacts > Subject: > Message-ID: <dad...@fr...> > MIME-Version: 1.0 > Content-Type: multipart/alternative; > boundary="b1_dadbd41ef9512a26b9627d6fe560e8f2" > Content-Length: 384 > > > > Does anyone have any idea what might be causing this? > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Domenic R. <rod...@ya...> - 2008-11-19 15:30:06
|
Hey everyone, I've got a problem thats been driving me crazy and was wondering if anyone else might have experienced this in the past. I'm on a clients server and am trying to send out a confirmation email after registering for the site. The problem I have is that Yahoo always blocks it, not just sends it to the SPAM folder but completely blocks it. I have a GMAIL account that also forwards to my yahoo account, and my GMAIL account receives the emails just fine. I first started by using the mail function, but when I did that the forwarded email wouldn't even go though to my yahoo account. So I switched to phpmailer and well it still doesn't go to my yahoo account - GMAIL atleast forwards it. My code looks like this: date_default_timezone_set('America/Chicago'); //date_default_timezone_set(date_default_timezone_get()); include_once('class.phpmailer.php'); $mail = new PHPMailer(); $body = $mail->getFile('/home/freeandc/public_html/ConfirmationEmail.html'); $body = eregi_replace("[\]",'',$body); $mail->IsSendmail(); // telling the class to use SendMail transport $mail->From = "in...@vp..."; $mail->FromName = "Mortgage Relief Formula"; $mail->Subject = $subject; $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test $mail->MsgHTML($body); $mail->AddAddress("Dom...@gm...", "Domenic Roti"); if(!$mail->Send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "Message sent!"; } Here are the headers that I get from the forwarded email: <domenic.roti+caf_=rodstir656=yah...@gm...> Authentication-Results: mta100.mail.ac4.yahoo.com from=vps.homesalerelief.com; domainkeys=neutral (no sig) Received: from 72.14.220.158 (EHLO fg-out-1718.google.com) (72.14.220.158) by mta100.mail.ac4.yahoo.com with SMTP; Wed, 19 Nov 2008 07:20:57 -0800 Received: by fg-out-1718.google.com with SMTP id l27so15628fgb.33 for <rod...@ya...>; Wed, 19 Nov 2008 07:20:56 -0800 (PST) Received: by 10.187.239.18 with SMTP id q18mr219346far.16.1227108056694; Wed, 19 Nov 2008 07:20:56 -0800 (PST) Delivered-To: dom...@gm... Received: by 10.187.208.5 with SMTP id k5cs253157faq; Wed, 19 Nov 2008 07:20:55 -0800 (PST) Received: by 10.64.180.15 with SMTP id c15mr1167647qbf.80.1227108054218; Wed, 19 Nov 2008 07:20:54 -0800 (PST) Return-Path: <no...@vp...> Received: from vps.homesalerelief.com (vps.homesalerelief.com [69.4.237.250]) by mx.google.com with ESMTP id k29si11055191qba.7.2008.11.19.07.20.53; Wed, 19 Nov 2008 07:20:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of no...@vp... designates 69.4.237.250 as permitted sender) client-ip=69.4.237.250; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of no...@vp... designates 69.4.237.250 as permitted sender) smtp.mail=no...@vp... Received: from nobody by vps.homesalerelief.com with local (Exim 4.69) (envelope-from <no...@vp...>) id 1L2orN-0000Wa-IM for Dom...@gm...; Wed, 19 Nov 2008 09:20:53 -0600 Date: Wed, 19 Nov 2008 09:20:53 -0600 To: Domenic Roti <Dom...@gm...> From: Mortgage Relief Formula <in...@vp...> Add sender to Contacts Subject: Message-ID: <dad...@fr...> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_dadbd41ef9512a26b9627d6fe560e8f2" Content-Length: 384 Does anyone have any idea what might be causing this? |
From: Jason R. <ja...@ho...> - 2008-11-19 14:51:47
|
Trying again as last seems to have gotten stuck in queue.. ---------------------------------------------------------- PHP UserGroup meeting tonight is at 6pm at the Threadless (Skinny Corp) office: 4043 N Ravenswood ave, Chicago IL http://tinyurl.com/5tq6re (google map) 7 blocks south of Ravenswood Metra stop (Union Pacific North line): http://metrarail.com/Sched/cnw_n/cnwn.shtml I'll be giving two small talks, Harper or someone from Skinny corp will also give a talk also I believe. Beer and pizza as per normal.. Call me if there are any questions/problems 847.208.1000 Not sure if receptionist will still be there to buzz people in door so that may be one reason.. -jason |
From: Jason R. <ja...@ho...> - 2008-11-19 14:42:37
|
PHP UserGroup meeting tonight is at 6pm at the Threadless (Skinny Corp) office: 4043 N Ravenswood ave, Chicago IL http://tinyurl.com/5tq6re (google map) 7 blocks south of Ravenswood Metra stop (Union Pacific North line): http://metrarail.com/Sched/cnw_n/cnwn.shtml I'll be giving two small talks, Harper or someone from Skinny corp will also give a talk also I believe. Beer and pizza as per normal.. Call me if there are any questions/problems 847.208.1000 Not sure if receptionist will still be there to buzz people in door so that may be one reason.. -jason |
From: Arlo L. <ar...@ar...> - 2008-11-19 14:13:06
|
Hi Pete, > I'm having a problem creating an app for a client who will need to > upload very large files, around 1GB. I'm running into problems though > with the upload. In an effort to rule out problems, I've boosted all > the normal suspects to absurd levels (see below), If you look at phpinfo(), can you confirm that all of those configuration changes have taken effect? That's the only thing I can think of... -Arlo _______________________________ Arlo Leach 773.769.6106 http://arlomedia.com Find. Be Found. http://www.newwhitepages.com |
From: Jason R. <ja...@ho...> - 2008-11-19 14:12:32
|
A couple of feedback items from the google (off the top of my head I cant see anything obvious): 1) are you running newer PHP5? from manual: "G (for Gigabytes; available since PHP 5.1.0)" 2) IIS has som limits if you are on Windows (why, oh why): IIS7 has a upload limit of 30000000 (about 30mb) You can change this with the command (for 250mb): c:\windows\system32\inetsrv\appcmd set config -section:requestFiltering -requestLimits.maxAllowedContentLength:262144000 Or manual define it in: %windir%\system32\inetsrv\config\applicationhost.config Add this rule before the </requestFiltering> tag: <requestLimits maxAllowedContentLength ="262144000" /> 3) There has been reference to session.gc_maxlifetime default value 1440 (24min) causing GC to wack session duriung upload and cause problems. Not sure on that one.. 4) Also reported issues of MAX_FILE_SIZE hidden form field, and zlib.output_compression = On in Apache.. 5) Check Apache LimitRequestBody (max size in bytes) 6) Obscure but possible: "Because some systems send the packets with the headers last (or the header packet may be received after some of the data packets), firewalls can't filter this traffic based on destination port and address. Many firewalls (including iptables) have to be configured to allow fragments separately from standard traffic. Unfortunately, it's an all-or-nothing thing in these cases, and exploits based on packet fragmentation have been a problem in the past (teardrop, boink, etc.). Note that ICMP may be used to notify the host (your server) of oncoming fragmentation, so you may need to allow ICMP traffic as well." The iptables rules for this are as follows: # allow all fragments -A INPUT -f -j ACCEPT # allow icmp traffic -A INPUT -p icmp -j ACCEPT Most of the above thanks to manual page: http://us3.php.net/features.file-upload Peter Snyder wrote: > Hello Everyone, > > I'm having a problem creating an app for a client who will need to > upload very large files, around 1GB. I'm running into problems though > with the upload. In an effort to rule out problems, I've boosted all > the normal suspects to absurd levels (see below), but am still getting > problems. If I just watch the uploads in the temp dir I can see that > the server is receiving the uploads correctly, but for some reason the > upload stops at around 40 - 50 MB each time. The browser will putter > on for a while and then say that the server has timed out. > > Does anyone have any other ideas for possible problems? I've tried > this on two different servers (clients and my staging one), with no > luck. Any hints anyone could provide would be greatly appreciated. > > Thanks! > > Sincerely, > Pete Snyder > > > > > ----- > .htaccess file > php_value memory_limit 2G > php_value post_max_size 2G > php_value upload_max_filesize 2G > php_value max_input_time 144000 > php_value max_execution_time 144000 > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Peter S. <sn...@gm...> - 2008-11-19 08:10:14
|
Hello Everyone, I'm having a problem creating an app for a client who will need to upload very large files, around 1GB. I'm running into problems though with the upload. In an effort to rule out problems, I've boosted all the normal suspects to absurd levels (see below), but am still getting problems. If I just watch the uploads in the temp dir I can see that the server is receiving the uploads correctly, but for some reason the upload stops at around 40 - 50 MB each time. The browser will putter on for a while and then say that the server has timed out. Does anyone have any other ideas for possible problems? I've tried this on two different servers (clients and my staging one), with no luck. Any hints anyone could provide would be greatly appreciated. Thanks! Sincerely, Pete Snyder ----- .htaccess file php_value memory_limit 2G php_value post_max_size 2G php_value upload_max_filesize 2G php_value max_input_time 144000 php_value max_execution_time 144000 |
From: Larry G. <la...@ga...> - 2008-11-19 02:00:03
|
File me a maybe. :-) On Tuesday 18 November 2008 8:40:37 am Jason Rexilius wrote: > Hey gang, > > Looks like we'll be meeting at 6pm at the Threadless office, 4043 N > Ravenswood ave tomorrow. I need a rough count of how many people are going > to make it. > > I'm going to give a short talk, is anyone else? > > -jason -- Larry Garfield la...@ga... |
From: <rc...@mi...> - 2008-11-18 19:49:36
|
> Looks like we'll be meeting at 6pm at the Threadless office, 4043 N Ravenswood ave tomorrow. I need a rough count of how many people are going to make it. I plan to attend. :Dan Michael |
From: Collin O'N. <co...@po...> - 2008-11-18 15:06:47
|
Count me in. I have no talk to give, though. On 11/18/08 8:40 AM, "Jason Rexilius" <ja...@ho...> wrote: > Hey gang, > > Looks like we'll be meeting at 6pm at the Threadless office, 4043 N > Ravenswood ave tomorrow. I need a rough count of how many people are going to > make it. > > I'm going to give a short talk, is anyone else? > > -jason > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Jason R. <ja...@ho...> - 2008-11-18 14:40:48
|
Hey gang, Looks like we'll be meeting at 6pm at the Threadless office, 4043 N Ravenswood ave tomorrow. I need a rough count of how many people are going to make it. I'm going to give a short talk, is anyone else? -jason |
From: derby <der...@gm...> - 2008-11-18 09:25:35
|
You mean an actual physical meeting? Let's do it. On Nov 5, 2008, at 08:23, Jason Rexilius wrote: > Let me ask this question: > > How many people are opposed to having the next meeting at Threadless > office, 4043 N Ravenswood ave? > > I may be able to get another venue but Threadless space is pretty > cool.. > > ---------------------------------------------------------------------- > --- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Richard L. <ce...@l-...> - 2008-11-17 02:44:22
|
Please follow up with Brian -- I know nothing more than below: -------------------------- Original Message -------------------------- Subject: TEKsystems PHP opportunity! From: "Crowther, Brian" <bcr...@te...> Date: Thu, November 13, 2008 2:05 pm To: Cc: recipient list not shown:; ---------------------------------------------------------------------- Hi There, We recently approached you regarding a 3 month contract for one of our clients in Franklin Park. This position has now changed to a contract OR PERMANENT PLACEMENT at the same client. TEKsystems will provide full insurance benefits during the contract phase if you would like that included. For this position we are looking for an Object-Oriented PHP Developer who is comfortable with back-end programming. Plusses for this will be experience with MySQL, XML, XHTML, CSS, Javascript, and AJAX/DOM scripting. We can interview as quickly as this week, so please pass this along to anyone who you think may be interested. Sincerely, Brian Crowther This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic email or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply email so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you. -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch |
From: Steven <coo...@ya...> - 2008-11-14 19:52:16
|
Or if it is imperative that the array have the same structure it has now... $arToday[0]['title'] = 'Patty Duke'; $arToday[0]['starttime'] = 12:00:00; $arToday[1]['title'] = 'Sesame Street'; $arToday[1]['starttime'] = 12:30:00; $count = count($arToday); $interesting_time; for($i = 0; $i < $count; $i++) { //Test $arToday[$i]['starttime'] to see if it's important. ... //Picking out the interesting indexes is the same as last time. //If you only want one time: $interesting_time = $i; //Or for multiple times: $interesting_time[] =$i; } //Single. echo $arToday[$interesting_time]['title']; //Multiple. foreach($interesting_time as $value) { echo $arToday[$value]['title]; } No matter which way you choose to construct your array, keep in mind that you will have to handle $interesting_time differently depending on whether you want a single interesting time or multiple times. foreach() will fail if the variable you pass it isn't an array, and it is a little sloppy to make an array containing a single value via the $foo[] = 'bar' method. --------------- ~Amaroq Wolf ________________________________ From: Steven <coo...@ya...> To: Discussions of PHP-related topics among members of the Chicago PHP User's Group. <chi...@li...> Sent: Friday, November 14, 2008 1:08:04 PM Subject: Re: [chiPHPug-discuss] A PHP Array question If you reorganized the array into something like this: $arToday['titles'][0] = 'Patty Duke' $arToday['titles'][1] = 'Sesame Street' $arToday['starttime'][0] = 12:00:00 $arToday['starttime'][1] = 12:30:00 You can just look through the starttimes without having to worry about the titles. When you find a starttime that you need, just pull up the title with the same index. Here's some pseudocode to demonstrate. $count = count($arToday['starttime']); $interesting_time; for($i = 0; $i < $count; $i++) { //Do whatever test you want to on $arToday['starttime'][$i] to determine if it's the right time. ... //If the current start time is a time you're interested in, take note of this. (You'll probably do this in a conditional.) $interesting_time = $i; //Or, if you want to keep note of multiple times. (Say, if more than one show is on at the same time.) $interesting_time[] = $i } //If you picked one time: echo $arToday['title'][$interesting_time]; //If you picked multiple times: foreach($interesting_time as $value) { echo $arToday['title'][$value]; } --------------- ~Amaroq Wolf ________________________________ From: Trevor Oldak <tr...@gm...> To: Discussions of PHP-related topics among members of the Chicago PHP User's Group. <chi...@li...> Sent: Friday, November 14, 2008 12:36:27 PM Subject: Re: [chiPHPug-discuss] A PHP Array question And yes, that is a bastardized way of doing it, but I've tried to move away from associative arrays and more into classes lately 2008/11/14 Trevor Oldak <tr...@gm...> > If you really want it on one line, you could use a regex on print_r with > output set to true. > Otherwise, I'd suggest creating a Record class and using that. > > 2008/11/14 Steve Gadlin <sg...@wc...> > > Hey there, PHP-folks! >> >> I have an array question, and I was hoping someone here could point me in >> the right direction. >> >> So I¹ve got this array, see... >> >> $arToday[0][³title²] = ³Patty Duke² >> $arToday[0][³starttime²] = 12:00:00 >> $arToday[1][³title²] = ³Sesame Street² >> $arToday[1][³starttime²] = 12:30:00 >> ... >> ... >> Etc. >> >> Is there an easy way for me to ³query² this array to snag the index of the >> record whose starttime variable is current? Thereby selecting the name of >> the program that may be airing ³now²? >> >> Thanks so much for your help! If there¹s some other list I should be >> posting questions to instead of this one, let me know. >> >> Steve >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> chiPHPug-discuss mailing list >> chi...@li... >> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >> > > > > -- > -Trevor Oldak > -- -Trevor Oldak ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Steven <coo...@ya...> - 2008-11-14 19:08:11
|
If you reorganized the array into something like this: $arToday['titles'][0] = 'Patty Duke' $arToday['titles'][1] = 'Sesame Street' $arToday['starttime'][0] = 12:00:00 $arToday['starttime'][1] = 12:30:00 You can just look through the starttimes without having to worry about the titles. When you find a starttime that you need, just pull up the title with the same index. Here's some pseudocode to demonstrate. $count = count($arToday['starttime']); $interesting_time; for($i = 0; $i < $count; $i++) { //Do whatever test you want to on $arToday['starttime'][$i] to determine if it's the right time. ... //If the current start time is a time you're interested in, take note of this. (You'll probably do this in a conditional.) $interesting_time = $i; //Or, if you want to keep note of multiple times. (Say, if more than one show is on at the same time.) $interesting_time[] = $i } //If you picked one time: echo $arToday['title'][$interesting_time]; //If you picked multiple times: foreach($interesting_time as $value) { echo $arToday['title'][$value]; } --------------- ~Amaroq Wolf ________________________________ From: Trevor Oldak <tr...@gm...> To: Discussions of PHP-related topics among members of the Chicago PHP User's Group. <chi...@li...> Sent: Friday, November 14, 2008 12:36:27 PM Subject: Re: [chiPHPug-discuss] A PHP Array question And yes, that is a bastardized way of doing it, but I've tried to move away from associative arrays and more into classes lately 2008/11/14 Trevor Oldak <tr...@gm...> > If you really want it on one line, you could use a regex on print_r with > output set to true. > Otherwise, I'd suggest creating a Record class and using that. > > 2008/11/14 Steve Gadlin <sg...@wc...> > > Hey there, PHP-folks! >> >> I have an array question, and I was hoping someone here could point me in >> the right direction. >> >> So I¹ve got this array, see... >> >> $arToday[0][³title²] = ³Patty Duke² >> $arToday[0][³starttime²] = 12:00:00 >> $arToday[1][³title²] = ³Sesame Street² >> $arToday[1][³starttime²] = 12:30:00 >> ... >> ... >> Etc. >> >> Is there an easy way for me to ³query² this array to snag the index of the >> record whose starttime variable is current? Thereby selecting the name of >> the program that may be airing ³now²? >> >> Thanks so much for your help! If there¹s some other list I should be >> posting questions to instead of this one, let me know. >> >> Steve >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> chiPHPug-discuss mailing list >> chi...@li... >> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >> > > > > -- > -Trevor Oldak > -- -Trevor Oldak ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Trevor O. <tr...@gm...> - 2008-11-14 18:55:27
|
And change my < to a <= I guess thsi just shows I should proofread my stuff before I post it here. The reason I assume < and > operators work on the timestamp is because if times are shown like so: 04:30:15 Then string comparison will work if it's 4:30:15, then it won't. 2008/11/14 Trevor Oldak <tr...@gm...> > gmail hid my clsoe bracket, but it's there. > > > 2008/11/14 Trevor Oldak <tr...@gm...> > >> ok, here's how i'd do it in practice: >> Assuming the < and > operators work on the timestamp given >> >> for($c = count($arToday)-1; $c >= 0; $c--){ >> if($arToday[$c]['starttime'] < $time) return $c >> >> } >> >> 2008/11/14 Trevor Oldak <tr...@gm...> >> >>> Actually forget my solution, it'll find the start times but it won't be >>> of much use with its output. >>> >>> >>> 2008/11/14 Trevor Oldak <tr...@gm...> >>> >>>> And yes, that is a bastardized way of doing it, but I've tried to move >>>> away from associative arrays and more into classes lately >>>> >>>> 2008/11/14 Trevor Oldak <tr...@gm...> >>>> >>>> If you really want it on one line, you could use a regex on print_r with >>>>> output set to true. >>>>> Otherwise, I'd suggest creating a Record class and using that. >>>>> >>>>> 2008/11/14 Steve Gadlin <sg...@wc...> >>>>> >>>>> Hey there, PHP-folks! >>>>>> >>>>>> I have an array question, and I was hoping someone here could point me >>>>>> in >>>>>> the right direction. >>>>>> >>>>>> So I¹ve got this array, see... >>>>>> >>>>>> $arToday[0][³title²] = ³Patty Duke² >>>>>> $arToday[0][³starttime²] = 12:00:00 >>>>>> $arToday[1][³title²] = ³Sesame Street² >>>>>> $arToday[1][³starttime²] = 12:30:00 >>>>>> ... >>>>>> ... >>>>>> Etc. >>>>>> >>>>>> Is there an easy way for me to ³query² this array to snag the index of >>>>>> the >>>>>> record whose starttime variable is current? Thereby selecting the >>>>>> name of >>>>>> the program that may be airing ³now²? >>>>>> >>>>>> Thanks so much for your help! If there¹s some other list I should be >>>>>> posting questions to instead of this one, let me know. >>>>>> >>>>>> Steve >>>>>> >>>>>> ------------------------------------------------------------------------- >>>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>>>> challenge >>>>>> Build the coolest Linux based applications with Moblin SDK & win great >>>>>> prizes >>>>>> Grand prize is a trip for two to an Open Source event anywhere in the >>>>>> world >>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>>> _______________________________________________ >>>>>> chiPHPug-discuss mailing list >>>>>> chi...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> -Trevor Oldak >>>>> >>>> >>>> >>>> >>>> -- >>>> -Trevor Oldak >>>> >>> >>> >>> >>> -- >>> -Trevor Oldak >>> >> >> >> >> -- >> -Trevor Oldak >> > > > > -- > -Trevor Oldak > -- -Trevor Oldak |
From: Trevor O. <tr...@gm...> - 2008-11-14 18:53:25
|
gmail hid my clsoe bracket, but it's there. 2008/11/14 Trevor Oldak <tr...@gm...> > ok, here's how i'd do it in practice: > Assuming the < and > operators work on the timestamp given > > for($c = count($arToday)-1; $c >= 0; $c--){ > if($arToday[$c]['starttime'] < $time) return $c > > } > > 2008/11/14 Trevor Oldak <tr...@gm...> > >> Actually forget my solution, it'll find the start times but it won't be of >> much use with its output. >> >> >> 2008/11/14 Trevor Oldak <tr...@gm...> >> >>> And yes, that is a bastardized way of doing it, but I've tried to move >>> away from associative arrays and more into classes lately >>> >>> 2008/11/14 Trevor Oldak <tr...@gm...> >>> >>> If you really want it on one line, you could use a regex on print_r with >>>> output set to true. >>>> Otherwise, I'd suggest creating a Record class and using that. >>>> >>>> 2008/11/14 Steve Gadlin <sg...@wc...> >>>> >>>> Hey there, PHP-folks! >>>>> >>>>> I have an array question, and I was hoping someone here could point me >>>>> in >>>>> the right direction. >>>>> >>>>> So I¹ve got this array, see... >>>>> >>>>> $arToday[0][³title²] = ³Patty Duke² >>>>> $arToday[0][³starttime²] = 12:00:00 >>>>> $arToday[1][³title²] = ³Sesame Street² >>>>> $arToday[1][³starttime²] = 12:30:00 >>>>> ... >>>>> ... >>>>> Etc. >>>>> >>>>> Is there an easy way for me to ³query² this array to snag the index of >>>>> the >>>>> record whose starttime variable is current? Thereby selecting the name >>>>> of >>>>> the program that may be airing ³now²? >>>>> >>>>> Thanks so much for your help! If there¹s some other list I should be >>>>> posting questions to instead of this one, let me know. >>>>> >>>>> Steve >>>>> >>>>> ------------------------------------------------------------------------- >>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>>> challenge >>>>> Build the coolest Linux based applications with Moblin SDK & win great >>>>> prizes >>>>> Grand prize is a trip for two to an Open Source event anywhere in the >>>>> world >>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>> _______________________________________________ >>>>> chiPHPug-discuss mailing list >>>>> chi...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >>>>> >>>> >>>> >>>> >>>> -- >>>> -Trevor Oldak >>>> >>> >>> >>> >>> -- >>> -Trevor Oldak >>> >> >> >> >> -- >> -Trevor Oldak >> > > > > -- > -Trevor Oldak > -- -Trevor Oldak |
From: Trevor O. <tr...@gm...> - 2008-11-14 18:52:57
|
ok, here's how i'd do it in practice: Assuming the < and > operators work on the timestamp given for($c = count($arToday)-1; $c >= 0; $c--){ if($arToday[$c]['starttime'] < $time) return $c } 2008/11/14 Trevor Oldak <tr...@gm...> > Actually forget my solution, it'll find the start times but it won't be of > much use with its output. > > > 2008/11/14 Trevor Oldak <tr...@gm...> > >> And yes, that is a bastardized way of doing it, but I've tried to move >> away from associative arrays and more into classes lately >> >> 2008/11/14 Trevor Oldak <tr...@gm...> >> >> If you really want it on one line, you could use a regex on print_r with >>> output set to true. >>> Otherwise, I'd suggest creating a Record class and using that. >>> >>> 2008/11/14 Steve Gadlin <sg...@wc...> >>> >>> Hey there, PHP-folks! >>>> >>>> I have an array question, and I was hoping someone here could point me >>>> in >>>> the right direction. >>>> >>>> So I¹ve got this array, see... >>>> >>>> $arToday[0][³title²] = ³Patty Duke² >>>> $arToday[0][³starttime²] = 12:00:00 >>>> $arToday[1][³title²] = ³Sesame Street² >>>> $arToday[1][³starttime²] = 12:30:00 >>>> ... >>>> ... >>>> Etc. >>>> >>>> Is there an easy way for me to ³query² this array to snag the index of >>>> the >>>> record whose starttime variable is current? Thereby selecting the name >>>> of >>>> the program that may be airing ³now²? >>>> >>>> Thanks so much for your help! If there¹s some other list I should be >>>> posting questions to instead of this one, let me know. >>>> >>>> Steve >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>> challenge >>>> Build the coolest Linux based applications with Moblin SDK & win great >>>> prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in the >>>> world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> _______________________________________________ >>>> chiPHPug-discuss mailing list >>>> chi...@li... >>>> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >>>> >>> >>> >>> >>> -- >>> -Trevor Oldak >>> >> >> >> >> -- >> -Trevor Oldak >> > > > > -- > -Trevor Oldak > -- -Trevor Oldak |
From: Trevor O. <tr...@gm...> - 2008-11-14 18:42:13
|
Actually forget my solution, it'll find the start times but it won't be of much use with its output. 2008/11/14 Trevor Oldak <tr...@gm...> > And yes, that is a bastardized way of doing it, but I've tried to move away > from associative arrays and more into classes lately > > 2008/11/14 Trevor Oldak <tr...@gm...> > > If you really want it on one line, you could use a regex on print_r with >> output set to true. >> Otherwise, I'd suggest creating a Record class and using that. >> >> 2008/11/14 Steve Gadlin <sg...@wc...> >> >> Hey there, PHP-folks! >>> >>> I have an array question, and I was hoping someone here could point me in >>> the right direction. >>> >>> So I¹ve got this array, see... >>> >>> $arToday[0][³title²] = ³Patty Duke² >>> $arToday[0][³starttime²] = 12:00:00 >>> $arToday[1][³title²] = ³Sesame Street² >>> $arToday[1][³starttime²] = 12:30:00 >>> ... >>> ... >>> Etc. >>> >>> Is there an easy way for me to ³query² this array to snag the index of >>> the >>> record whose starttime variable is current? Thereby selecting the name >>> of >>> the program that may be airing ³now²? >>> >>> Thanks so much for your help! If there¹s some other list I should be >>> posting questions to instead of this one, let me know. >>> >>> Steve >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win great >>> prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the >>> world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> chiPHPug-discuss mailing list >>> chi...@li... >>> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >>> >> >> >> >> -- >> -Trevor Oldak >> > > > > -- > -Trevor Oldak > -- -Trevor Oldak |
From: Trevor O. <tr...@gm...> - 2008-11-14 18:36:33
|
And yes, that is a bastardized way of doing it, but I've tried to move away from associative arrays and more into classes lately 2008/11/14 Trevor Oldak <tr...@gm...> > If you really want it on one line, you could use a regex on print_r with > output set to true. > Otherwise, I'd suggest creating a Record class and using that. > > 2008/11/14 Steve Gadlin <sg...@wc...> > > Hey there, PHP-folks! >> >> I have an array question, and I was hoping someone here could point me in >> the right direction. >> >> So I¹ve got this array, see... >> >> $arToday[0][³title²] = ³Patty Duke² >> $arToday[0][³starttime²] = 12:00:00 >> $arToday[1][³title²] = ³Sesame Street² >> $arToday[1][³starttime²] = 12:30:00 >> ... >> ... >> Etc. >> >> Is there an easy way for me to ³query² this array to snag the index of the >> record whose starttime variable is current? Thereby selecting the name of >> the program that may be airing ³now²? >> >> Thanks so much for your help! If there¹s some other list I should be >> posting questions to instead of this one, let me know. >> >> Steve >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> chiPHPug-discuss mailing list >> chi...@li... >> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >> > > > > -- > -Trevor Oldak > -- -Trevor Oldak |
From: Trevor O. <tr...@gm...> - 2008-11-14 18:35:02
|
If you really want it on one line, you could use a regex on print_r with output set to true. Otherwise, I'd suggest creating a Record class and using that. 2008/11/14 Steve Gadlin <sg...@wc...> > Hey there, PHP-folks! > > I have an array question, and I was hoping someone here could point me in > the right direction. > > So I¹ve got this array, see... > > $arToday[0][³title²] = ³Patty Duke² > $arToday[0][³starttime²] = 12:00:00 > $arToday[1][³title²] = ³Sesame Street² > $arToday[1][³starttime²] = 12:30:00 > ... > ... > Etc. > > Is there an easy way for me to ³query² this array to snag the index of the > record whose starttime variable is current? Thereby selecting the name of > the program that may be airing ³now²? > > Thanks so much for your help! If there¹s some other list I should be > posting questions to instead of this one, let me know. > > Steve > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > -- -Trevor Oldak |
From: Steve G. <sg...@wc...> - 2008-11-14 18:34:05
|
Thanks, Jason. If traversing the array is the best way to go, then I suppose that'll be fine. I appreciate the code example! Steve On 11/14/08 12:32 PM, "Jason Rexilius" <ja...@ho...> wrote: > off the top of my head, I dont know of any other way than traversing the > array.. something like: > > $aln=count($arToday); > $rec=0; > $found=0; > $title=''; > $currenttime=[however you want to construct this]; > > while($rec<$aln){ > if( $arToday[$rec]['starttime']==$currenttime ){ > $found=$rec; > $title=$arToday[$rec]['title']; > $rec=$aln; // skip rest of loop > } > $rec++; > } > > that was just typed without testing, so beware typos ;-).. > > there _may be_ some better multi-dimensional array index function built > in to PHP but it would, in essence do the same as above.. > > > > Steve Gadlin wrote: >> Hey there, PHP-folks! >> >> I have an array question, and I was hoping someone here could point me in >> the right direction. >> >> So I¹ve got this array, see... >> >> $arToday[0][³title²] = ³Patty Duke² >> $arToday[0][³starttime²] = 12:00:00 >> $arToday[1][³title²] = ³Sesame Street² >> $arToday[1][³starttime²] = 12:30:00 >> ... >> ... >> Etc. >> >> Is there an easy way for me to ³query² this array to snag the index of the >> record whose starttime variable is current? Thereby selecting the name of >> the program that may be airing ³now²? >> >> Thanks so much for your help! If there¹s some other list I should be >> posting questions to instead of this one, let me know. >> >> Steve >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> chiPHPug-discuss mailing list >> chi...@li... >> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Jason R. <ja...@ho...> - 2008-11-14 18:32:19
|
off the top of my head, I dont know of any other way than traversing the array.. something like: $aln=count($arToday); $rec=0; $found=0; $title=''; $currenttime=[however you want to construct this]; while($rec<$aln){ if( $arToday[$rec]['starttime']==$currenttime ){ $found=$rec; $title=$arToday[$rec]['title']; $rec=$aln; // skip rest of loop } $rec++; } that was just typed without testing, so beware typos ;-).. there _may be_ some better multi-dimensional array index function built in to PHP but it would, in essence do the same as above.. Steve Gadlin wrote: > Hey there, PHP-folks! > > I have an array question, and I was hoping someone here could point me in > the right direction. > > So I¹ve got this array, see... > > $arToday[0][³title²] = ³Patty Duke² > $arToday[0][³starttime²] = 12:00:00 > $arToday[1][³title²] = ³Sesame Street² > $arToday[1][³starttime²] = 12:30:00 > ... > ... > Etc. > > Is there an easy way for me to ³query² this array to snag the index of the > record whose starttime variable is current? Thereby selecting the name of > the program that may be airing ³now²? > > Thanks so much for your help! If there¹s some other list I should be > posting questions to instead of this one, let me know. > > Steve > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Steve G. <sg...@wc...> - 2008-11-14 18:18:15
|
Hey there, PHP-folks! I have an array question, and I was hoping someone here could point me in the right direction. So I¹ve got this array, see... $arToday[0][³title²] = ³Patty Duke² $arToday[0][³starttime²] = 12:00:00 $arToday[1][³title²] = ³Sesame Street² $arToday[1][³starttime²] = 12:30:00 ... ... Etc. Is there an easy way for me to ³query² this array to snag the index of the record whose starttime variable is current? Thereby selecting the name of the program that may be airing ³now²? Thanks so much for your help! If there¹s some other list I should be posting questions to instead of this one, let me know. Steve |