Re: [PHP] Re: With regard to: [PHP] ASCII Captcha

2008-08-29 Thread Jim Lucas
Robert Cummings wrote: On Sat, 2008-08-30 at 00:01 -0400, Eric Gorr wrote: No, I will not help you troll. But, I certainly cannot prevent you from doing so. Hopefully the list moderators will shut you down. This is PHP General. We discuss PHP and related issues. CAPTCHA is certainly an are

Re: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
On Sat, 2008-08-30 at 00:25 -0400, Eric Gorr wrote: > On Aug 30, 2008, at 12:19 AM, Robert Cummings wrote: > > > On Sat, 2008-08-30 at 00:05 -0400, Eric Gorr wrote: > >> Oh, here's an interesting story: > >> > >> http://bits.blogs.nytimes.com/2008/03/13/breaking-google-captchas-for-3-a-day/ > > >

Re: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
On Sat, 2008-08-30 at 00:05 -0400, Eric Gorr wrote: > Oh, here's an interesting story: > > http://bits.blogs.nytimes.com/2008/03/13/breaking-google-captchas-for-3-a-day/ This was written by a journalist, not a technology expert. Even the person to which he was talking needed to clarify the meanin

Re: [PHP] Re: With regard to: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
On Sat, 2008-08-30 at 00:01 -0400, Eric Gorr wrote: > No, I will not help you troll. But, I certainly cannot prevent you > from doing so. > > Hopefully the list moderators will shut you down. This is PHP General. We discuss PHP and related issues. CAPTCHA is certainly an area of interest to ma

Re: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
This is called the "Relay Attack" and is not a crack. Cheers, Rob. On Fri, 2008-08-29 at 23:57 -0400, Eric Gorr wrote: > p.s. I cannot claim credit for this piece of info and since you will > reject out of hand anything I might say, I am quoting it > directlybut thought you might be int

Re: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 23:39 -0400, Eric Gorr wrote: > On Aug 29, 2008, at 11:31 PM, Robert Cummings wrote: > > > On Fri, 2008-08-29 at 23:24 -0400, Eric Gorr wrote: > >> On Aug 29, 2008, at 11:16 PM, Robert Cummings wrote: > >> > >>> On Fri, 2008-08-29 at 23:05 -0400, Eric Gorr wrote: > On Au

[PHP] Re: With regard to: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 23:37 -0400, Eric Gorr wrote: > Personally, I believe that PHP General should dedicated to the > discussion of PHP. For whatever reason, Robert Cummings wants to have > a protracted discussion which has nothing to do with PHP. As this is > clearly turning into a protract

Re: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 23:27 -0400, Eric Gorr wrote: > > btw, why are you bothering the mailing list with this pointless > conversation? For the archives. This way the arguments for and against may be known and the next time a trolling idiot makes a run for gold I can direct them to the archives.

Re: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 23:24 -0400, Eric Gorr wrote: > On Aug 29, 2008, at 11:16 PM, Robert Cummings wrote: > > > On Fri, 2008-08-29 at 23:05 -0400, Eric Gorr wrote: > >> On Aug 29, 2008, at 9:40 PM, Robert Cummings wrote: > >> > >>> On Fri, 2008-08-29 at 17:28 -0400, Eric Gorr wrote: > On Aug

Re: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 23:05 -0400, Eric Gorr wrote: > On Aug 29, 2008, at 9:40 PM, Robert Cummings wrote: > > > On Fri, 2008-08-29 at 17:28 -0400, Eric Gorr wrote: > >> On Aug 29, 2008, at 5:19 PM, Robert Cummings wrote: > >> > >>> On Fri, 2008-08-29 at 16:54 -0400, Eric Gorr wrote: > On Aug

[PHP] Php installation

2008-08-29 Thread It flance
Hi all, I'm using Fedora 8. I installed php, mysql and apache. Now i can run a script connecting to a database from terminal but not from browser. Any suggestion? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 21:38 -0400, Robert Cummings wrote: > On Fri, 2008-08-29 at 23:51 +0200, Jochem Maas wrote: > > > > on behalf of the list, please accept our "Crayon of the Week" award. > > *lol* I have seen Crayon in months. Err... haven't! :) > > Cheers, > Rob. -- http://www.interji

Re: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 23:51 +0200, Jochem Maas wrote: > > on behalf of the list, please accept our "Crayon of the Week" award. *lol* I have seen Crayon in months. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.

Re: [PHP] Converting JPG to Windows BMP

2008-08-29 Thread Jochem Maas
Edward Diener schreef: I have a JPG file on the server which I want to convert to a Windows BMP file. How can I do this in PHP ? I did not see a GD image function for doing this. looks like you can do it using imagemagick: http://www.imagemagick.org/Usage/formats/#bmp -- PHP General Mai

Re: [PHP] Converting JPG to Windows BMP

2008-08-29 Thread mike
If I recall gd doesn't support bmp. However that was probably long before gd2 and I started using imagemagick anyway and have since. You should look into it especially if php doesn't have support via gd. On Aug 29, 2008, at 5:06 PM, "Dan Joseph" <[EMAIL PROTECTED]> wrote: On Fri, Aug 29, 200

Re: [PHP] Converting JPG to Windows BMP

2008-08-29 Thread Dan Joseph
On Fri, Aug 29, 2008 at 8:02 PM, Edward Diener <[EMAIL PROTECTED]>wrote: > I have a JPG file on the server which I want to convert to a Windows BMP > file. How can I do this in PHP ? I did not see a GD image function for doing > this. > > -- > PHP General Mailing List (http://www.php.net/) > To un

Re: [PHP] Converting JPG to Windows BMP

2008-08-29 Thread Dan Joseph
On Fri, Aug 29, 2008 at 8:02 PM, Edward Diener <[EMAIL PROTECTED]>wrote: > I have a JPG file on the server which I want to convert to a Windows BMP > file. How can I do this in PHP ? I did not see a GD image function for doing > this. > > -- > PHP General Mailing List (http://www.php.net/) > To un

[PHP] Converting JPG to Windows BMP

2008-08-29 Thread Edward Diener
I have a JPG file on the server which I want to convert to a Windows BMP file. How can I do this in PHP ? I did not see a GD image function for doing this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checking for http://

2008-08-29 Thread Gergely Hodicska
You could use substr() (www.php.net/substr) strncmp is better and faster for this purpose. Best Regards, Felhő -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ASCII Captcha

2008-08-29 Thread Eric Gorr
On Aug 29, 2008, at 6:56 PM, Stut wrote: On 29 Aug 2008, at 22:39, Jochem Maas wrote: in the mean time, here's wishing more clean water and internet access for everyone (and less bombs). Hear hear, except that I'd put food above internet access. Indeed. Although, I might include shelter, c

Re: [PHP] ASCII Captcha

2008-08-29 Thread Stut
On 29 Aug 2008, at 22:07, tedd wrote: At 9:32 PM +0100 8/29/08, Stut wrote: That's ultimate accessibility, assuming it supports all types of telephone, but it's also a major expense needing 24/7 coverage. Not something my company of 5 people could hope to support on a free-to- use site. -S

Re: [PHP] ASCII Captcha

2008-08-29 Thread Stut
On 29 Aug 2008, at 22:39, Jochem Maas wrote: in the mean time, here's wishing more clean water and internet access for everyone (and less bombs). Hear hear, except that I'd put food above internet access. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] newbie Q: How to say, "if the fileNAME is equal to...", or better yet, "if the fileNAME ends with '.jpg'"?

2008-08-29 Thread Jochem Maas
James Ausmus schreef: On Tue, Aug 26, 2008 at 10:08 AM, Ford, Mike <[EMAIL PROTECTED]> wrote: On 26 August 2008 17:15, James Ausmus advised: On Tue, Aug 26, 2008 at 8:57 AM, Ford, Mike <[EMAIL PROTECTED]> wrote: On 25 August 2008 00:54, Govinda advised: Personally, I might be tempted to d

Re: [PHP] ASCII Captcha

2008-08-29 Thread Jochem Maas
Eric Gorr schreef: On Aug 29, 2008, at 5:51 PM, Jochem Maas wrote: Eric Gorr schreef: On Aug 29, 2008, at 5:19 PM, tedd wrote: ... There is no documentation anywhere which claims, as you do, that it is impossible to design a captcha which deals with accessibility issues. a lack of evide

Re: [PHP] Problem with HTML special characters

2008-08-29 Thread Jochem Maas
Michelle Konzack schreef: * Do not Cc: me, because I READ THIS LIST, if I write here * *Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe*

Re: [PHP] ASCII Captcha

2008-08-29 Thread Jochem Maas
Eric Gorr schreef: On Aug 29, 2008, at 5:19 PM, tedd wrote: ... There is no documentation anywhere which claims, as you do, that it is impossible to design a captcha which deals with accessibility issues. a lack of evidence proving the impossible ... there is a logic flaw there somewhere.

Re: [PHP] ASCII Captcha

2008-08-29 Thread Jochem Maas
tedd schreef: At 9:32 PM +0100 8/29/08, Stut wrote: That's ultimate accessibility, assuming it supports all types of telephone, but it's also a major expense needing 24/7 coverage. Not something my company of 5 people could hope to support on a free-to-use site. -Stut -Stut: I hesitated b

Re: [PHP] ASCII Captcha

2008-08-29 Thread Eric Gorr
On Aug 29, 2008, at 5:19 PM, tedd wrote: At 4:37 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 4:21 PM, tedd wrote: At 3:27 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 3:15 PM, tedd wrote: Why should I have to explain something that is widely known and easy to find? S

Re: [PHP] Is this a bug?

2008-08-29 Thread Jochem Maas
T Lensselink schreef: Catalin Zamfir Alexandru, DATAGRAM SRL wrote: Hello guys, I've been stalking on the list for some time. Didn't have anything to report/talk, until now. I have a code like this, maybe you guys can reproduce it, with output buffering started: Echo 'something

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread tedd
At 11:10 PM +0200 8/29/08, Jochem Maas wrote: Mark Weaver schreef: Jochem put things back into perspective for me. I'm having that printed on a T-Shirt :-P Damn! You get more T-Shirts than me. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.c

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 4:37 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 4:21 PM, tedd wrote: At 3:27 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 3:15 PM, tedd wrote: Why should I have to explain something that is widely known and easy to find? So, I'm curious, what prevents a website from

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Jochem Maas
Mark Weaver schreef: tedd wrote: ... Try looking at "current" http://www.php.net/current Maybe that will help. not in the context of foreach() (I'll repeat the oneliner here because tedd's old and has a crap email client ;-): php -r '$r = array("a","b","c"); next($r); $K = key($r); fore

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 9:32 PM +0100 8/29/08, Stut wrote: That's ultimate accessibility, assuming it supports all types of telephone, but it's also a major expense needing 24/7 coverage. Not something my company of 5 people could hope to support on a free-to-use site. -Stut -Stut: I hesitated before writing t

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Jochem Maas
Micah Gersten schreef: You can rename the php executable and replace it with a shell script that logs what is run. true, but that still wouldn't get me the pipe, besides which one day someone will figure out that it's not the actual executable and either: 1. recompile and install php (shell sc

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Jochem Maas
David Otton schreef: 2008/8/29 Jochem Maas <[EMAIL PROTECTED]>: in what sense won't it work? the complete line is in the output of ps somewhere albeit after wildcard/shell expansion. With the pipe? I'd really like to see an example, beacuse I couldn't coax it out of ps, and it might be handy

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Jochem Maas
Robert Cummings schreef: On Fri, 2008-08-29 at 15:36 -0400, Robert Cummings wrote: On Fri, 2008-08-29 at 20:42 +0200, Jochem Maas wrote: Robert Cummings schreef: On Fri, 2008-08-29 at 04:48 +0200, Jochem Maas wrote: Micah Gersten schreef: I suggest creating a shell wrapper for PHP that will

Re: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 16:21 -0400, Eric Gorr wrote: > On Aug 29, 2008, at 4:09 PM, Robert Cummings wrote: > > > On Fri, 2008-08-29 at 15:52 -0400, Eric Gorr wrote: > >> On Aug 29, 2008, at 3:41 PM, Stut wrote: > >> > >>> I completely agree, but as far as I know it's only (and I use that > >>> word

Re: [PHP] ASCII Captcha

2008-08-29 Thread Eric Gorr
On Aug 29, 2008, at 4:21 PM, tedd wrote: At 3:27 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 3:15 PM, tedd wrote: Why should I have to explain something that is widely known and easy to find? So, I'm curious, what prevents a website from providing a good implementation of both

Re: [PHP] ASCII Captcha

2008-08-29 Thread Stut
On 29 Aug 2008, at 21:21, Eric Gorr wrote: On Aug 29, 2008, at 4:09 PM, Robert Cummings wrote: On Fri, 2008-08-29 at 15:52 -0400, Eric Gorr wrote: On Aug 29, 2008, at 3:41 PM, Stut wrote: I completely agree, but as far as I know it's only (and I use that word carefully) people with both visu

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 4:21 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 4:09 PM, Robert Cummings wrote: I cannot see any reason why a person with both visual and audio impairments could not be presented with a test to prove they are human. Go on, I'm all eyes and ears... describe such a test. http:/

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Mark Weaver
tedd wrote: At 2:40 PM -0400 8/29/08, Mark Weaver wrote: Hi All, Go figure... I sat down today to get some more work on my current project; I got to a certain point where I need to step through an array with a foreach loop. I found that I need to test for the current pointer position of the

Re: [PHP] ASCII Captcha

2008-08-29 Thread Stut
On 29 Aug 2008, at 20:52, Eric Gorr wrote: On Aug 29, 2008, at 3:41 PM, Stut wrote: I completely agree, but as far as I know it's only (and I use that word carefully) people with both visual and audio impairments that you cannot cater for. I cannot see any reason why a person with both vi

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 3:27 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 3:15 PM, tedd wrote: Why should I have to explain something that is widely known and easy to find? So, I'm curious, what prevents a website from providing a good implementation of both an audio and visual captcha to prevent acces

Re: [PHP] ASCII Captcha

2008-08-29 Thread Eric Gorr
On Aug 29, 2008, at 4:09 PM, Robert Cummings wrote: On Fri, 2008-08-29 at 15:52 -0400, Eric Gorr wrote: On Aug 29, 2008, at 3:41 PM, Stut wrote: I completely agree, but as far as I know it's only (and I use that word carefully) people with both visual and audio impairments that you cannot cat

[PHP] PHP Namespace issues

2008-08-29 Thread Bob Novak
Please bear with me if this is not the correct forum to post this issue. I am experiencing xml namespace errors while trying to use zillow.api with Apache 2.2.8 (Fedora), PHP 5.2.5. Dreamweaver 8 with MM-XSLTransform.class version 0.6.3 is acting as the intermediary to process the zillow.php and

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 8:41 PM +0100 8/29/08, Stut wrote: So, in essence your statement is assumptive, judgemental and sweeping. I certainly did not mean it to be taken assumptive or judgmental. --- Holding my hand up now as a lazy developer, the CAPTCHA I have on my sites is not accessible what with it being si

Re: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 15:52 -0400, Eric Gorr wrote: > On Aug 29, 2008, at 3:41 PM, Stut wrote: > > > I completely agree, but as far as I know it's only (and I use that > > word carefully) people with both visual and audio impairments that > > you cannot cater for. > > > I cannot see any reas

Re: [PHP] ASCII Captcha

2008-08-29 Thread Eric Gorr
On Aug 29, 2008, at 3:41 PM, Stut wrote: I completely agree, but as far as I know it's only (and I use that word carefully) people with both visual and audio impairments that you cannot cater for. I cannot see any reason why a person with both visual and audio impairments could not be p

Re: [PHP] ASCII Captcha

2008-08-29 Thread Stut
On 29 Aug 2008, at 19:03, tedd wrote: At 5:06 PM +0100 8/29/08, Stut wrote: On 29 Aug 2008, at 16:33, tedd wrote: I didn't mean to imply laziness, but now that you mentioned it -- on one hand we say that CAPTCHA is good enough until something else comes along, but on the other hand, because

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 15:36 -0400, Robert Cummings wrote: > On Fri, 2008-08-29 at 20:42 +0200, Jochem Maas wrote: > > Robert Cummings schreef: > > > On Fri, 2008-08-29 at 04:48 +0200, Jochem Maas wrote: > > >> Micah Gersten schreef: > > >>> I suggest creating a shell wrapper for PHP that will write

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Mark Weaver
Jochem Maas wrote: Mark Weaver schreef: Hi All, Go figure... I sat down today to get some more work on my current project; I got to a certain point where I need to step through an array with a foreach loop. I found that I need to test for the current pointer position of the array, but I have

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 20:42 +0200, Jochem Maas wrote: > Robert Cummings schreef: > > On Fri, 2008-08-29 at 04:48 +0200, Jochem Maas wrote: > >> Micah Gersten schreef: > >>> I suggest creating a shell wrapper for PHP that will write the command > >>> to a file for you and then call PHP with the appr

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Micah Gersten
You can rename the php executable and replace it with a shell script that logs what is run. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Jochem Maas wrote: > David Otton schreef: >> >> Quote the entire command as a string. Pass it to a shell script that >>

[PHP] Re: Debugging PHP scripts

2008-08-29 Thread Al
Edward Diener wrote: I am fairly new to PHP. What is the best way of debugging PHP scripts ? I have put in echo statements to tell me what is happening, but perhaps there are better methods. I have a PHP script on a server, which I access from a client side program ( written in C++ ) and t

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 3:17 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 3:11 PM, tedd wrote: http://en.wikipedia.org/wiki/Captcha While you're at it, why don't you read it yourself. The reference clearly says why your statement -- "Nonsense. There is no reason why the usage of Captcha's would need t

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Jochem Maas
Dan Joseph schreef: On Fri, Aug 29, 2008 at 2:40 PM, Mark Weaver <[EMAIL PROTECTED]> wrote: ... This may also help as well as Jochem's suggestion: http://us2.php.net/key not unless you wan't a headache (re-read the bit about foreach's internal pointer): php -r '$r = array("a","b","c")

Re: [PHP] ASCII Captcha

2008-08-29 Thread Eric Gorr
On Aug 29, 2008, at 3:15 PM, tedd wrote: At 2:51 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 1:56 PM, tedd wrote: At 12:17 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 11:33 AM, tedd wrote: I understand there are different reasons behind the use of CAPTCHA's, but in

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread tedd
At 2:40 PM -0400 8/29/08, Mark Weaver wrote: Hi All, Go figure... I sat down today to get some more work on my current project; I got to a certain point where I need to step through an array with a foreach loop. I found that I need to test for the current pointer position of the array, but I

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread David Otton
2008/8/29 Jochem Maas <[EMAIL PROTECTED]>: > in what sense won't it work? the complete line is in the output of ps > somewhere > albeit after wildcard/shell expansion. With the pipe? I'd really like to see an example, beacuse I couldn't coax it out of ps, and it might be handy someday. > if life

Re: [PHP] ASCII Captcha

2008-08-29 Thread Eric Gorr
On Aug 29, 2008, at 3:11 PM, tedd wrote: At 2:48 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 2:42 PM, Richard Heyes wrote: I understand there are different reasons behind the use of CAPTCHA's, but in the end they still present accessibility problems. And their use is a trade-o

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Dan Joseph
On Fri, Aug 29, 2008 at 2:40 PM, Mark Weaver <[EMAIL PROTECTED]> wrote: > Hi All, > > Go figure... I sat down today to get some more work on my current project; > I got to a certain point where I need to step through an array with a > foreach loop. I found that I need to test for the current point

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 2:51 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 1:56 PM, tedd wrote: At 12:17 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 11:33 AM, tedd wrote: I understand there are different reasons behind the use of CAPTCHA's, but in the end they still present accessibility pro

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Jochem Maas
Stut schreef: On 29 Aug 2008, at 19:46, Jochem Maas wrote: David Otton schreef: 2008/8/28 Jochem Maas <[EMAIL PROTECTED]>: I have a feeling I'm out of luck - probably security issues that keep you from doing such a thing as well. I did have the idea of grabbing the PID and then grepping the o

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 2:48 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 2:42 PM, Richard Heyes wrote: I understand there are different reasons behind the use of CAPTCHA's, but in the end they still present accessibility problems. And their use is a trade-off that you accept. Nonsense. There is no reas

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Jochem Maas
Mark Weaver schreef: Hi All, Go figure... I sat down today to get some more work on my current project; I got to a certain point where I need to step through an array with a foreach loop. I found that I need to test for the current pointer position of the array, but I haven't a clue as to how

Re: [PHP] ASCII Captcha

2008-08-29 Thread Eric Gorr
On Aug 29, 2008, at 1:56 PM, tedd wrote: At 12:17 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 11:33 AM, tedd wrote: I understand there are different reasons behind the use of CAPTCHA's, but in the end they still present accessibility problems. And their use is a trade-off that

[PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Mark Weaver
Hi All, Go figure... I sat down today to get some more work on my current project; I got to a certain point where I need to step through an array with a foreach loop. I found that I need to test for the current pointer position of the array, but I haven't a clue as to how this might be accomp

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Stut
On 29 Aug 2008, at 19:46, Jochem Maas wrote: David Otton schreef: 2008/8/28 Jochem Maas <[EMAIL PROTECTED]>: I have a feeling I'm out of luck - probably security issues that keep you from doing such a thing as well. I did have the idea of grabbing the PID and then grepping the output of p

Re: [PHP] ASCII Captcha

2008-08-29 Thread Eric Gorr
On Aug 29, 2008, at 2:42 PM, Richard Heyes wrote: I understand there are different reasons behind the use of CAPTCHA's, but in the end they still present accessibility problems. And their use is a trade-off that you accept. Nonsense. There is no reason why the usage of Captcha's would nee

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Jochem Maas
David Otton schreef: 2008/8/28 Jochem Maas <[EMAIL PROTECTED]>: I have a feeling I'm out of luck - probably security issues that keep you from doing such a thing as well. I did have the idea of grabbing the PID and then grepping the output of ps via exec() ... that would do it, but I reckon it

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Jochem Maas
Robert Cummings schreef: On Fri, 2008-08-29 at 04:48 +0200, Jochem Maas wrote: Micah Gersten schreef: I suggest creating a shell wrapper for PHP that will write the command to a file for you and then call PHP with the appropriate arguments. PHP won't even see most of the command that you origi

Re: [PHP] ASCII Captcha

2008-08-29 Thread Richard Heyes
>> I understand there are different reasons behind the use of CAPTCHA's, but >> in the end they still present accessibility problems. And their use is a >> trade-off that you accept. > > Nonsense. There is no reason why the usage of Captcha's would need to > present accessibility problems. CAPTCHA

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 5:06 PM +0100 8/29/08, Stut wrote: On 29 Aug 2008, at 16:33, tedd wrote: I didn't mean to imply laziness, but now that you mentioned it -- on one hand we say that CAPTCHA is good enough until something else comes along, but on the other hand, because we are using CAPTCHA, there's no need to

Re: [PHP] Serving pages based on user input

2008-08-29 Thread Thodoris
O/H Jochem Maas έγραψε: Robert Cummings schreef: On Sun, 2008-08-24 at 13:35 +0100, Ashley Sheridan wrote: On Sat, 2008-08-23 at 22:17 -0400, Robert Cummings wrote: On Sun, 2008-08-24 at 01:32 +0200, Jochem Maas wrote: Ólafur Waage schreef: You can read about the header function. http://i

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 12:17 PM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 11:33 AM, tedd wrote: I understand there are different reasons behind the use of CAPTCHA's, but in the end they still present accessibility problems. And their use is a trade-off that you accept. Nonsense. There is no reason why

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 1:15 PM -0400 8/29/08, Robert Cummings wrote: On Fri, 2008-08-29 at 11:33 -0400, tedd wrote: I understand there are different reasons behind the use of CAPTCHA's, but in the end they still present accessibility problems. And their use is a trade-off that you accept. Not using CAPTCHAs a

Re: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 11:33 -0400, tedd wrote: > > I understand there are different reasons behind the use of CAPTCHA's, > but in the end they still present accessibility problems. And their > use is a trade-off that you accept. Not using CAPTCHAs and allowing the amount of spam posted to a site

RE: [PHP] Re: concatenating with "." or ","

2008-08-29 Thread Boyd, Todd M.
> -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 28, 2008 3:15 PM > To: php-general@lists.php.net > Subject: RE: [PHP] Re: concatenating with "." or "," > > At 5:44 PM +0100 8/28/08, Ford, Mike wrote: > >Santa Monica, CA. > > I moved from Missouri to Ca

Re: [PHP] Debugging PHP scripts

2008-08-29 Thread Brady Mitchell
On Aug 29, 2008, at 851AM, Edward Diener wrote: I have not looked into PHP IDEs at all so far. Any recommendations ? Thanks ! Please don't start this up again. Check the "PHP IDE Needed" thread that has been active for the past several days or search the list archives. http://marc.info/

Re: [PHP] ASCII Captcha

2008-08-29 Thread Eric Gorr
On Aug 29, 2008, at 11:33 AM, tedd wrote: I understand there are different reasons behind the use of CAPTCHA's, but in the end they still present accessibility problems. And their use is a trade-off that you accept. Nonsense. There is no reason why the usage of Captcha's would need to pr

Re: [PHP] Debugging PHP scripts

2008-08-29 Thread Dan Joseph
On Fri, Aug 29, 2008 at 11:51 AM, Edward Diener <[EMAIL PROTECTED]>wrote: > Dan Joseph wrote: > >> On Fri, Aug 29, 2008 at 11:33 AM, Edward Diener <[EMAIL PROTECTED] >> >wrote: >> >> > I have not looked into PHP IDEs at all so far. Any recommendations ? Thanks > ! > > > -- > PHP General Mailing Li

Re: [PHP] ASCII Captcha

2008-08-29 Thread Stut
On 29 Aug 2008, at 16:33, tedd wrote: At 3:41 PM +0100 8/29/08, Stut wrote: The main project I work on at the moment is a classified ad site and it has CAPTCHA's in three places. -snip- I understand there are different reasons behind the use of CAPTCHA's, but in the end they still present

Re: [PHP] Debugging PHP scripts

2008-08-29 Thread Edward Diener
Dan Joseph wrote: On Fri, Aug 29, 2008 at 11:33 AM, Edward Diener <[EMAIL PROTECTED]>wrote: I am fairly new to PHP. What is the best way of debugging PHP scripts ? I have put in echo statements to tell me what is happening, but perhaps there are better methods. I have a PHP script on a server

Re: [PHP] ASCII Captcha

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 10:38 +, Ólafur Waage wrote: > I just realized that i should have said ASCII Art but not just ASCII, > it was so clear in my head but i notice now how it could have been > misunderstood. You do realize that the ascii rendering below is just a bitmap. Most captcha crackers

Re: [PHP] Checking for http://

2008-08-29 Thread Eric Butera
On Fri, Aug 29, 2008 at 11:33 AM, Dan Joseph <[EMAIL PROTECTED]> wrote: > You could use substr() (www.php.net/substr) > > if ( substr( $web_site, 0, 7 ) != "http://"; ) > { > $web_site = "http://"; . $web_site; > } > > -- > -Dan Joseph Or parse_url() -- PHP General Mailing List (http://www.php.n

Re: [PHP] Debugging PHP scripts

2008-08-29 Thread Dan Joseph
On Fri, Aug 29, 2008 at 11:33 AM, Edward Diener <[EMAIL PROTECTED]>wrote: > I am fairly new to PHP. What is the best way of debugging PHP scripts ? > > I have put in echo statements to tell me what is happening, but perhaps > there are better methods. > > I have a PHP script on a server, which I a

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 10:45 AM -0400 8/29/08, Eric Gorr wrote: On Aug 29, 2008, at 10:30 AM, tedd wrote: No matter how many times you cut this rope, it's still too short. So, I'm curious, what do you suggest? As near as I can tell, even with all of the problems (many of which can be mitigated with enough effo

Re: [PHP] Checking for http://

2008-08-29 Thread Dan Joseph
On Fri, Aug 29, 2008 at 11:25 AM, Ron Piggott <[EMAIL PROTECTED]>wrote: > How do I check if http:// is at the beginning of $web_site and if it > isn't add it? Ron > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > You could use subs

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 3:41 PM +0100 8/29/08, Stut wrote: -Stut: I agree with some of what you're saying here, but only to a certain extent. CAPTCHA's are a tool that can be applied to any number of different situations, so a blanket statement like that cannot possibly apply. Of course blanket statements can't

[PHP] Debugging PHP scripts

2008-08-29 Thread Edward Diener
I am fairly new to PHP. What is the best way of debugging PHP scripts ? I have put in echo statements to tell me what is happening, but perhaps there are better methods. I have a PHP script on a server, which I access from a client side program ( written in C++ ) and the script is not returni

[PHP] Checking for http://

2008-08-29 Thread Ron Piggott
How do I check if http:// is at the beginning of $web_site and if it isn't add it? Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ASCII Captcha

2008-08-29 Thread Eric Gorr
On Aug 29, 2008, at 10:30 AM, tedd wrote: No matter how many times you cut this rope, it's still too short. So, I'm curious, what do you suggest? As near as I can tell, even with all of the problems (many of which can be mitigated with enough effort) associated with the use of Captcha's,

Re: [PHP] ASCII Captcha

2008-08-29 Thread Stut
On 29 Aug 2008, at 15:15, tedd wrote: At 9:07 AM +0100 8/29/08, Stut wrote: On 29 Aug 2008, at 03:45, tedd wrote: These are what I've come up with: http://webbytedd.com/aa/assorted-captcha/ Just curious tedd, but what do you mean by "CAPTCHA's show the world that you really haven't thought

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 10:00 AM +0100 8/29/08, Richard Heyes wrote: > CAPTCHA's don't work. Don't depend upon them for any of your projects. Sure they do. My blog comments were getting spammed to death. Now I've put a captcha on I rarely have to deal with spam. I'd say that's working. Yes, it's working for you -

Re: [PHP] ASCII Captcha

2008-08-29 Thread tedd
At 9:07 AM +0100 8/29/08, Stut wrote: On 29 Aug 2008, at 03:45, tedd wrote: These are what I've come up with: http://webbytedd.com/aa/assorted-captcha/ Just curious tedd, but what do you mean by "CAPTCHA's show the world that you really haven't thought this out". If you have a better altern

[PHP] [SOLVED]RE: [PHP] restricted file access

2008-08-29 Thread Angelo Zanetti
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: 28 August 2008 21:19 To: php-general@lists.php.net Subject: RE: [PHP] restricted file access At 10:50 AM +0200 8/28/08, Angelo Zanetti wrote: >Thanks for your reply. > >But what happens if the file is situated here: > >www.si

Re: [PHP] Braindead

2008-08-29 Thread Andrew Ballard
On Fri, Aug 29, 2008 at 4:38 AM, Chris Haensel <[EMAIL PROTECTED]> wrote: > > > -:- -Original Message- > -:- From: Thijs Lensselink [mailto:[EMAIL PROTECTED] > -:- Sent: Friday, August 29, 2008 10:31 AM > -:- Cc: php-general@lists.php.net > -:- Subject: Re: [PHP] Braindead > -:- > -:-

Re: [PHP] _SERVER['DOCUMENT_ROOT'] not set?

2008-08-29 Thread Stut
On 29 Aug 2008, at 12:47, Saurabh Agrawal wrote: On Fri, Aug 29, 2008 at 5:06 PM, metastable <[EMAIL PROTECTED] wrote: Does Zend use a separate instance of Apache or some other webserver ? Stijn Actually I don't know the answer to this. How can I find that out? AFAIK, while custom instal

Re: [PHP] _SERVER['DOCUMENT_ROOT'] not set?

2008-08-29 Thread Saurabh Agrawal
On Fri, Aug 29, 2008 at 5:06 PM, metastable <[EMAIL PROTECTED] > wrote: > Does Zend use a separate instance of Apache or some other webserver ? > > Stijn > > Actually I don't know the answer to this. How can I find that out? AFAIK, while custom installation, it didn't ask for any such option. Th

Re: [PHP] _SERVER['DOCUMENT_ROOT'] not set?

2008-08-29 Thread metastable
Does Zend use a separate instance of Apache or some other webserver ? Stijn Saurabh Agrawal wrote: In one of the examples, I am supposed to access _SERVER['DOCUMENT_ROOT']. However, when I am seeing its value in the debug stack, I am getting it to be null! Even phpinfo() is

  1   2   >