Re: [PHP] Problems sending $_POST vairable to an ASP page

2008-08-29 Thread Stut
On 28 Aug 2008, at 22:17, shaun thornburgh wrote: Hi guys, I need to send post variables to an ASP page. I have the following code which isn't producing any errors but isn't working either: foreach($_POST['newsletter-group'] as $key => $value) { $_POST['addressbookid'] = $value; $out = "POST

[PHP] Is this a bug?

2008-08-29 Thread Catalin Zamfir Alexandru, DATAGRAM SRL
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'; Echo 'another thing'; Echo 'something '\; What

RE: [PHP] Re: Variable name as a string

2008-08-29 Thread Bren Norris
That solution would probably work just nicely. That being said however, If you want to be sophisticated about this you would make good use of JSON and php's corresponding functions json_decode/encode which is common way to transport arrays as strings - and much more. -Original Message-

Re: [PHP] Is this a bug?

2008-08-29 Thread Robert Cummings
On Fri, 2008-08-29 at 10:40 +0300, Catalin Zamfir Alexandru, DATAGRAM SRL wrote: > Echo 'something'; > > Echo 'another thing'; > > Echo 'something '\; I got the following output in both php5 and php4: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/rob/bleh.php on line

Re: [PHP] ASCII Captcha

2008-08-29 Thread Richard Heyes
> Has anyone tried a ASCII Captcha method. To use a similar method like > this ASCII generator (http://www.network-science.de/ascii/) > > Or even gone the next level and have an ASCII based simple math question? My advice is to stick with what works. Though if you really wanted to you could invest

Re: [PHP] Problems sending $_POST vairable to an ASP page

2008-08-29 Thread Stut
On 28 Aug 2008, at 23:01, shaun thornburgh wrote: Date: Thu, 28 Aug 2008 16:24:58 -0500> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]; php-general@lists.php.net> Subject: RE: [PHP] Problems sending $_POST vairable to an ASP page> > [snip]> Unfortunately I don't have curl installed on my se

Re: [PHP] ASCII Captcha

2008-08-29 Thread Stut
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 alternative I'd love to hear about it. -S

Re: [PHP] Is this a bug?

2008-08-29 Thread T Lensselink
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'; > > Echo '

RE: [PHP] Is this a bug?

2008-08-29 Thread Catalin Zamfir Alexandru, DATAGRAM SRL
I'm using a custom ob_handler (it's a MVC framework, we need this handler). The ironic thing is that, executed once, the error doesn't show. Executed twice, the error you're talking about shows. Executed 3rd ... the same as the first execution. And I have my error_reporting to E_ALL. This happens O

[PHP] Braindead

2008-08-29 Thread Chris Haensel
Hi guys, maybe I am too stupid, but I can not see a solution for this. Have been cracking up my brain for the last hours, so I finally dare to ask. I have a database table with some columns text1 | text2 | text3 | text4 -- Now, for some stats

Re: [PHP] Braindead

2008-08-29 Thread Thijs Lensselink
Chris Haensel wrote: > Hi guys, > > maybe I am too stupid, but I can not see a solution for this. Have been > cracking up my brain for the last hours, so I finally dare to ask. > > I have a database table with some columns > > > text1 | text2 | text3 | text4 >

RE: [PHP] Braindead

2008-08-29 Thread Chris Haensel
-:- -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 -:- -:- Chris Haensel wrote: -:- > Hi guys, -:- > -:- > maybe I am too stupid, but I can not s

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

2008-08-29 Thread Saurabh Agrawal
Hello group, I am new to php. I have just bought a good book by Welling and Thomson and was following the example codes. 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

Re: [PHP] ASCII Captcha

2008-08-29 Thread Richard Heyes
> 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. > CAPTCHA's present accessibility problems for people with disabilities. These

Re: [PHP] ASCII Captcha

2008-08-29 Thread Sancar Saran
Hello there, > Actually my captchas show the world some funky coloured text... :-) I just wondering. What if we show captcha using ASCII ART format. like |||

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

2008-08-29 Thread David Otton
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 smells. :-) T

Re: [PHP] ASCII Captcha

2008-08-29 Thread Richard Heyes
> > ||| > ||| > `||| |||`|||`````|||||` ` || > ||||| ||` |.

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

2008-08-29 Thread David Otton
2008/8/29 Saurabh Agrawal <[EMAIL PROTECTED]>: > 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 showing that this particular variable does not > even exist, though t

[PHP] Re: Is this a bug?

2008-08-29 Thread Carlos Medina
Catalin Zamfir Alexandru, DATAGRAM SRL schrieb: 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'; Echo 'another thi

Re: [PHP] ASCII Captcha

2008-08-29 Thread Ólafur Waage
Thats exactly what i am talking about Richard. Ólafur Waage [EMAIL PROTECTED] 2008/8/29 Richard Heyes <[EMAIL PROTECTED]>: >> >> ||| >> ||| >>

Re: [PHP] ASCII Captcha

2008-08-29 Thread Ólafur Waage
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. Ólafur Waage [EMAIL PROTECTED] 2008/8/29 Ólafur Waage <[EMAIL PROTECTED]>: > Thats exactly what i am talking about Richard. > > Ólafur Waage > [E

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

2008-08-29 Thread Saurabh Agrawal
> > > > 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 showing that this particular variable does not > > even exist, though there are other _SERVER[''] declara

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

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

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

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

[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

[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

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

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

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

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

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

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

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

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

  1   2   >