php-general Digest 25 Nov 2010 21:45:38 - Issue 7054
Topics (messages 309658 through 309675):
any way to iterate the fields in a class
309658 by: ФêÏ
309664 by: Tommy Pham
Re: Spoofing user_agent
309659 by: Ron Piggott
309660 by: a...@ashleysheridan.co.uk
Actually, what I am seeking is how to assign values to the fields in a class
via an array.
I have tried like this. However failed.
I have a class.
*class book{
var name;*
*var price;*
*}*
*
*
And I have got an array.
*$array=array('name'='harry potter','price'='$122');*
By using function
I have wrote a script to generate a sitemap of my web site. It crawls all of
the site web pages. (About 30,000)
I need help to spoof the user_agent variable so the stats program running in
the background ( “AWSTATS” ) will treat the crawl as a bot, not browsing usage.
The sitemap
You need to set it in the header request you make. Putting it in the script
you're using as a spider with ini_set won't do anything because the Target site
doesn't know anything about it.
Thanks,
Ash
http://www.ashleysheridan.co.uk
- Reply message -
From: Ron Piggott
Is this what you are telling me to do:
header('user_agent: RonBot (http://www.theverseoftheday.info)');
Ron
The Verse of the Day
“Encouragement from God’s Word”
http://www.TheVerseOfTheDay.info
From: a...@ashleysheridan.co.uk
Sent: Thursday, November 25, 2010 3:34 AM
To: Ron Piggott ;
A standard HTTP Request headers is : User Agent (without the underscore).
--Shreyas
On Thu, Nov 25, 2010 at 2:36 PM, Ron Piggott ron.pigg...@actsministries.org
wrote:
Is this what you are telling me to do:
header('user_agent: RonBot (http://www.theverseoftheday.info)');
Ron
The Verse
Thanks. Ron
The Verse of the Day
“Encouragement from God’s Word”
http://www.TheVerseOfTheDay.info
From: Shreyas Agasthya
Sent: Thursday, November 25, 2010 4:21 AM
To: Ron Piggott
Cc: php-general@lists.php.net ; a...@ashleysheridan.co.uk
Subject: Re: [PHP] Fw: Spoofing user_agent
A standard
-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 array.
I
Will the header pass with using file_get_contents , or should I be using
another command, and if so, which one? Ron
?php
header('User Agent: RonBot (http://www.example.com)');
$url = http://www.example.com;;
$input = file_get_contents($url);
The Verse of the Day
Use curl
http://php.net/manual/en/book.curl.php
On Thu, Nov 25, 2010 at 4:41 PM, Shreyas Agasthya shreya...@gmail.comwrote:
I feel you should use more of the 4th method here as you are not trying to
read the file but the header level (7th layer) information of the HTTP
protocol.
Have you done some perfs testing ?
Gunning sky
Le 23 nov. 2010 00:34, Andre Polykanine an...@oire.org a écrit :
Hello Yermo,
thanks a lot! I will try this on my project (http://oire.org/) and
I'll inform you if I modify it somehow.
--
With best regards from Ukraine,
Andre
Skype:
On 25 November 2010 00:14, Tommy Pham tommy...@gmail.com wrote:
-Original Message-
From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of
Daniel P. Brown
Sent: Monday, November 22, 2010 12:08 PM
To: Dee Ayy
Cc: PHP General
Subject: Re: [PHP] Can't find existing file
On 25 November 2010 11:32, Deva devendra...@gmail.com wrote:
Use curl
http://php.net/manual/en/book.curl.php
On Thu, Nov 25, 2010 at 4:41 PM, Shreyas Agasthya shreya...@gmail.comwrote:
I feel you should use more of the 4th method here as you are not trying to
read the file but the header
Is User Agent suppose to have a hyphen - ? Ron
The Verse of the Day
“Encouragement from God’s Word”
http://www.TheVerseOfTheDay.info
-Original Message-
From: Richard Quadling
Sent: Thursday, November 25, 2010 9:16 AM
To: Deva
Cc: Shreyas Agasthya ; Ron Piggott ;
On Thu, Nov 25, 2010 at 9:07 AM, Richard Quadling rquadl...@gmail.com wrote:
On 25 November 2010 00:14, Tommy Pham tommy...@gmail.com wrote:
-Original Message-
From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of
Daniel P. Brown
Sent: Monday, November 22, 2010 12:08 PM
-Original Message-
From: Bastien Koert [mailto:phps...@gmail.com]
Sent: Thursday, November 25, 2010 7:42 AM
To: rquadl...@googlemail.com
Cc: Tommy Pham; Daniel P. Brown; Dee Ayy; PHP General
Subject: Re: [PHP] Can't find existing file
On Thu, Nov 25, 2010 at 9:07 AM, Richard
On Nov 25, 2010, at 8:07 AM, Richard Quadling wrote:
I prefer PICNIC.
So you can now have a Senior Picnic or a Kiddies Picnic and it all
sounds quite pleasant.
Ok, I give, what's a PICNIC?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: Tamara Temple [mailto:tamouse.li...@gmail.com]
Sent: Thursday, November 25, 2010 1:45 PM
To: rquadl...@googlemail.com
Cc: Tommy Pham; Daniel P. Brown; Dee Ayy; PHP General
Subject: Re: [PHP] Can't find existing file
On Nov 25, 2010, at 8:07 AM, Richard
Hi,
I noticed that the mail() function in php 5.3.3 on gentoo linux triggers
a warning when used. A simple debug script with the contents:
?php
// recipient, subject, body
mail(s...@example.com, mail() test, This is a test);
?
does send mail, but it also raises a warning:
Warning: mail(1):
I have been scratching on this for some time now, and throughout I've
been trying subscribe to this list.
Pardon if this is a stupid question, but I googled for days on this and
still couldn't get it to work.
Is there a known issue with php's preg_match? I can get it to work on a
string
20 matches
Mail list logo