[PHP] preg_match fails to resolve variable as a subject

2010-11-25 Thread Da Rock
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 dire

[PHP] Possible issue in mail() function?

2010-11-25 Thread Tom Hendrikx
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: does send mail, but it also raises a warning: Warning: mail(1): failed to open stream: Permission denied in /var/www/www.example.com/htdocs/test-mail/index

RE: [PHP] Can't find existing file

2010-11-25 Thread Tommy Pham
> -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, R

Re: [PHP] Can't find existing file

2010-11-25 Thread Tamara Temple
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

RE: [PHP] Can't find existing file

2010-11-25 Thread Tommy Pham
> -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, Richar

Re: [PHP] Can't find existing file

2010-11-25 Thread Bastien Koert
On Thu, Nov 25, 2010 at 9:07 AM, Richard Quadling wrote: > On 25 November 2010 00:14, Tommy Pham 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

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread Ron Piggott
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 ; php-general@l

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread Richard Quadling
On 25 November 2010 11:32, Deva wrote: > Use curl > http://php.net/manual/en/book.curl.php > > > On Thu, Nov 25, 2010 at 4:41 PM, Shreyas Agasthya wrote: > >> 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 o

Re: [PHP] Can't find existing file

2010-11-25 Thread Richard Quadling
On 25 November 2010 00:14, Tommy Pham 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 >> > >> s

Re: [PHP] rewriteTextLinks.php - make URLs in plain text clickable

2010-11-25 Thread Sky Gunning
Have you done some perfs testing ? Gunning sky Le 23 nov. 2010 00:34, "Andre Polykanine" 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: Francophile >

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread Deva
Use curl http://php.net/manual/en/book.curl.php On Thu, Nov 25, 2010 at 4:41 PM, Shreyas Agasthya wrote: > 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. > > http://php.net/manual/en

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread Shreyas Agasthya
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. http://php.net/manual/en/function.file-get-contents.php --Shreyas On Thu, Nov 25, 2010 at 4:11 PM, Ron Piggott wrote: > Will the heade

Re: [PHP] Suppressing error from displaying

2010-11-25 Thread Richard Quadling
On 24 November 2010 19:13, Ron Piggott wrote: > > I am using this syntax to check for a valid e-mail address > > list($userName, $mailDomain) = split("@", $buyer_email); > if (checkdnsrr($mailDomain, "MX")) { > > if no domain is provided ( ie e-mail address is something like “ron” with no > @ ) t

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread Ron Piggott
Will the header pass with using file_get_contents , or should I be using another command, and if so, which one? Ron http://www.example.com)'); $url = "http://www.example.com";; $input = file_get_contents($url); The Verse of the Day “Encouragement from God’s Word” http://www.TheVe

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

2010-11-25 Thread Tommy Pham
> -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 arr

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread Ron Piggott
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 H

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread Shreyas Agasthya
A standard HTTP Request headers is : User Agent (without the underscore). --Shreyas On Thu, Nov 25, 2010 at 2:36 PM, Ron Piggott wrote: > > Is this what you are telling me to do: > > header('user_agent: RonBot (http://www.theverseoftheday.info)'); > > Ron > > The Verse of the Day > “Encourageme

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread 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 ; php-gen

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread a...@ashleysheridan.co.uk
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" Date: Thu, Nov 2

[PHP] Fw: Spoofing user_agent

2010-11-25 Thread Ron Piggott
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 generat

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

2010-11-25 Thread 肖晗
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 *extra