Re: [PHP] Re: Possible foreach bug; seeking advice to isolate the problem

2010-10-22 Thread Peter Lind
On 23 October 2010 07:50, Jonathan Sachs <081...@jhsachs.com> wrote: > Gary wrote: > >>Better. I can tell you how to solve it: >>    $a = array('a', 'b','c'); >>    foreach($a as &$row){ >>        //you don't have to do anything here >>    } >>    unset($row); // <<<< THIS IS KEY! >>    print_r

[PHP] Re: Possible foreach bug; seeking advice to isolate the problem

2010-10-22 Thread Jonathan Sachs
Gary wrote: >Better. I can tell you how to solve it: >$a = array('a', 'b','c'); >foreach($a as &$row){ >//you don't have to do anything here >} >unset($row); // <<<< THIS IS KEY! >print_r($a); >foreach($a as $row){ >echo "".$row; >} >print_r($a);

[PHP] a loop constructing the URLs and make PHP to fetch up to 10 thousand pages

2010-10-22 Thread jobst müller
hello dear list - good morning! I am trying to figure out a method how to retrieve on the same URLs [see below] with different query arguments, and i am wondering if this is doable with PHP!? on a sidenote: Well - i guess that we can do this with LWP::UserAgent - guess that this provides

Re: [PHP] php imap_search fails for subject strings which have apostrophe

2010-10-22 Thread nitesh nandy
Thanks for the reply. I had posted this on gmail forums and someone just posted this is a server-side limitation actually. http://www.google.com/support/forum/p/gmail/thread?fid=05fef86a09eb199d00049338b3282f61&hl=en I guess I'll have to figure out other ways ways to make this happen On Sat, Oct

Re: [PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread vikash . iitb
+1 for log4php. (http://logging.apache.org/log4php/index.html) I use it regularly and love it. Thanks, Vikash Kumar -- http://vika.sh On 23 October 2010 08:35, Tommy Pham wrote: > > -Original Message- > > From: Tamara Temple [mailto:tamouse.li...@gmail.com] > > Sent: Friday, October

RE: [PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread Tommy Pham
> -Original Message- > From: Tamara Temple [mailto:tamouse.li...@gmail.com] > Sent: Friday, October 22, 2010 5:45 PM > To: Daniel P. Brown > Cc: PHP General > Subject: Re: [PHP] Is there a way to write to the php error log from a php > script? > > > On Oct 22, 2010, at 7:31 PM, Daniel P.

Re: [PHP] Re: Independent Contractor Suggestions

2010-10-22 Thread musicdev
Alrighty, thanks for waiting. I've posted the files here: http://freelancetools.sourceforge.net/ Currently, there are two documents there: A general contract and a statement of work (SOW) contract. Typically, the general contract would be signed first, essentially laying out the overall te

Re: [PHP] Re: Independent Contractor Suggestions

2010-10-22 Thread Kris Craig
Alrighty, thanks for waiting. I've posted the files here: http://freelancetools.sourceforge.net/ Currently, there are two documents there: A general contract and a statement of work (SOW) contract. Typically, the general contract would be signed first, essentially laying out the overall terms

Re: [PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread Tamara Temple
On Oct 22, 2010, at 7:31 PM, Daniel P. Brown wrote: On Fri, Oct 22, 2010 at 20:24, Tamara Temple wrote: I'm trying to log some data for debugging and don't have use of the standard output to do so. I'd like to write the info to the php error log. Can this be done from within PHP? I've sea

Re: [PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread Daniel P. Brown
On Fri, Oct 22, 2010 at 20:24, Tamara Temple wrote: > I'm trying to log some data for debugging and don't have use of the standard > output to do so. I'd like to write the info to the php error log. Can this > be done from within PHP? I've searched the web site for logging functions, > but cannot

[PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread Tamara Temple
I'm trying to log some data for debugging and don't have use of the standard output to do so. I'd like to write the info to the php error log. Can this be done from within PHP? I've searched the web site for logging functions, but cannot find any. -- PHP General Mailing List (http://www.ph

Re: [PHP] php imap_search fails for subject strings which have apostrophe

2010-10-22 Thread Govinda
I've to search for messages from Gmail Inbox over IMAP using search by SUBJECT . The php-imap imap_search() works fine when the subject is pure alphanumeric. If the subject string has an apostrophe or a dash then the search fails. imap_seach($mbox, 'ALL SUBJECT ""'); imap_seach($mbox, 'ALL

[PHP] php imap_search fails for subject strings which have apostrophe

2010-10-22 Thread nitesh nandy
I've to search for messages from Gmail Inbox over IMAP using search by SUBJECT . The php-imap imap_search() works fine when the subject is pure alphanumeric. If the subject string has an apostrophe or a dash then the search fails. imap_seach($mbox, 'ALL SUBJECT ""'); imap_seach($mbox, 'ALL SUBJE

Re: [PHP] Printing....

2010-10-22 Thread Daniel P. Brown
On Fri, Oct 22, 2010 at 16:43, Steve Staples wrote: > Ok, here is an interesting one... > > I am building an application, that basically listens for input on 2 ip > addresses (not a problem there)... then it does a bunch of stuff, puts > info to a terminal window (again, i dont think this will be

[PHP] Printing....

2010-10-22 Thread Steve Staples
Ok, here is an interesting one... I am building an application, that basically listens for input on 2 ip addresses (not a problem there)... then it does a bunch of stuff, puts info to a terminal window (again, i dont think this will be an issue)... but then once the user says "yep... print" i need

Re: [PHP] Entity 'reg' not defined

2010-10-22 Thread Bastien Koert
On Fri, Oct 22, 2010 at 2:28 PM, Richard Quadling wrote: > On 22 October 2010 19:01, TR Shaw wrote: >> >> On Oct 22, 2010, at 1:56 PM, Ashley Sheridan wrote: >> >>> On Fri, 2010-10-22 at 12:03 -0400, Adam Richardson wrote: >>> On Fri, Oct 22, 2010 at 11:47 AM, TR Shaw wrote: > Anyo

Re: [PHP] Entity 'reg' not defined

2010-10-22 Thread Richard Quadling
On 22 October 2010 19:01, TR Shaw wrote: > > On Oct 22, 2010, at 1:56 PM, Ashley Sheridan wrote: > >> On Fri, 2010-10-22 at 12:03 -0400, Adam Richardson wrote: >> >>> On Fri, Oct 22, 2010 at 11:47 AM, TR Shaw wrote: >>> Anyone have an idea how to work around this? I tried: define (

Re: [PHP] Entity 'reg' not defined

2010-10-22 Thread TR Shaw
On Oct 22, 2010, at 1:56 PM, Ashley Sheridan wrote: > On Fri, 2010-10-22 at 12:03 -0400, Adam Richardson wrote: > >> On Fri, Oct 22, 2010 at 11:47 AM, TR Shaw wrote: >> >>> Anyone have an idea how to work around this? I tried: >>> >>> define ('reg', '®'); >>> define ('®', '®'); >>> >>> can't

Re: [PHP] Entity 'reg' not defined

2010-10-22 Thread Ashley Sheridan
On Fri, 2010-10-22 at 12:03 -0400, Adam Richardson wrote: > On Fri, Oct 22, 2010 at 11:47 AM, TR Shaw wrote: > > > Anyone have an idea how to work around this? I tried: > > > > define ('reg', '®'); > > define ('®', '®'); > > > > can't figure how to override the entity table. Errors follw: > > >

Re: [PHP] Entity 'reg' not defined

2010-10-22 Thread Adam Richardson
On Fri, Oct 22, 2010 at 1:19 PM, TR Shaw wrote: > > On Oct 22, 2010, at 12:03 PM, Adam Richardson wrote: > > > On Fri, Oct 22, 2010 at 11:47 AM, TR Shaw wrote: > > > >> Anyone have an idea how to work around this? I tried: > >> > >> define ('reg', '®'); > >> define ('®', '®'); > >> > >> can't fi

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Bastien Koert
On Fri, Oct 22, 2010 at 12:46 PM, Jay Blanchard wrote: > [snip] > I read some place that the first one to mention Nazi's lose the > argument. > [/snip] > > Nah, it is just proof of, as mentioned before, Godwin's Law > (http://en.wikipedia.org/wiki/Godwin%27s_law) > > -- > PHP General Mailing List

RE: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Jay Blanchard
[snip] I read some place that the first one to mention Nazi's lose the argument. [/snip] Nah, it is just proof of, as mentioned before, Godwin's Law (http://en.wikipedia.org/wiki/Godwin%27s_law) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Richard Quadling
On 22 October 2010 17:35, tedd wrote: > At 3:01 PM -0500 10/21/10, Jay Blanchard wrote: >> >> [snip] >> Orwellian! >> [/snip] >> >> "Nazi's did it!" >> >> "Why?" >> >> "Top posting is bad!" > > I read some place that the first one to mention Nazi's lose the argument. http://en.wikipedia.org/wiki/

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Richard Quadling
On 22 October 2010 13:59, Andy McKenzie wrote: > There are > already a few people on the list whose posts I just glance at to see > if there's code, and skip if there's not. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread tedd
At 4:54 PM -0400 10/21/10, Marc Guay wrote: Toilet seat. Up or down. Same thing? Sort of. No, everything down (seat and top) is the rule in my house. You should see how women often react when I tell them to put the top down -- it's like my dog hearing a high note. Cheers, tedd -- -

RE: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread tedd
At 3:01 PM -0500 10/21/10, Jay Blanchard wrote: [snip] Orwellian! [/snip] "Nazi's did it!" "Why?" "Top posting is bad!" I read some place that the first one to mention Nazi's lose the argument. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread tedd
At 6:05 PM +0100 10/21/10, Ashley Sheridan wrote: And thanks for remembering I'm a guy, been called a girl on this list more than once! :p Thanks, Ash You're not! :-) Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread tedd
At 12:24 PM -0400 10/21/10, Paul M Foster wrote: I dropped off a bit because I (rightfully) got boxed around when I made some incorrect statements regarding obscure HTML/PHP points. I thought, maybe I should shut up and just listen until I know more. Paul Paul: IMO, that's not a good reason t

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread tedd
At 10:47 AM -0400 10/21/10, Daniel Brown wrote: On Thu, Oct 21, 2010 at 10:41, Robert Cummings wrote: I can't speak for everyone here (or who is no longer here)... but my posts have dwindled significantly due to work and family time constraints :| Same here, but isn't it a bit eerie th

Re: [PHP] Entity 'reg' not defined

2010-10-22 Thread Adam Richardson
On Fri, Oct 22, 2010 at 11:47 AM, TR Shaw wrote: > Anyone have an idea how to work around this? I tried: > > define ('reg', '®'); > define ('®', '®'); > > can't figure how to override the entity table. Errors follw: > > Warning: simplexml_load_string(): > o.cc/46/e53d68e007fd45c2fccb502f2e7ccad5

[PHP] Entity 'reg' not defined

2010-10-22 Thread TR Shaw
Anyone have an idea how to work around this? I tried: define ('reg', '®'); define ('®', '®'); can't figure how to override the entity table. Errors follw: Warning: simplexml_load_string(): o.cc/46/e53d68e007fd45c2fccb502f2e7ccad5.php?user_id=47&sub_id=61862469® in checkifup.php on line 5119

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Andy McKenzie
On Fri, Oct 22, 2010 at 9:22 AM, Jay Blanchard wrote: > [snip] > really makes me question remaining a member...it's been a close thing a > few times in the last week. > [/snip] > > $door = new door("large", "heavy", "swift"); > $door->open(); > $door->hitArse(); > $door->close(); > > C'mon, the ru

Re: [PHP] CMS plugin support

2010-10-22 Thread Larry Garfield
On Friday, October 22, 2010 4:30:06 am Emil Guy wrote: > Hi! > > I have a bit of a vague question. I have always used different selfmade > basic "CMS" for web pages. That works fine, and I like having my own > structure and light code weight. But the big pro with using a standard CMS > like drupal

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Bastien Koert
On Fri, Oct 22, 2010 at 9:22 AM, Jay Blanchard wrote: > [snip] > really makes me question remaining a member...it's been a close thing a > few times in the last week. > [/snip] > > $door = new door("large", "heavy", "swift"); > $door->open(); > $door->hitArse(); > $door->close(); > > C'mon, the ru

RE: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Jay Blanchard
[snip] really makes me question remaining a member...it's been a close thing a few times in the last week. [/snip] $door = new door("large", "heavy", "swift"); $door->open(); $door->hitArse(); $door->close(); C'mon, the rudeness out weighs the good of this list? -- PHP General Mailing List (ht

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Andy McKenzie
> PHP is basically the only language I deal with any more - and it's the > only language I -want- to deal with. I hate to see basic semantics > such as "top post you asshole" scare off fresh blood and create a > hostile or otherwise discriminatory environment. Keep PHP alive and > well, at least un

Re: [PHP] CMS plugin support

2010-10-22 Thread Ashley Sheridan
On Fri, 2010-10-22 at 11:30 +0200, Emil Guy wrote: > Hi! > > I have a bit of a vague question. I have always used different selfmade > basic "CMS" for web pages. That works fine, and I like having my own > structure and light code weight. But the big pro with using a standard CMS > like drupal is

Re: [PHP] Model View Concepts

2010-10-22 Thread Ashley Sheridan
On Fri, 2010-10-22 at 10:16 +0200, Sebastian Detert wrote: > Hi all, > > I'm currently searching for any code snippets, tutorials, howtos, > concepts which explain different ways to collect all type of data/input > (i.e. inside a class, xml, json string whatever) and create independent > html

RE: [PHP] Possible foreach bug; seeking advice to isolate the problem

2010-10-22 Thread Ford, Mike
> -Original Message- > From: Jonathan Sachs [mailto:081...@jhsachs.com] > Sent: 20 October 2010 04:48 > To: php-general@lists.php.net > Subject: [PHP] Possible foreach bug; seeking advice to isolate the > problem > > I've got a script which originally contained the following piece of > cod

[PHP] CMS plugin support

2010-10-22 Thread Emil Guy
Hi! I have a bit of a vague question. I have always used different selfmade basic "CMS" for web pages. That works fine, and I like having my own structure and light code weight. But the big pro with using a standard CMS like drupal is the plugin support. Are there any php plugin standards or is th

RE: [PHP] Re: "My truth comes out" [1]

2010-10-22 Thread Ford, Mike
> -Original Message- > From: Jason [mailto:networkad...@emarket2.com] > Sent: 21 October 2010 11:45 > > What about something simple and readable like: > > ($string=="true") ? true : false; ... and wasteful. The above gives exactly the same result as ($string=="true") Cheers! Mike

Re: [PHP] Fw: Dbase database - reg

2010-10-22 Thread Alexis
sounds like you have not compiled php with the --enable-dbase option. check the output of and see if there is any mention of dbase..if not, then that is probably your problem. Alexis On 22/10/10 02:51, kumar wrote: 22.10.2010 Dear sir Please help me the following code and how to rectif

[PHP] Fw: Dbase database - reg

2010-10-22 Thread kumar
22.10.2010 Dear sir Please help me the following code and how to rectify the same . Fatal error: Call to undefined function: dbase_open() please help me sir, regards Kumar . L SLST / ARNI / Tamilnadu / India

[PHP] Model View Concepts

2010-10-22 Thread Sebastian Detert
Hi all, I'm currently searching for any code snippets, tutorials, howtos, concepts which explain different ways to collect all type of data/input (i.e. inside a class, xml, json string whatever) and create independent html files (i.e. different designs), xml files, pdf files, etc. out of that

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Thijs Lensselink
On Thu, 21 Oct 2010 16:30:03 +0100, Ashley Sheridan wrote: On Thu, 2010-10-21 at 10:25 -0400, Daniel Brown wrote: Hey, Folks; Just a gentle reminder after watching things get worse by the day: it is one of the rules of this and all official php.net mailing lists that you must not top-p

Re: [PHP] Re: Independent Contractor Suggestions

2010-10-22 Thread Ricardo Martinez
On Thu, Oct 21, 2010 at 4:39 PM, Paul M Foster wrote: > On Wed, Oct 20, 2010 at 05:47:12PM -0700, Kris Craig wrote: > > > Hi musicdev, > > > > There are a couple issues I think need to be addressed with what youd > > described. First and foremost, $20/hr is considerably below the going > > rate f

Re: [PHP] Convert hex string to hex value?

2010-10-22 Thread Micky Hulse
On Thu, Oct 21, 2010 at 11:45 PM, Micky Hulse wrote: > Hmmm, I wonder if I am going about this all wrong. OMG, too easy: my_method(hexdec('0x' . $base)) How did I miss that!?! I could swear I tried that earlier. Sorry to bug ya'll! Cheers, Micky -- PHP General Mailing List (http://www.php.n