php-general Digest 18 Jan 2008 08:34:18 -0000 Issue 5242

2008-01-18 Thread php-general-digest-help
php-general Digest 18 Jan 2008 08:34:18 - Issue 5242 Topics (messages 267507 through 267531): Re: Count 267507 by: Mike Smith Re: SMTP vs mail() 267508 by: Richard Lynch 267514 by: Manuel Lemos Re: New years resolution: To get serious with my programming! Anyone

Re: [PHP] New years resolution: To get serious with my programming! Anyone wanna help? :)

2008-01-18 Thread Zoltán Németh
2008. 01. 17, csütörtök keltezéssel 15.01-kor Richard Lynch ezt írta: On Thu, January 17, 2008 2:06 am, Jochem Maas wrote: Richard Lynch schreef: On Wed, January 16, 2008 9:57 am, Daniel Brown wrote: echo($h.\n.$i.\n); // echo is a construct, but as expected, can use parentheses()

Re: [PHP] Encryption failing

2008-01-18 Thread Zoltán Németh
2008. 01. 17, csütörtök keltezéssel 12.14-kor Ken Kixmoeller -- reply to [EMAIL PROTECTED] ezt írta: (forgot to copy the list) On Jan 16, 2008, at 5:08 PM, Richard Lynch wrote: Is it possible that 4% of the time, you have spaces on the start/end of the string, which get trimmed before

Re: [PHP] Looks like a bug with Smarty

2008-01-18 Thread GoWtHaM NaRiSiPaLli
got the answer from you clive :) Thanks On Jan 18, 2008 1:02 PM, clive [EMAIL PROTECTED] wrote: if ($question == 'php') domail('phplist',$question); if ($question == 'smarty') domail('smartylist',$question); Hi All, I using html_options smarty tag to output an associative

Re: [PHP] A stupid question?

2008-01-18 Thread Jochem Maas
Shelley Shyan schreef: Hi all, Maybe this is a somehow stupid question. I want to know how php could know whether session_start() has been called, that is, whether session has been started. you can do it by checking the return value of session_id() if it's empty you can be pretty sure

Re: [PHP] QNX build

2008-01-18 Thread Jochem Maas
Richard schreef: Jochem Maas wrote : Richard schreef: Hi, After installing PHP on a Windows machine I see a very small PHP-executable and several extension dll's that can be loaded. When I build PHP on a QNX machine I get one huge executable of 8.6 MB. Is it possible to build something

Re: [PHP] snmp_set_valueretrieval depends on what?

2008-01-18 Thread Per Jessen
Richard Lynch wrote: fumble-fingers! http://lxr.php.net/ Do you know if that site is up-to-date and if it includes php extensions?? I searched for 'snmp_set_valueretrieval' and got nothing, yet that function is clearly defined in the SNMP extension. In 4.3.9 and 5.2.3 (just two versions I

Re: [PHP] QNX build

2008-01-18 Thread Richard
Jochem Maas wrote : Richard schreef: Hi, After installing PHP on a Windows machine I see a very small PHP-executable and several extension dll's that can be loaded. When I build PHP on a QNX machine I get one huge executable of 8.6 MB. Is it possible to build something similar to the

[PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Javier Huerta
I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv. The email address they enter is in this type of format [EMAIL

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Per Jessen
Richard Heyes wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv. The email address they enter is in this type

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Richard Heyes
I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv. The email address they enter is in this type of format [EMAIL

Re: [PHP] Problem with ocasional blank value

2008-01-18 Thread Jochem Maas
Joey schreef: Hi All, I have a problem that the below code which is supposed to display a random image and on occasion it shows NO image. I'm not sure what is happening. This is running on linux just in case that makes any difference. % $image_folder = new_random/; $dir =

[PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Javier Huerta
Thanks for all of your suggestions which all point to using Catpcha. I have actually already implemented Capchta and they are still getting around it. Even if they are entering it manually rather than via a bot, is there a way to check if the email address is of a specific format and if so

Re: [PHP] A stupid question?

2008-01-18 Thread Eric Butera
On Jan 18, 2008 9:31 AM, Jochem Maas [EMAIL PROTECTED] wrote: Eric Butera schreef: On Jan 17, 2008 9:54 PM, Shelley Shyan [EMAIL PROTECTED] wrote: Hi all, Maybe this is a somehow stupid question. I want to know how php could know whether session_start() has been called, that is,

Re: [PHP] A stupid question?

2008-01-18 Thread Jochem Maas
Eric Butera schreef: On Jan 18, 2008 9:31 AM, Jochem Maas [EMAIL PROTECTED] wrote: Eric Butera schreef: On Jan 17, 2008 9:54 PM, Shelley Shyan [EMAIL PROTECTED] wrote: Hi all, Maybe this is a somehow stupid question. I want to know how php could know whether session_start() has been called,

[PHP] Bad company This Weekend!

2008-01-18 Thread Maximus Entertainment
Bad Company – This Saturday Night in Milwaukee, WI Bad Company, with Brian Howe, is performing at the Richfield Chalet in Hubertus, WI this Saturday Night – January 19, 2008. Along with Bad Company's highly acclaimed 1993 live CD What You Hear Is What You Get - The Best of Bad Company - Live

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Javier Huerta
The bad thing about using only registered users is that we have this form set in our Smart classrooms to give us feedback about any issues they encountered while using the AV equipment. We have to keep the form open to non-university users. When I implemented the Captcha code, I thought that

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Wolf
Eric Butera [EMAIL PROTECTED] wrote: On Jan 18, 2008 9:50 AM, Javier Huerta [EMAIL PROTECTED] wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting

Re: [PHP] A stupid question?

2008-01-18 Thread Eric Butera
On Jan 18, 2008 10:49 AM, Jochem Maas [EMAIL PROTECTED] wrote: Eric Butera schreef: On Jan 18, 2008 9:31 AM, Jochem Maas [EMAIL PROTECTED] wrote: Eric Butera schreef: On Jan 17, 2008 9:54 PM, Shelley Shyan [EMAIL PROTECTED] wrote: Hi all, Maybe this is a somehow stupid question.

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Eric Butera
On Jan 18, 2008 10:55 AM, Javier Huerta [EMAIL PROTECTED] wrote: Thanks for all of your suggestions which all point to using Catpcha. I have actually already implemented Capchta and they are still getting around it. Even if they are entering it manually rather than via a bot, is there a way

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Richard Heyes
Or even a simple text CAPTCHA What is 16 divided by 4?. Careful though, I made a class which converted numbers to text (TextualNumbers IIRC) and it got broken. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software that eases your support burden and helps

[PHP] Problem with ocasional blank value

2008-01-18 Thread Joey
Hi All, I have a problem that the below code which is supposed to display a random image and on occasion it shows NO image. I'm not sure what is happening. This is running on linux just in case that makes any difference. % $image_folder = new_random/; $dir = $_SERVER['DOCUMENT_ROOT'] .

Re: [PHP] A stupid question?

2008-01-18 Thread Jochem Maas
Eric Butera schreef: On Jan 17, 2008 9:54 PM, Shelley Shyan [EMAIL PROTECTED] wrote: Hi all, Maybe this is a somehow stupid question. I want to know how php could know whether session_start() has been called, that is, whether session has been started. I Googled, but got little help. Thank

[PHP] Re: Match anything between two that is not a except if it is escaped...

2008-01-18 Thread Nikolay Ananiev
This is for double quotes: '/[^]*(?:.[^]*)*/' this is for single: '/\'[^\']*(?:.[^\']*)*\'/' i took these from the smarty compiler class. mathieu leddet [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi everyone, I am struggling with regular expression

Re: [PHP] QNX build

2008-01-18 Thread Richard
Jochem Maas was thinking very hard : Richard schreef: Jochem Maas wrote : Richard schreef: Hi, After installing PHP on a Windows machine I see a very small PHP-executable and several extension dll's that can be loaded. When I build PHP on a QNX machine I get one huge executable of 8.6 MB.

[PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Manuel Lemos
Hello, on 01/18/2008 01:55 PM Javier Huerta said the following: Thanks for all of your suggestions which all point to using Catpcha. I have actually already implemented Capchta and they are still getting around it. Even if they are entering it manually rather than via a bot, is there a way

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Stut
On 18 Jan 2008, at 16:01, Eric Butera wrote: On Jan 18, 2008 10:55 AM, Javier Huerta [EMAIL PROTECTED] wrote: Thanks for all of your suggestions which all point to using Catpcha. I have actually already implemented Capchta and they are still getting around it. Even if they are entering it

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Eric Butera
On Jan 18, 2008 9:50 AM, Javier Huerta [EMAIL PROTECTED] wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv. The

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Silvio Porcellana
Javier Huerta wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv. The email address they enter is in this type of

Re: [PHP] SimpleXML addChild() namespace problem

2008-01-18 Thread Nathan Nobbe
On Jan 18, 2008 12:04 PM, Carole E. Mah [EMAIL PROTECTED] wrote: I did exactly this, and still got: ?xml version=1.0 encoding=UTF-8? rss xmlns:itunes=http://www.itunes.com/dtds/podcast-1.0.dtd; version= 2.0 channel !-- snipping, some elements omitted ... --

Re: [PHP] Re: Bad company This Weekend!

2008-01-18 Thread Casey
On Jan 18, 2008 9:15 AM, Colin Guthrie [EMAIL PROTECTED] wrote: Maximus Entertainment wrote: _Bad Company – This Saturday Night in Milwaukee, WI_ Great. That's super relevant for 99.9% of this mailing list. Anyone near Milwaukee should go along and punch one of the promoters :D

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Javier Huerta
Hi Javier! At my work we had tons of issues with spam bots randomly hitting our contact forms. They would inject all sorts of random garbage along with the standard email header injection attempts to try and send mass mails through the forms. We've worked on a standardized form

[PHP] Re: Bad company This Weekend!

2008-01-18 Thread Colin Guthrie
Maximus Entertainment wrote: _Bad Company – This Saturday Night in Milwaukee, WI_ Great. That's super relevant for 99.9% of this mailing list. Anyone near Milwaukee should go along and punch one of the promoters :D -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: Bad company This Weekend!

2008-01-18 Thread Richard Lynch
On Fri, January 18, 2008 11:15 am, Colin Guthrie wrote: Maximus Entertainment wrote: _Bad Company – This Saturday Night in Milwaukee, WI_ Great. That's super relevant for 99.9% of this mailing list. Anyone near Milwaukee should go along and punch one of the promoters :D Aw, come

Re: [PHP] Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-18 Thread Daniel Brown
On Jan 18, 2008 4:52 PM, Jim Lucas [EMAIL PROTECTED] wrote: PostTrack [Dan Brown] wrote: 514 (100%) 975244 (100%) EVERYONE 69(13.4%) 92431(9.5%) Richard Lynch [EMAIL PROTECTED] 9(1.8%) 22245(2.3%) Wolf [EMAIL PROTECTED]

Re: [PHP] Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-18 Thread Jim Lucas
PostTrack [Dan Brown] wrote: 514 (100%) 975244 (100%) EVERYONE 69(13.4%) 92431(9.5%) Richard Lynch [EMAIL PROTECTED] 9(1.8%) 22245(2.3%) Wolf [EMAIL PROTECTED] 5(1%) 8497(0.9%) Andrew Ballard

[PHP] Re: system command runs application, but application doesn't work correctly

2008-01-18 Thread Apple7777
Daniel Brown parasane at gmail.com writes: On Jan 17, 2008 6:48 PM, Apple applepro at gmail.com wrote: Another strange thing is I run ImageMajick with system() in a lot of scripts on the same server and everything works fine. What is the problem? Do you have any idea?

Re: [PHP] Foreach

2008-01-18 Thread mike
On 1/18/08, Eric Butera [EMAIL PROTECTED] wrote: Nonetheless as I keep re-iterating, people will copy and paste this stuff as is because they don't know better. It is the responsibility of people writing the answers to make sure their code is validated and as secure as possible unless there

[PHP] Re: Bad company This Weekend!

2008-01-18 Thread Colin Guthrie
Richard Lynch wrote: On Fri, January 18, 2008 11:15 am, Colin Guthrie wrote: Maximus Entertainment wrote: _Bad Company – This Saturday Night in Milwaukee, WI_ Great. That's super relevant for 99.9% of this mailing list. Anyone near Milwaukee should go along and punch one of the

RE: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Andrés Robinet
-Original Message- From: Andrew Ballard [mailto:[EMAIL PROTECTED] Sent: Friday, January 18, 2008 6:10 PM To: PHP General list Subject: Re: [PHP] Question About Blocking Email Addresses in Forms On Jan 18, 2008 10:18 AM, Richard Heyes [EMAIL PROTECTED] wrote: I am wondering if

RE: [PHP] Expand variable in comparison

2008-01-18 Thread Andrés Robinet
-Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marcus Sent: Friday, January 18, 2008 4:51 PM To: php-general@lists.php.net Subject: [PHP] Expand variable in comparison Hi! Is there any way to get the following snippet returning a true? ... $this-var

RE: [PHP] Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-18 Thread Andrés Robinet
Hey, your script doesn't like me, is it that you need quoted_printable_decode? =?iso-8859-1?Q?Andr=E9s_Robinet?= Rob -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday, January 18, 2008 7:38 PM To: PostTrack [Dan Brown]; php-general@lists.php.net Subject:

Re: [PHP] Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-18 Thread Richard Lynch
Let printf handle it for you. :-) On Fri, January 18, 2008 3:52 pm, Jim Lucas wrote: PostTrack [Dan Brown] wrote: 514 (100%) 975244 (100%) EVERYONE 69(13.4%) 92431(9.5%) Richard Lynch [EMAIL PROTECTED] 9(1.8%) 22245(2.3%) Wolf

Re: [PHP] Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-18 Thread Jim Lucas
Daniel Brown wrote: On Jan 18, 2008 4:52 PM, Jim Lucas [EMAIL PROTECTED] wrote: PostTrack [Dan Brown] wrote: 514 (100%) 975244 (100%) EVERYONE 69(13.4%) 92431(9.5%) Richard Lynch [EMAIL PROTECTED] 9(1.8%) 22245(2.3%) Wolf

[PHP] Re: Expand variable in comparison

2008-01-18 Thread Marcus
Andrés Robinet wrote: -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marcus Sent: Friday, January 18, 2008 4:51 PM To: php-general@lists.php.net Subject: [PHP] Expand variable in comparison Hi! Is there any way to get the following snippet returning a true? ...

Re: [PHP] Foreach

2008-01-18 Thread Eric Butera
On Jan 18, 2008 5:06 PM, mike [EMAIL PROTECTED] wrote: On 1/18/08, Eric Butera [EMAIL PROTECTED] wrote: Nonetheless as I keep re-iterating, people will copy and paste this stuff as is because they don't know better. It is the responsibility of people writing the answers to make sure their

Re: [PHP] Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-18 Thread Nathan Nobbe
On Jan 18, 2008 7:40 PM, Jim Lucas [EMAIL PROTECTED] wrote: Plus, what about a tool/site that would allow me to view a graph of the entire of the list/archive? A graph including, but not limited to post/person post/email address posts/day posts/country etc... Thanks -- Jim Lucas i

Re: [PHP] Re: system command runs application, but application doesn't work correctly

2008-01-18 Thread Daniel Brown
On Jan 18, 2008 5:49 PM, Apple [EMAIL PROTECTED] wrote: Daniel Brown parasane at gmail.com writes: On Jan 17, 2008 6:48 PM, Apple applepro at gmail.com wrote: Another strange thing is I run ImageMajick with system() in a lot of scripts on the same server and everything

Re: [PHP] Looks like a bug with Smarty

2008-01-18 Thread Richard Lynch
You'll have to take this up with the Smarty folks, as it's very smarty-specific, and not (PHP-)General at all... On Fri, January 18, 2008 12:16 am, GoWtHaM NaRiSiPaLli wrote: Hi All, I using html_options smarty tag to output an associative array in select drop down. Here a sample

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Richard Lynch
On Fri, January 18, 2008 8:50 am, Javier Huerta wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv. The email

Re: [PHP] SimpleXML addChild() namespace problem

2008-01-18 Thread Carole E. Mah
On Jan 18, 2008 12:22 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: Are you trying to read an existing document into a SimpleXMLElement, or are you trying to create a SimpleXMLElement instance and generate a document from that? My impression was you were trying to do the later; please clarify and

Re: [PHP] Foreach

2008-01-18 Thread Pastor Steve
Yes, each variable is an array. foreach works individually with no problems. The problem I am having is getting both to update the table in MySQL. It will update $i three times with no problem, however, it will only update $t with the last value in the array. Name is a checkbox and contains the

Re: [PHP] Problem with ocasional blank value

2008-01-18 Thread Eric Butera
On Jan 18, 2008 10:12 AM, Joey [EMAIL PROTECTED] wrote: Hi All, I have a problem that the below code which is supposed to display a random image and on occasion it shows NO image. I'm not sure what is happening. This is running on linux just in case that makes any difference. %

[PHP] FPDF

2008-01-18 Thread Balasubramanyam Ananthamurthy
Hello, I'm fetching content from database and printing it on the browser. I want add an link on the same page Click here to view it in PDF. Is it possible to do it using FPDF? If yes, how can I do this? Thank you. Balu -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Foreach

2008-01-18 Thread Andrés Robinet
-Original Message- From: Eric Butera [mailto:[EMAIL PROTECTED] Sent: Friday, January 18, 2008 11:21 PM To: mike Cc: PHP eMail List Subject: Re: [PHP] Foreach On Jan 18, 2008 5:06 PM, mike [EMAIL PROTECTED] wrote: On 1/18/08, Eric Butera [EMAIL PROTECTED] wrote: Nonetheless

RE: [PHP] Re: Expand variable in comparison

2008-01-18 Thread Andrés Robinet
-Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marcus Sent: Friday, January 18, 2008 9:56 PM To: php-general@lists.php.net Subject: [PHP] Re: Expand variable in comparison Andrés Robinet wrote: -Original Message- From: news [mailto:[EMAIL

Re: [PHP] Foreach

2008-01-18 Thread Richard Lynch
If you are trying to keep the names and orders in parallel you need to do something not unlike: while (list($key, $name) = each($names)){ $order = $orders[$key]; $query = update whatever set order = $order where name = '$name'; } This completely ignores security and error checking in the

Re: [PHP] A stupid question?

2008-01-18 Thread Richard Lynch
if (session_id()){ //no session yet } else{ //we have lift-off! } On Thu, January 17, 2008 8:54 pm, Shelley Shyan wrote: Hi all, Maybe this is a somehow stupid question. I want to know how php could know whether session_start() has been called, that is, whether session has been started.

Re: [PHP] Re: Bad company This Weekend!

2008-01-18 Thread Børge Holen
On Friday 18 January 2008 21:44:26 Richard Lynch wrote: On Fri, January 18, 2008 11:15 am, Colin Guthrie wrote: Maximus Entertainment wrote: _Bad Company – This Saturday Night in Milwaukee, WI_ Great. That's super relevant for 99.9% of this mailing list. Anyone near Milwaukee

[PHP] Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-18 Thread PostTrack [Dan Brown]
Posting Summary for PHP-General List Week Ending: Friday, 18 January, 2008 Messages| Bytes | Sender +-+-- 514 (100%) 975244 (100%) EVERYONE 69(13.4%) 92431

Re: [PHP] Problem with ocasional blank value

2008-01-18 Thread Richard Lynch
On Fri, January 18, 2008 9:12 am, Joey wrote: I have a problem that the below code which is supposed to display a random image and on occasion it shows NO image. I'm not sure what is happening. This is running on linux just in case that makes any difference. % $image_folder =

Re: [PHP] FPDF

2008-01-18 Thread Richard Lynch
On Fri, January 18, 2008 12:14 pm, Balasubramanyam Ananthamurthy wrote: I'm fetching content from database and printing it on the browser. I want add an link on the same page Click here to view it in PDF. Is it possible to do it using FPDF? If yes, how can I do this? Actually, FPDF goes even

Re: [PHP] Foreach

2008-01-18 Thread Wolf
Steve, This should work as some basic sudo code. You are running into a number of issues with your usage of the foreach as it sounds like what you really want to do is walk through one array and grab the corresponding value from another. ?php // First check to make sure you are getting both

Re: [PHP] Foreach

2008-01-18 Thread Eric Butera
On Jan 18, 2008 11:38 AM, Wolf [EMAIL PROTECTED] wrote: Steve, This should work as some basic sudo code. You are running into a number of issues with your usage of the foreach as it sounds like what you really want to do is walk through one array and grab the corresponding value from

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Javier Huerta
What does your form actually do? Does it email you, email them, stick something in a DB? What? The form sends an email to a listserv and cc's the sender and then enters data into a database. Regardless, if they're entering a nonsense email address and are managing to get your script to

Re: [PHP] SimpleXML addChild() namespace problem

2008-01-18 Thread Carole E. Mah
based upon information from bug #43221, if you define the namespace beforehand it will work. ?php $xml = new SimpleXMLElement('root xmlns:itunes=http://apple.com/'); $n = $xml-addChild(subtitle, Musical Mockery, http://apple.com;); print_r($xml-asXml()); ? produces: ?xml version=1.0? root

[PHP] Re: Match anything between two that is not a except if it is escaped...

2008-01-18 Thread Al
A good habit is to use the hex equivalent character for any character that has a special meaning in pregex expressions. e.g., space = \x20 / = \x2f . = \x2e double quotes = \x3d etc. Then you won't have this type of problem and you won't have to use stuff like this: This is for double

[PHP] Re: Expand variable in comparison

2008-01-18 Thread Marcus
Andrés Robinet wrote: -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marcus Sent: Friday, January 18, 2008 9:56 PM To: php-general@lists.php.net Subject: [PHP] Re: Expand variable in comparison Andrés Robinet wrote: -Original Message- From: news

Re: [PHP] Re: system command runs application, but application doesn't work correctly

2008-01-18 Thread Daniel Brown
On Jan 17, 2008 6:48 PM, Apple [EMAIL PROTECTED] wrote: Another strange thing is I run ImageMajick with system() in a lot of scripts on the same server and everything works fine. What is the problem? Do you have any idea? Does the UID (or at least GID) under which PHP is being

Re: [PHP] Foreach

2008-01-18 Thread Wolf
Eric Butera [EMAIL PROTECTED] wrote: On Jan 18, 2008 11:38 AM, Wolf [EMAIL PROTECTED] wrote: Steve, This should work as some basic sudo code. You are running into a number of issues with your usage of the foreach as it sounds like what you really want to do is walk through one

Re: [PHP] A stupid question?

2008-01-18 Thread Eric Butera
On Jan 17, 2008 9:54 PM, Shelley Shyan [EMAIL PROTECTED] wrote: Hi all, Maybe this is a somehow stupid question. I want to know how php could know whether session_start() has been called, that is, whether session has been started. I Googled, but got little help. Thank you for help! Any

[PHP] Re: system command runs application, but application doesn't work correctly

2008-01-18 Thread Apple7777
Daniel Brown parasane at gmail.com writes: Does the UID (or at least GID) under which PHP is being executed have permissions to write to the area you're trying to save the file? Similar to above, does it have the correct permissions to read the incoming file? Daniel, I'm not sure

Re: [PHP] Problem with ocasional blank value

2008-01-18 Thread Jim Lucas
Joey wrote: Hi All, I have a problem that the below code which is supposed to display a random image and on occasion it shows NO image. I'm not sure what is happening. This is running on linux just in case that makes any difference. % $image_folder = new_random/; $dir =

Re: [PHP] Foreach

2008-01-18 Thread mike
On 1/18/08, Andrés Robinet [EMAIL PROTECTED] wrote: Please, don't get me wrong, I'm just curious, how does the server know when the browser is closed? Do you use javascript (AJAX) or something to notify the server? it's a browser thing, not a server thing. the browser will forget the session

Re: [PHP] Foreach

2008-01-18 Thread Zoltán Németh
2008. 01. 18, péntek keltezéssel 12.10-kor Wolf ezt írta: Eric Butera [EMAIL PROTECTED] wrote: On Jan 18, 2008 11:38 AM, Wolf [EMAIL PROTECTED] wrote: Steve, This should work as some basic sudo code. You are running into a number of issues with your usage of the foreach as

Re: [PHP] Re: Match anything between two that is not a except if it is escaped...

2008-01-18 Thread Paul Scott
On Fri, 2008-01-18 at 12:28 +0200, Nikolay Ananiev wrote: This is for double quotes: '/[^]*(?:.[^]*)*/' this is for single: '/\'[^\']*(?:.[^\']*)*\'/' i took these from the smarty compiler class. Has anyone started a commonly used PCRE Regexp library? It could be

Re: [PHP] QNX build

2008-01-18 Thread Jochem Maas
Richard schreef: Jochem Maas was thinking very hard : Richard schreef: Jochem Maas wrote : Richard schreef: Hi, After installing PHP on a Windows machine I see a very small PHP-executable and several extension dll's that can be loaded. When I build PHP on a QNX machine I get one huge

Re: [PHP] Foreach

2008-01-18 Thread Eric Butera
On Jan 18, 2008 12:20 PM, Zoltán Németh [EMAIL PROTECTED] wrote: 2008. 01. 18, péntek keltezéssel 12.10-kor Wolf ezt írta: Eric Butera [EMAIL PROTECTED] wrote: On Jan 18, 2008 11:38 AM, Wolf [EMAIL PROTECTED] wrote: Steve, This should work as some basic sudo code. You are

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Stephen
Javier Huerta wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv. The email address they enter is in this type of

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Per Jessen
Javier Huerta wrote: Thanks for all of your suggestions which all point to using Catpcha. I have actually already implemented Capchta and they are still getting around it. Even if they are entering it manually rather than via a bot, is there a way to check if the email address is of a

Re: [PHP] SimpleXML addChild() namespace problem

2008-01-18 Thread Nathan Nobbe
On Jan 18, 2008 2:48 PM, Carole E. Mah [EMAIL PROTECTED] wrote: On Jan 18, 2008 12:22 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: Are you trying to read an existing document into a SimpleXMLElement, or are you trying to create a SimpleXMLElement instance and generate a document from that?

Re: [PHP] Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-18 Thread Eric Butera
On Jan 18, 2008 4:52 PM, Jim Lucas [EMAIL PROTECTED] wrote: PostTrack [Dan Brown] wrote: 514 (100%) 975244 (100%) EVERYONE 69(13.4%) 92431(9.5%) Richard Lynch [EMAIL PROTECTED] 9(1.8%) 22245(2.3%) Wolf [EMAIL PROTECTED]

Re: [PHP] Foreach

2008-01-18 Thread Eric Butera
On Jan 18, 2008 2:55 PM, Pastor Steve [EMAIL PROTECTED] wrote: Here is the output, thanks! Array ( [page_name] = [image] = spacer.gif [text_head] = [name] = Array ( [0] = Holiday Inn [1] = The Rib Room [2] = Winner ) [order] = Array ( [0] = 3 [1] = 3 [2] = 3 ) [add-page] = Create Page )

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Richard Lynch
On Fri, January 18, 2008 9:31 am, Richard Heyes wrote: Or even a simple text CAPTCHA What is 16 divided by 4?. Careful though, I made a class which converted numbers to text (TextualNumbers IIRC) and it got broken. Almost any CAPTCHA can be broken if somebody wants it badly enough. Some are

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Richard Lynch
On Fri, January 18, 2008 10:41 am, Per Jessen wrote: 2. check that the domain exists and has an MX. I believe this will foul you up... I *think* many domains just use their regular domain as MX if there is no MX. And the Bad Guy can easily change tactics to use [EMAIL PROTECTED] or whatever,

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Andrew Ballard
On Jan 18, 2008 10:18 AM, Richard Heyes [EMAIL PROTECTED] wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv.

Re: [PHP] Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-18 Thread Nathan Nobbe
On Jan 18, 2008 4:56 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Jan 18, 2008 4:52 PM, Jim Lucas [EMAIL PROTECTED] wrote: PostTrack [Dan Brown] wrote: 514 (100%) 975244 (100%) EVERYONE 69(13.4%) 92431(9.5%) Richard Lynch [EMAIL PROTECTED]

RE: [PHP] Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-18 Thread Jay Blanchard
Wow, I wasn't on the list. And I top posted. I really suck. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of PostTrack [Dan Brown] Sent: Friday, January 18, 2008 3:01 PM To: php-general@lists.php.net Subject: [PHP] Posting Summary for Week Ending 18