php-general Digest 29 Nov 2010 23:54:35 -0000 Issue 7061

2010-11-29 Thread php-general-digest-help
php-general Digest 29 Nov 2010 23:54:35 - Issue 7061 Topics (messages 309743 through 309754): Re: Disk IO performance 309743 by: Per Jessen 309744 by: Daniel Molina Wegener Poor newsgroup server performance 309745 by: Al 309746 by: Daniel P. Brown

Re: [PHP] Disk IO performance

2010-11-29 Thread Daniel Molina Wegener
On Sunday 28 November 2010, Larry Garfield la...@garfieldtech.com wrote: There are many things that everybody knows about optimizing PHP code. One of them is that one of the most expensive parts of the process is loading code off of disk and compiling it, which is why opcode caches are such

[PHP] Poor newsgroup server performance

2010-11-29 Thread Al
Recently the response on our php.general php.pear.general have become horribly slow. At first I thought the problem was a time-of-day overload; but, it seems to be happening at all times. All other websites I visit are normal. Just getting to post this message took 2 timeouts. -- PHP

Re: [PHP] Poor newsgroup server performance

2010-11-29 Thread Al
On 11/29/2010 11:03 AM, Daniel P. Brown wrote: On Mon, Nov 29, 2010 at 09:14, Aln...@ridersite.org wrote: Recently the response on our php.general php.pear.general have become horribly slow. At first I thought the problem was a time-of-day overload; but, it seems to be happening at all

Re: [PHP] Poor newsgroup server performance

2010-11-29 Thread Daniel Brown
On Mon, Nov 29, 2010 at 12:52, Al n...@ridersite.org wrote: On 11/29/2010 11:03 AM, Daniel P. Brown wrote:     Via what news server(s), Al? news.php.net Okay, figured as much. I had mentioned some time ago that I would look into adding an NNTP-only mirror of news.php.net because of

Re: [PHP] Poor newsgroup server performance

2010-11-29 Thread Steve Staples
On Mon, 2010-11-29 at 13:01 -0500, Daniel Brown wrote: On Mon, Nov 29, 2010 at 12:52, Al n...@ridersite.org wrote: On 11/29/2010 11:03 AM, Daniel P. Brown wrote: Via what news server(s), Al? news.php.net Okay, figured as much. I had mentioned some time ago that I would

[PHP] EE1 plugin code/htmlentities() question

2010-11-29 Thread Micky Hulse
Hello, I was looking at this ExpressionEngine plugin: http://expressionengine.com/downloads/details/xml_encode/ Description: This plugin converts reserved XML characters to entities. It is used in the RSS templates. ... Curious about this code: trim(str_replace(array('#47;', 'nbsp;'),

[PHP] mySQL query assistance...

2010-11-29 Thread Don Wieland
Hi all, Is there a list/form to get some help on compiling mySQL queries? I am executing them via PHP, but do not want to ask for help here if it is no the appropriate forum. Thanks ;-) Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] mySQL query assistance...

2010-11-29 Thread Daniel P. Brown
On Mon, Nov 29, 2010 at 14:35, Don Wieland d...@dwdataconcepts.com wrote: Hi all, Is there a list/form to get some help on compiling mySQL queries? I am executing them via PHP, but do not want to ask for help here if it is no the appropriate forum. Thanks ;-) Yes. For MySQL queries,

Re: [PHP] mySQL query assistance...

2010-11-29 Thread Daniel P. Brown
On Mon, Nov 29, 2010 at 14:40, Daniel P. Brown daniel.br...@parasane.net wrote:    For your convenience, both have been CC'd on this email. Actually, PHP-DB (php...@lists.php.net) was accidentally BCC'd. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting

[PHP] Form Processing

2010-11-29 Thread Ron Piggott
I am unable to retrieve the value of $referral_1 from: $new_email = mysql_escape_string ( $_POST['referral_$i'] ); why? PHP while lopp to check if any of the fields were populated: $i=1; while ( $i = 5 ) { $new_email = mysql_escape_string ( $_POST['referral_$i'] ); if (

Re: [PHP] Fw: Spoofing user_agent

2010-11-29 Thread Ron Piggott
My issue with the user agent is unresolved. I need to do more research to see how AWSTATS distinguishes between a robot crawling the site and a web page user and set the user-agent accordingly. The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From:

RE: [PHP]any way to iterate the fields in a class

2010-11-29 Thread Daevid Vincent
-Original Message- From: ?? [mailto:xiaohan2...@gmail.com] Sent: Thursday, November 25, 2010 12:21 AM To: php-general@lists.php.net Subject: [PHP]any way to iterate the fields in a class Actually, what I am seeking is how to assign values to the fields in a class via an

Re: [PHP] Form Processing

2010-11-29 Thread Daniel Molina Wegener
On Monday 29 November 2010, Ron Piggott ron.pigg...@actsministries.org wrote: I am unable to retrieve the value of $referral_1 from: That's very simple, you are missing the name attribute for your input elements, for example: input type=text name=email maxlength=60 class=referral_5

Re: [PHP] Form Processing

2010-11-29 Thread Daniel P. Brown
On Mon, Nov 29, 2010 at 18:54, Ron Piggott ron.pigg...@actsministries.org wrote: $new_email = mysql_escape_string ( $_POST['referral_$i'] ); Because you're using literal quotes, so PHP is literally looking for the POST reference 'referral_$i'. Instead of using the style of field names

Re: [PHP] Fw: Spoofing user_agent

2010-11-29 Thread Thiago H. Pojda
Quit top posting. On Mon, Nov 29, 2010 at 9:55 PM, Ron Piggott ron.pigg...@actsministries.org wrote: My issue with the user agent is unresolved. I need to do more research to see how AWSTATS distinguishes between a robot crawling the site and a web page user and set the user-agent