Re: [PHP] Fw: Spoofing user_agent

2010-11-29 Thread Ashley Sheridan
On Tue, 2010-11-30 at 00:19 -0200, Thiago H. Pojda wrote: > Quit top posting. > > On Mon, Nov 29, 2010 at 9:55 PM, Ron Piggott > 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

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 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 accordingly. > Ron, AWSTATS probab

Re: [PHP] excel and word files to HTML

2010-11-29 Thread Daniel Molina Wegener
On Monday 29 November 2010, "464450826" <464450...@qq.com> wrote: > Hello, Hello... > > I want to convert excel files and word files to HTML. > Which php class could I use for this task? > tks Try the PEAR libraries: Excel: http://pear.php.net/search.php?q=excel&in=packages&x=0&y=0 Pro

Re: [PHP] Form Processing

2010-11-29 Thread Daniel Molina Wegener
On Monday 29 November 2010, "Ron Piggott" wrote: > I am unable to retrieve the value of $referral_1 from: Sorry, I did't see the name=email attribute. It should be name="email[]", and you will get the data from the $_REQUEST['email'] variable or $_POST['email'] as array. If you want detaile

Re: [PHP] Form Processing

2010-11-29 Thread Daniel P. Brown
On Mon, Nov 29, 2010 at 18:54, Ron Piggott 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 you're using, why not use a v

Re: [PHP] Form Processing

2010-11-29 Thread Daniel Molina Wegener
On Monday 29 November 2010, "Ron Piggott" 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: Should be: Please read the following links: HTML Standards: http://www.w3.org/standa

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

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: Shreya

[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 ( strle

Re: [PHP] mySQL query assistance...

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

Re: [PHP] mySQL query assistance...

2010-11-29 Thread Daniel P. Brown
On Mon, Nov 29, 2010 at 14:35, Don Wieland 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, write to the MySQL

[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: http://www.php.net/unsub.ph

[PHP] EE1 plugin code/htmlentities() question

2010-11-29 Thread Micky Hulse
Hello, I was looking at this ExpressionEngine plugin: Description: This plugin converts reserved XML characters to entities. It is used in the RSS templates. ... Curious about this code: trim(str_replace(array('/', ' '), array("/", ' 

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 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 > lo

Re: [PHP] Poor newsgroup server performance

2010-11-29 Thread Daniel Brown
On Mon, Nov 29, 2010 at 12:52, Al 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 those issues,

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, Al 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 times. All other websi

Re: [PHP] Poor newsgroup server performance

2010-11-29 Thread Daniel P. Brown
On Mon, Nov 29, 2010 at 09:14, Al 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 times. > > All other websites I visit are normal. > > Just getting

[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 Gener

Re: [PHP] Disk IO performance

2010-11-29 Thread Daniel Molina Wegener
On Monday 29 November 2010, Per Jessen wrote: > Daniel Molina Wegener wrote: > > On Sunday 28 November 2010, > > > > Larry Garfield 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

Re: [PHP] Disk IO performance

2010-11-29 Thread Per Jessen
Daniel Molina Wegener wrote: > On Sunday 28 November 2010, > Larry Garfield 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 >> o

Re: [PHP] Disk IO performance

2010-11-29 Thread Daniel Molina Wegener
On Sunday 28 November 2010, Larry Garfield 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 a bit performance