Re: [PHP] Going from simple to super CAPTCHA

2007-06-10 Thread Tijnema
On 6/10/07, tedd <[EMAIL PROTECTED]> wrote: >Tedd: > >Please don't spread the code of your Audio CAPTCHA, we had a big >discussion about it, and we concluded that it was quite easy to crack. >I remember i've cracked some other CAPTCHAs, but if you still think >your Audio CAPTCHA isn't hard to cra

Re: [PHP] [RFC] HTTP timezone

2007-06-10 Thread Tijnema
On 6/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I agree with Tijnema he's hit the nail on the head. And the inability to handle daylight time really is a big potential snag - who in North America isn't on daylight time at some point in the year? If the timezone data is unreliable the

[PHP] Re: Not getting expected result from file()

2007-06-10 Thread kvigor
Trimmed elements in the array. I still can't get it to store in central table. No MySQL errors either. :-( (Also, all form values are escaped.) Strings compared in if condition are now identical. newcode === theFileArray = file('C:\htdocs\folder1\f

[PHP] Re: Not getting expected result from file()

2007-06-10 Thread kvigor
OK, I trimmed the elements in the array. using var_dump() it shows strings are identical, however nothing is storing in DB still. view new code =//doesn't store in central still, also shows no MySQL errors. $theFileArray = file('C:\htdocs\folder1\file.txt');

Re: [PHP] Re: Not getting expected result from file()

2007-06-10 Thread Jim Lucas
kvigor wrote: Sorry I re-wrote for problem clarity. FYI whenever I do a var_dump it always shows $stringOne as being 2 characters less e.g. var_dump($foodlandPA[45]); var_dump($storeInfo); string(31) "Wellston Foodland Wellston OH " string(29) "Wellston Foodland Wellston OH" This would be

[PHP] Re: Not getting expected result from file()

2007-06-10 Thread kvigor
Sorry I re-wrote for problem clarity. FYI whenever I do a var_dump it always shows $stringOne as being 2 characters less e.g. var_dump($foodlandPA[45]); var_dump($storeInfo); string(31) "Wellston Foodland Wellston OH " string(29) "Wellston Foodland Wellston OH" ""kvigor"" <[EMAIL PROTECTED]>

[PHP] Re: Not getting expected result from file()

2007-06-10 Thread David Robley
kvigor wrote: > Hello, > > I'm using the file function create an array. I'm using a value from a > form to see if it matches in elements in the array. > > My problem is I expect the condition to be true but info but my DB isn't > populated as I in the right DB... > =Code > Begi

[PHP] Not getting expected result from file()

2007-06-10 Thread kvigor
Hello, I'm using the file function create an array. I'm using a value from a form to see if it matches in elements in the array. My problem is I expect the condition to be true but info but my DB isn't populated as I in the right DB... =Code Begins

Re: [PHP] Going from simple to super CAPTCHA

2007-06-10 Thread Richard Lynch
On Sun, June 10, 2007 3:19 pm, tedd wrote: > Do graphic CAPTCHA's really work? I dunno, but from this it appears > not. Properly implemented, they work great at thwarting 'bots (and the visually impaired) unless you have a determined attacker with a fair amount of time on their hands. If you have

Re: [PHP] Difficulties including scripts from another folder (apache2.2, PHP5, Vista)

2007-06-10 Thread Richard Lynch
On Sat, June 9, 2007 9:04 pm, Robert Cummings wrote: > On Sun, 2007-06-10 at 01:02 +0100, brice wrote: >> Thanks a lot guys! >> >> Eventually Richard hit on the issue: >> >> >require(".\foo.inc.php"); ?># >> > >> >If you put .\ in there, then maybe PHP thinks you mean to NOT use >> the >> >include_

Re: [PHP] Going from simple to super CAPTCHA

2007-06-10 Thread Richard Lynch
On Sat, June 9, 2007 10:27 pm, Dave M G wrote: > With a little help from the web, and help from this list, I have a > simple CAPTCHA image that works within the content system I'm > building. > > But it's *really* simple. Basically white text on a black background, > with a couple of white lines to

Re: [PHP] Re: php-cli vs python OT

2007-06-10 Thread Richard Lynch
On Sat, June 9, 2007 11:15 pm, Robert Cummings wrote: > On Thu, 2007-06-07 at 23:33 +0100, Colin Guthrie wrote: >> Robert Cummings wrote: >> > On Thu, 2007-06-07 at 16:36 -0400, Daniel Brown wrote: >> >> Are you using Amarok on Windows, Linux, or other? I have >> Amarok >> >> 1.3.1 on KDE 3.4.

Re: [PHP] Undefined index error

2007-06-10 Thread Richard Lynch
On Sat, June 9, 2007 11:53 pm, Christian Cantrell wrote: > I'm getting this error in my Apache log file, and I can't figure out > why: > > Undefined index: password in /path/to/file.php on line 82 > > Some searching on Google turned up a bunch of questions, but no > answers. > Any idea what this

Re: [PHP] None US ASCII characters not allowed in headers?

2007-06-10 Thread Richard Lynch
On Sun, June 10, 2007 12:48 am, Robert Cummings wrote: > On Sun, 2007-06-10 at 13:36 +0800, Crayon Shin Chan wrote: >> On Sunday 10 June 2007 04:05, Robert Cummings wrote: >> >> > Funny how the solution often presents itself after you make your >> > problem public *lol* :) Wonder if it falls under

Re: [PHP] Transparent image resizing using php 4.4.x

2007-06-10 Thread Richard Lynch
On Sun, June 10, 2007 12:08 pm, tedd wrote: > At 1:12 AM +0500 6/10/07, Sukhwinder Singh wrote: >>-snip- >>Could anyone please provide me a solution which works using php 4.4.x >> >>Sukhwinder Singh > > Instead of: > > imagecolortransparent($img_resized, $transparent); > > try: > > imagecolortransp

Re: [PHP] session.cookie_path problem

2007-06-10 Thread Richard Lynch
Is PHP sending the correct path in it headers for the cookie? Use FireFox + LiveHTTPHeader to find out. Is your BROWSER correctly honoring the path? It shouldn't be sending back the cookie for app1 in app2, but, if it does, PHP won't know it wasn't supposed to, I don't think... On Sun, June 10, 2

Re: [PHP] Server side issue with

2007-06-10 Thread Richard Lynch
On Sun, June 10, 2007 9:06 am, Roy W wrote: > My host company must have an installation/configuration issue. > > Variables from forms are not being passed to the php scripts that are > sent > via > > Has anyone heard of this and know of the fix? Yes, lots. Usually right after an upgrade to PHP v

[PHP] Re: Intercepting fopen, mysql_connect, and similar functions for migration

2007-06-10 Thread Globalissa Info
Hello Kelly, u I don't think there is any lasting value or time saving in changing bad code, instead, my suggestion is to throw out the "badly written" code altogether and start with something else you can actually work with. ... but if you're going to keep it: Following is a description of

Re: [PHP] PHP Form isnt emailing me

2007-06-10 Thread Richard Lynch
if (preg_match("|\r\n|", $_POST['email'])){ die("Spammer."); } if (preg_match("|\r\n|", $_POST['subject'])){ die("Spammer."); } //and so on for anything you put into headers. //body can contain newlines, of course. On Sat, June 9, 2007 8:22 pm, Austin C wrote: > how can I tell them not to incl

Re: [PHP] Undefined index error

2007-06-10 Thread Christian Cantrell
Ah, you're right. Thanks, Tijnema. I'm just getting my feet wet with PHP, and you guys are a great help! Christian On 6/10/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/10/07, Christian Cantrell <[EMAIL PROTECTED]> wrote: > I'm getting this error in my Apache log file, and I can't figure out w

Re: [PHP] [RFC] HTTP timezone

2007-06-10 Thread info
I agree with Tijnema he's hit the nail on the head. And the inability to handle daylight time really is a big potential snag - who in North America isn't on daylight time at some point in the year? If the timezone data is unreliable then no thinking developer will use it. The question then beco

Re: [PHP] Going from simple to super CAPTCHA

2007-06-10 Thread Robert Cummings
On Sun, 2007-06-10 at 16:19 -0400, tedd wrote: > > > On the other hand, if what you're trying to protect has no real > >> significance, then no one is going to brother breaking your CAPTCHA. > > > >Wrong. If you are protecting something completely worthless and your > >using a popular blog or for

Re: [PHP] Server side issue with

2007-06-10 Thread Robert Cummings
On Sun, 2007-06-10 at 14:50 -0500, Roy W wrote: > Here is the code: > > index.html > > > > > Your name: > > Cost of a lunch: > > Days Buying Lunch: > > > > > > > > index.php > > > $Today = date("1 F d, Y"); > > ?> > > > > Today's Dat

Re: [PHP] Transparent image resizing using php 4.4.x

2007-06-10 Thread tedd
At 12:42 AM +0500 6/11/07, Sukhwinder Singh wrote: try: imagecolortransparent($img,imagecolorat($img,0,0)); Look-up imagecolorat(). I had tried it earlier. As I have written in my other emails. I have tried almost all solutions. I am really wondering that no one has every faced any such pro

Re: [PHP] Going from simple to super CAPTCHA

2007-06-10 Thread tedd
Tedd: Please don't spread the code of your Audio CAPTCHA, we had a big discussion about it, and we concluded that it was quite easy to crack. I remember i've cracked some other CAPTCHAs, but if you still think your Audio CAPTCHA isn't hard to crack, then just let me know and i'll start cracking i

Re: [PHP] Going from simple to super CAPTCHA

2007-06-10 Thread tedd
> On the other hand, if what you're trying to protect has no real significance, then no one is going to brother breaking your CAPTCHA. Wrong. If you are protecting something completely worthless and your using a popular blog or forum software then you will undoubtedly inherit it's deficiencie

Re: [PHP] Server side issue with

2007-06-10 Thread Roy W
Here is the code: index.html Your name: Cost of a lunch: Days Buying Lunch: index.php Today's Date: $Today\n"); print("$YourName, you will be out "); print($CostOfLunch * $DaysBuyingLunch); print(" dollars this week.\n"); ?>

Re: [PHP] Transparent image resizing using php 4.4.x

2007-06-10 Thread Sukhwinder Singh
try: imagecolortransparent($img,imagecolorat($img,0,0)); Look-up imagecolorat(). I had tried it earlier. As I have written in my other emails. I have tried almost all solutions. I am really wondering that no one has every faced any such problem. I'll try what you have suggested. But I thin

[PHP] Re: Is it possible to get the name of the top most calling script?

2007-06-10 Thread Al
If the scripts are using a common file, [e.g., config, functions, etc.] you could define two constants. define("ORG_FILE", __FILE__); define("ORG_LINE", __LINE__); barophobia wrote: Hello, I know that __FILE__ and __LINE__ report on the file and line that they occur in. What I want is to be ab

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-10 Thread Larry Garfield
On Sunday 10 June 2007, tedd wrote: > At 10:05 PM -0400 6/9/07, Robert Cummings wrote: > >On Sat, 2007-06-09 at 19:18 -0500, Larry Garfield wrote: > >> You should get a new server that supports PHP 5.2.1. PHP 4 is dead. > > > >Must be a zombie then because I see it running almost EVERYWHERE. > >

Re: [PHP] Transparent image resizing using php 4.4.x

2007-06-10 Thread tedd
At 1:12 AM +0500 6/10/07, Sukhwinder Singh wrote: -snip- Could anyone please provide me a solution which works using php 4.4.x Sukhwinder Singh Instead of: imagecolortransparent($img_resized, $transparent); try: imagecolortransparent($img,imagecolorat($img,0,0)); Look-up imagecolorat(). C

Re: [PHP] Going from simple to super CAPTCHA

2007-06-10 Thread Tijnema
On 6/10/07, tedd <[EMAIL PROTECTED]> wrote: At 12:27 PM +0900 6/10/07, Dave M G wrote: >Tips on what differentiates a good CAPTCHA from a bad one would also >be really sweet. Dave: From a visual disability standpoint, all graphic CAPTCHA's are bad. From the not-disabled standpoint, most inte

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-10 Thread tedd
At 10:05 PM -0400 6/9/07, Robert Cummings wrote: On Sat, 2007-06-09 at 19:18 -0500, Larry Garfield wrote: You should get a new server that supports PHP 5.2.1. PHP 4 is dead. Must be a zombie then because I see it running almost EVERYWHERE. Cheers, Rob. Rob: You raise an excellent and ob

Re: [PHP] Going from simple to super CAPTCHA

2007-06-10 Thread Robert Cummings
On Sun, 2007-06-10 at 12:29 -0400, tedd wrote: > > From a visual disability standpoint, all graphic CAPTCHA's are bad. Sure, but from the perspective of protecting visitors from hard-core porn link, sex toys links, scams, etc etc, it has strong merit. Trust me, I've seen sites get completely mess

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-10 Thread Robert Cummings
On Sun, 2007-06-10 at 11:01 -0500, Larry Garfield wrote: > On Saturday 09 June 2007, Robert Cummings wrote: > > On Sat, 2007-06-09 at 19:18 -0500, Larry Garfield wrote: > > > You should get a new server that supports PHP 5.2.1. PHP 4 is dead. > > > > Must be a zombie then because I see it running

Re: [PHP] Going from simple to super CAPTCHA

2007-06-10 Thread Robert Cummings
On Sun, 2007-06-10 at 17:09 +0900, Dave M G wrote: > Robert , > > Thank you for replying. > > No, PHP can do it. If you can work with pixels (and you can) then you > > can do any advanced mutation of an image... the only issue is how long > > it takes to perform the mutations. > > > That's good

Re: [PHP] Going from simple to super CAPTCHA

2007-06-10 Thread tedd
At 12:27 PM +0900 6/10/07, Dave M G wrote: Tips on what differentiates a good CAPTCHA from a bad one would also be really sweet. Dave: From a visual disability standpoint, all graphic CAPTCHA's are bad. From the not-disabled standpoint, most intelligible graphic CAPTCHA's that can be read, c

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-10 Thread Tijnema
On 6/10/07, Larry Garfield <[EMAIL PROTECTED]> wrote: On Saturday 09 June 2007, Robert Cummings wrote: > On Sat, 2007-06-09 at 19:18 -0500, Larry Garfield wrote: > > You should get a new server that supports PHP 5.2.1. PHP 4 is dead. > > Must be a zombie then because I see it running almost EVER

Re: [PHP] PHP5 or PHP4 this is the question

2007-06-10 Thread Larry Garfield
On Saturday 09 June 2007, Robert Cummings wrote: > On Sat, 2007-06-09 at 19:18 -0500, Larry Garfield wrote: > > You should get a new server that supports PHP 5.2.1. PHP 4 is dead. > > Must be a zombie then because I see it running almost EVERYWHERE. Yep, it is. PHP 4 is trying to eat your brains

Re: [PHP] Re: php-cli vs python OT

2007-06-10 Thread Daniel Brown
On 6/10/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Thu, 2007-06-07 at 23:33 +0100, Colin Guthrie wrote: > Robert Cummings wrote: > > On Thu, 2007-06-07 at 16:36 -0400, Daniel Brown wrote: > >> Are you using Amarok on Windows, Linux, or other? I have Amarok > >> 1.3.1 on KDE 3.4.2 on M

Re: [PHP] Server side issue with

2007-06-10 Thread Daniel Brown
On 6/10/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/10/07, Roy W <[EMAIL PROTECTED]> wrote: > My host company must have an installation/configuration issue. > > Variables from forms are not being passed to the php scripts that are sent > via > > Has anyone heard of this and know of the fix? I d

Re: [PHP] Server side issue with

2007-06-10 Thread Tijnema
On 6/10/07, Roy W <[EMAIL PROTECTED]> wrote: My host company must have an installation/configuration issue. Variables from forms are not being passed to the php scripts that are sent via Has anyone heard of this and know of the fix? I don't think that's possible, please show us part of your

[PHP] Server side issue with

2007-06-10 Thread Roy W
My host company must have an installation/configuration issue. Variables from forms are not being passed to the php scripts that are sent via Has anyone heard of this and know of the fix? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Server side issue with

2007-06-10 Thread Roy W
My host company must have an installation/configuration issue. Variables from forms are not being passed to the php scripts that are sent via Has anyone heard of this and know of the fix? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Undefined index error

2007-06-10 Thread Tijnema
On 6/10/07, Christian Cantrell <[EMAIL PROTECTED]> wrote: I'm getting this error in my Apache log file, and I can't figure out why: Undefined index: password in /path/to/file.php on line 82 Some searching on Google turned up a bunch of questions, but no answers. Any idea what this warning mess

Re: [PHP] Transparent image resizing using php 4.4.x

2007-06-10 Thread Tijnema
On 6/9/07, Sukhwinder Singh <[EMAIL PROTECTED]> wrote: I have tried many ways to resize a transparent gif but it works on my local server which has php 5.1.6 but none works using php 4.4.x Also the below works when using imagecopyresized and not imagecopyresampled. I have no clue why that is the

Re: [PHP] [RFC] HTTP timezone

2007-06-10 Thread Tijnema
On 6/10/07, Stefanos Harhalakis <[EMAIL PROTECTED]> wrote: On Sunday 10 June 2007, Tijnema wrote: > To get back to the point, I think that the timezone should be defined > on what time it actually is at his PC, and what time it is on > time.nist.gov for example, and not lookng at some setting...

[PHP] Re: session.cookie_path problem

2007-06-10 Thread Lasse Brandt
Am I missing something obvious? I am so sorry - I was missing something obvious. At some early stage of my test, I had a /index.php on my test website doing a: session_start() And the apparently made my session work in both sub directories and thus poisoning my test result. After closing my br

Re: [PHP] [RFC] HTTP timezone

2007-06-10 Thread Stefanos Harhalakis
On Sunday 10 June 2007, Tijnema wrote: > To get back to the point, I think that the timezone should be defined > on what time it actually is at his PC, and what time it is on > time.nist.gov for example, and not lookng at some setting... Timezone > setting is often wrong, people just update their t

[PHP] session.cookie_path problem

2007-06-10 Thread Lasse Brandt
Hi, I am having some trouble with my sessions cookie_path - it doesn't seem to work - or maybe I am not working, I don't know at the moment :) Apache 2.2.3 and PHP 5.3.2 as module. What I want to achieve, is 2 separate sessions in the same website - in different directories of course. My test

Re: [PHP] [RFC] HTTP timezone

2007-06-10 Thread Tijnema
On 6/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Well, there is some use for a correct user timezone. I wrote php code that offers a different css file depending on the server time of day. So for example at noon it would use nice bright colors, and at midnight blacks and red, and ... y

Re: [PHP] Going from simple to super CAPTCHA

2007-06-10 Thread Dave M G
Robert , Thank you for replying. No, PHP can do it. If you can work with pixels (and you can) then you can do any advanced mutation of an image... the only issue is how long it takes to perform the mutations. That's good to know. I think I can live with a little server time to generate the i

Re: [PHP] [RFC] HTTP timezone

2007-06-10 Thread Stefanos Harhalakis
On Sunday 10 June 2007, Tijnema wrote: > On 6/9/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Sat, June 9, 2007 8:06 am, Stefanos Harhalakis wrote: > > > Timezone: +0200 > > > > > > that will specify their timezone offset. This way scripts will be able > > > to > > > provide appropriate date/