RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
I got a little bit further, but still feel like the monkey with a light-bulb! OPTION value=1Over $2 million/OPTION -Original Message- From: BSumrall [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 4:21 AM To: php-general@lists.php.net Subject: [PHP] Looking for help with

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
I am game for anything that works and works fast and easy. I am just wondering if I am opening up a whole new can of worms? Cheers! Brad -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 6:06 AM To: BSumrall Subject: RE: [PHP] Looking for

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
Is it a GUI based application? Brad -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 6:06 AM To: BSumrall Subject: RE: [PHP] Looking for help with forms/variables and an array! Hi, I use Javascript. I also use Firefox. I use Apache as my

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
-Original Message- From: BSumrall [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 5:54 AM To: 'George Pitcher' Subject: RE: [PHP] Looking for help with forms/variables and an array! Interesting suggestion. I though ajax was mainly gear towards microsoft and javascripting

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread tedd
At 6:22 PM +0200 6/11/07, Tijnema wrote: Server builds up a database of pictures, client does the same with MD5 check, and problem solved...:) Tijnema Tijnema: Not exactly, I don't think you could MD5 this: http://sperling.com/examples/dot-captcha/ To make variations of the theme. I can

[PHP] efficient log system

2007-06-12 Thread Alain Roger
Hi, I would like to create a log system to keep a trace of all users' actions (log-in, remove, change or update data, and so on...). What should i do or to what should i take care to not have problem ? I was thinking to create a folder on my server where log files will be stored, but what is

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread tedd
At 7:38 PM +0200 6/11/07, Tijnema wrote: Well, if you think this is the uncrackable* solution, create it and i'll see if I can crack it ;) Tijnema * I hope you don't mean the same uncrackable as AACS did: HD-DVD is uncrackable ;) As I provided in another post, try cracking this:

[PHP] Re: efficient log system

2007-06-12 Thread Colin Guthrie
Alain Roger wrote: Hi, I would like to create a log system to keep a trace of all users' actions (log-in, remove, change or update data, and so on...). What should i do or to what should i take care to not have problem ? I was thinking to create a folder on my server where log files will

[PHP] Re: efficient log system

2007-06-12 Thread Christian Hänsel
Hello Alain, I can just tell you from my experience. I have recently created a, in my eyes, pretty big project, and wanted to track everything, starting from user navigation over search queries to login/out times, article printout times and count, photo views and everything your mind can

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread tedd
At 7:51 PM +0200 6/11/07, Tijnema wrote: It would definitly be an interesting challenge, but you don't have time, or is that an excuse..? :P What about you tedd? Tijnema Eager Beaver, huh? Good for you! After you crack my dot-captcha, I'll make up another. :-) Rob provided an interesting

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Stut
tedd wrote: At 7:38 PM +0200 6/11/07, Tijnema wrote: Well, if you think this is the uncrackable* solution, create it and i'll see if I can crack it ;) Tijnema * I hope you don't mean the same uncrackable as AACS did: HD-DVD is uncrackable ;) As I provided in another post, try cracking

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread tedd
At 3:02 PM -0400 6/11/07, Robert Cummings wrote: OCR is extremely fast. I've done work in the past using OCR and while it was simple text in documents, the OCR program could extract the text from the image of a magazine page in about a second. For simplistic displays of text, or even only slight

[PHP] any security problems with this?

2007-06-12 Thread Ross
I have a page of functions that I include in my page head. In this I have a function to connect. I can then just call this on each page when i need it. Does doing it this way cause any potential security risks? function connect() { $host=localhost; $user=x; $password=xx; $dbname=x;

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread tedd
At 4:37 PM -0400 6/11/07, Daniel Brown wrote: I'm going to try to knock out a proof-of-concept later this week if I can to bring some of it together. -- Daniel P. Brown Daniel et al: While thinking about proof-of-concepts, think also of optical illusions -- perhaps there's some

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread tedd
At 12:42 PM +0100 6/12/07, Stut wrote: tedd wrote: At 7:38 PM +0200 6/11/07, Tijnema wrote: Well, if you think this is the uncrackable* solution, create it and i'll see if I can crack it ;) Tijnema * I hope you don't mean the same uncrackable as AACS did: HD-DVD is uncrackable ;) As I

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, tedd [EMAIL PROTECTED] wrote: At 12:42 PM +0100 6/12/07, Stut wrote: tedd wrote: At 7:38 PM +0200 6/11/07, Tijnema wrote: Well, if you think this is the uncrackable* solution, create it and i'll see if I can crack it ;) Tijnema * I hope you don't mean the same uncrackable as AACS

[PHP] Re: any security problems with this?

2007-06-12 Thread Darren Whitlen
Ross wrote: I have a page of functions that I include in my page head. In this I have a function to connect. I can then just call this on each page when i need it. Does doing it this way cause any potential security risks? function connect() { $host=localhost; $user=x; $password=xx;

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Dave Goodchild
Unless some server config error causes that stuff to be output on the page? I tend to put such functions in a .inc file and amend the .htaccess to prevent download.

RE: [PHP] Re: any security problems with this?

2007-06-12 Thread Jim Moseby
Ross wrote: I have a page of functions that I include in my page head. In this I have a function to connect. I can then just call this on each page when i need it. Does doing it this way cause any potential security risks? function connect() { $host=localhost; $user=x;

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Darren Whitlen
Dave Goodchild wrote: Unless some server config error causes that stuff to be output on the page? I tend to put such functions in a .inc file and amend the .htaccess to prevent download. If you were to include or require the .inc page and an error was to occur, it would still be printed out.

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Stut
Dave Goodchild wrote: Unless some server config error causes that stuff to be output on the page? I tend to put such functions in a .inc file and amend the .htaccess to prevent download. Unless some server config error causes it to ignore .htaccess. The basic rule when it comes to securing

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Eric Butera
On 6/12/07, Stut [EMAIL PROTECTED] wrote: Dave Goodchild wrote: Unless some server config error causes that stuff to be output on the page? I tend to put such functions in a .inc file and amend the .htaccess to prevent download. Unless some server config error causes it to ignore .htaccess.

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 07:25 -0400, tedd wrote: At 6:22 PM +0200 6/11/07, Tijnema wrote: Server builds up a database of pictures, client does the same with MD5 check, and problem solved...:) Tijnema Tijnema: Not exactly, I don't think you could MD5 this:

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 07:29 -0400, tedd wrote: At 7:38 PM +0200 6/11/07, Tijnema wrote: Well, if you think this is the uncrackable* solution, create it and i'll see if I can crack it ;) Tijnema * I hope you don't mean the same uncrackable as AACS did: HD-DVD is uncrackable ;) As

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Dave Goodchild
Sure, I usually put these files outside the docroot - unless I am in some f**ked-up hosting environment that doesn't let me change the include path...

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 07:29 -0400, tedd wrote: At 7:38 PM +0200 6/11/07, Tijnema wrote: Well, if you think this is the uncrackable* solution, create it and i'll see if I can crack it ;) Tijnema * I hope you don't mean the same

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 09:05 -0400, Robert Cummings wrote: On Tue, 2007-06-12 at 07:29 -0400, tedd wrote: At 7:38 PM +0200 6/11/07, Tijnema wrote: Well, if you think this is the uncrackable* solution, create it and i'll see if I can crack it ;) Tijnema * I hope you don't mean

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 08:01 -0400, tedd wrote: At 3:02 PM -0400 6/11/07, Robert Cummings wrote: OCR is extremely fast. I've done work in the past using OCR and while it was simple text in documents, the OCR program could extract the text from the image of a magazine page in about a second. For

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Stut
Robert Cummings wrote: On Tue, 2007-06-12 at 07:29 -0400, tedd wrote: At 7:38 PM +0200 6/11/07, Tijnema wrote: Well, if you think this is the uncrackable* solution, create it and i'll see if I can crack it ;) Tijnema * I hope you don't mean the same uncrackable as AACS did: HD-DVD is

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Stut [EMAIL PROTECTED] wrote: tedd wrote: At 7:38 PM +0200 6/11/07, Tijnema wrote: Well, if you think this is the uncrackable* solution, create it and i'll see if I can crack it ;) Tijnema * I hope you don't mean the same uncrackable as AACS did: HD-DVD is uncrackable ;)

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 15:23 +0200, Tijnema wrote: On 6/12/07, Stut [EMAIL PROTECTED] wrote: tedd wrote: At 7:38 PM +0200 6/11/07, Tijnema wrote: Well, if you think this is the uncrackable* solution, create it and i'll see if

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 15:09 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 07:29 -0400, tedd wrote: At 7:38 PM +0200 6/11/07, Tijnema wrote: Well, if you think this is the

Re: [PHP] any security problems with this?

2007-06-12 Thread Eric Butera
On 6/12/07, Ross [EMAIL PROTECTED] wrote: I have a page of functions that I include in my page head. In this I have a function to connect. I can then just call this on each page when i need it. Does doing it this way cause any potential security risks? function connect() { $host=localhost;

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 15:09 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 07:29 -0400, tedd wrote: At 7:38 PM +0200 6/11/07, Tijnema wrote: Well, if you think this is the uncrackable* solution, create it and i'll see if I can

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 15:23 +0200, Tijnema wrote: On 6/12/07, Stut [EMAIL PROTECTED] wrote: tedd wrote: At 7:38 PM +0200 6/11/07, Tijnema wrote: Well, if you think this is the uncrackable* solution, create it and i'll see if I can crack it ;) Tijnema * I hope you

[PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Tommy Peterson
All: I can't seem to connect to a SQL Server database with PHP. I have read the php.net documentation and so many other forums on the Internet that my eyes were literally blood shot. Today I thought I would try this route. I have PHP and Apache installed on my local machine. They work fine as I

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 15:46 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 15:23 +0200, Tijnema wrote: On 6/12/07, Stut [EMAIL PROTECTED] wrote: tedd wrote: At 7:38 PM +0200 6/11/07, Tijnema wrote: Well, if you think

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 15:46 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 15:23 +0200, Tijnema wrote: On 6/12/07, Stut [EMAIL PROTECTED] wrote: tedd wrote: At 7:38 PM +0200

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 16:23 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 15:46 +0200, Tijnema wrote: Nope, it does actually check for Submit.x and Submit.y ;) DOH! :) Cheers, Rob. You seem pretty sure about it, what if he

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 16:23 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 15:46 +0200, Tijnema wrote: Nope, it does actually check for Submit.x and Submit.y ;) DOH! :) Cheers,

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robin Vickery
On 10/06/07, Dave M G [EMAIL PROTECTED] wrote: PHP General List, 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

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 16:33 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 16:23 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 15:46 +0200, Tijnema wrote: Nope, it does actually

Re: [PHP] What can cause session_destroy to fail?

2007-06-12 Thread Mattias Thorslund
Jim Lucas wrote: Mattias Thorslund wrote: Hi, One of my clients just received a PHP warning that session_destroy() failed. Using the default session handler (with tmp files), what are the most likely things that can cause session_destroy() to return false? Thanks for any suggestions.

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 15:35 +0100, Robin Vickery wrote: On 10/06/07, Dave M G [EMAIL PROTECTED] wrote: PHP General List, 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.

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread zerof
This is another intersting example of CAPTCHA, from - Carnegie Mellon University: http://recaptcha.net/ -- zerof http://www.educar.pro.br/ Apache - PHP - MySQL - Boolean Logics - Project Management -- Você deve, sempre, consultar uma

RE: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Edward Kay
All: I can't seem to connect to a SQL Server database with PHP. I have read the php.net documentation and so many other forums on the Internet that my eyes were literally blood shot. Today I thought I would try this route. I have PHP and Apache installed on my local machine. They work fine

Re: [PHP] What can cause session_destroy to fail?

2007-06-12 Thread Jim Lucas
Mattias Thorslund wrote: Jim Lucas wrote: Mattias Thorslund wrote: Hi, One of my clients just received a PHP warning that session_destroy() failed. Using the default session handler (with tmp files), what are the most likely things that can cause session_destroy() to return false? Thanks for

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 11:53 -0300, zerof wrote: This is another intersting example of CAPTCHA, from - Carnegie Mellon University: http://recaptcha.net/ That's a pretty cool idea... doesn't necessarily improve CAPTCHA per se, but it does give it some usefulness beyond preventing spam.

Re: [PHP] What can cause session_destroy to fail?

2007-06-12 Thread Mattias Thorslund
Jim Lucas wrote: Mattias Thorslund wrote: Jim Lucas wrote: Mattias Thorslund wrote: Hi, One of my clients just received a PHP warning that session_destroy() failed. Using the default session handler (with tmp files), what are the most likely things that can cause session_destroy() to

Re: [PHP] Re: efficient log system

2007-06-12 Thread Jim Lucas
Christian Hänsel wrote: Hello Alain, I can just tell you from my experience. I have recently created a, in my eyes, pretty big project, and wanted to track everything, starting from user navigation over search queries to login/out times, article printout times and count, photo views and

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread tedd
At 2:12 PM +0100 6/12/07, Stut wrote: The submit image is bigger than the circle, and I'm guessing Tedd is checking the coords passed through. -Stut Yes, that's all the technique does for now. It just checks the submit x and submit y and determines if those coordinates lie within the

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 11:49 -0400, tedd wrote: At 2:12 PM +0100 6/12/07, Stut wrote: The submit image is bigger than the circle, and I'm guessing Tedd is checking the coords passed through. -Stut Yes, that's all the technique does for now. It just checks the submit x and submit y and

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 11:56 -0400, Robert Cummings wrote: On Tue, 2007-06-12 at 11:49 -0400, tedd wrote: At 2:12 PM +0100 6/12/07, Stut wrote: The submit image is bigger than the circle, and I'm guessing Tedd is checking the coords passed through. -Stut Yes, that's all the

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 12:01 -0400, Robert Cummings wrote: On Tue, 2007-06-12 at 11:56 -0400, Robert Cummings wrote: (1 * 100) / 100 = .10 = 10% of the time Bad math alert... (1 * 100) / 100 = 10;) Still the same answer though, was just mixing what I wrote with

Re: [PHP] efficient log system

2007-06-12 Thread Eric Butera
On 6/12/07, Alain Roger [EMAIL PROTECTED] wrote: Hi, I would like to create a log system to keep a trace of all users' actions (log-in, remove, change or update data, and so on...). What should i do or to what should i take care to not have problem ? I was thinking to create a folder on my

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 12:01 -0400, Robert Cummings wrote: On Tue, 2007-06-12 at 11:56 -0400, Robert Cummings wrote: (1 * 100) / 100 = .10 = 10% of the time Bad math alert... (1 * 100) / 100 = 10;) Still the

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
I am sure I am on the right track. Register globals is turned on! I am getting the following error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[''] LIMIT 0, 1' at line 1 mysql_select_db($database_ftn,

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 18:19 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 12:01 -0400, Robert Cummings wrote: On Tue, 2007-06-12 at 11:56 -0400, Robert Cummings wrote: (1 * 100) / 100 = .10 = 10% of the time Bad

[PHP] php script from bat file

2007-06-12 Thread Bosky, Dave
What's the syntax I need to use to execute a PHP script from a batch file? PHP is installed in 'C:\PHP' and the script I want to run is in 'C:\Inetpub\scripts\run.php'. I've created a Windows batch file which executes from the 'C:\PHP' directory and contains a single line 'php.exe

RE: [PHP] php script from bat file

2007-06-12 Thread Jay Blanchard
[snip] What's the syntax I need to use to execute a PHP script from a batch file? PHP is installed in 'C:\PHP' and the script I want to run is in 'C:\Inetpub\scripts\run.php'. I've created a Windows batch file which executes from the 'C:\PHP' directory and contains a single line 'php.exe

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 12:19 -0400, BSumrall wrote: I am sure I am on the right track. Register globals is turned on! I am getting the following error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near

Re: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Jim Lucas
BSumrall wrote: I am sure I am on the right track. Register globals is turned on! I am getting the following error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[''] LIMIT 0, 1' at line 1

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
The purpose for register_globals is for testing and functionality purposes only. Every single example on the internet is for register_globals = on. I am very aware of the security risk of it. Get it working and then change it back. There is plenty of literature on how to edit existing working code

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
It doesn't like the curly brackets either! Brad -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 12:39 PM To: BSumrall Cc: php-general@lists.php.net Subject: Re: [PHP] Looking for help with forms/variables and an array! BSumrall wrote: I am

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 18:19 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 12:01 -0400, Robert Cummings wrote: On Tue, 2007-06-12 at 11:56 -0400, Robert Cummings wrote:

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 13:02 -0400, BSumrall wrote: The purpose for register_globals is for testing and functionality purposes only. Every single example on the internet is for register_globals = on. That's no excuse... and you're wrong. I am very aware of the security risk of it. Ok... and

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 19:23 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 18:19 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 12:01 -0400, Robert Cummings wrote: On Tue, 2007-06-12

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 19:23 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 18:19 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 12:01

Re: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Jim Lucas
BSumrall wrote: It doesn't like the curly brackets either! Brad if this is within PHP, the '{' and '}' are within double quotes (which they seem to be), These examples should all do the same thing. $query_Recordset1 = SELECT * FROM lstng_tbl WHERE price_range = '$select1';

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 19:34 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 19:23 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 18:19 +0200, Tijnema wrote: On 6/12/07, Robert Cummings

Re: [PHP] php script from bat file

2007-06-12 Thread Tijnema
On 6/12/07, Bosky, Dave [EMAIL PROTECTED] wrote: What's the syntax I need to use to execute a PHP script from a batch file? PHP is installed in 'C:\PHP' and the script I want to run is in 'C:\Inetpub\scripts\run.php'. I've created a Windows batch file which executes from the 'C:\PHP'

RE: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Jim Moseby
-Original Message- From: Tijnema [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 1:34 PM To: Robert Cummings Cc: tedd; Stut; Jim Lucas; php-general@lists.php.net Subject: Re: [PHP] Going from simple to super CAPTCHA On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote:

Re: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Dan Shirah
In my PHP page I have the following: $sql = mssql_connect (xx.xx.xx.xx:, xx, xx); $conn=mssql_select_db(xx, $sql); Since both servers are within your local network, you should be able to connect as follows: $connection = mssql_connect('SERVERNAME','username','password') or die ('Cannot

Re: [PHP] php script from bat file

2007-06-12 Thread Richard Lynch
php.exe expects a PHP script as an argument, usually. You can run it interactively with -a or use -i to get phpinfo output and so on, but php.exe with nothing at all will run and not do much of anything. On Tue, June 12, 2007 11:30 am, Bosky, Dave wrote: What's the syntax I need to use to

[PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
I have set up our new Chisimba blog system (GPL, http://avoir.uwc.ac.za) to blog all of the posts to this list. Please check it out at http://196.21.45.50/fsiu/chisimba_framework/app/index.php?module=blogaction=allblogs and let me know what you think! Thanks --Paul All Email originating from

Re: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Richard Lynch
You may want to try using the Sybase drivers. MS basically bought Sybase and re-named it MS SQL and then broke a lot of stuff :-) One of the things they haven't broken (yet) is the basic Sybase driver functionality to send queries. For sure, ' versus won't make any difference. You may want to

Re: [PHP] any security problems with this?

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 7:01 am, Ross wrote: I have a page of functions that I include in my page head. In this I have a function to connect. I can then just call this on each page when i need it. Does doing it this way cause any potential security risks? Of course there is risk. Everything

[PHP] Effect of syntax error in php.ini

2007-06-12 Thread Clive Gould
Hi I have come across some very strange behavior with php-4.3.9-3.22.5 when using Moodle 1.8+ on a CentOS 4.5 Linux platform. If I accidentally corrupt the php.ini file as follows and restart Apache all is well and admin/index.php displays correctly. The corrupt section in php.ini is shown

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 7:58 am, Eric Butera wrote: On 6/12/07, Stut [EMAIL PROTECTED] wrote: Dave Goodchild wrote: Unless some server config error causes that stuff to be output on the page? I tend to put such functions in a .inc file and amend the .htaccess to prevent download. Unless

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 8:08 am, Dave Goodchild wrote: Sure, I usually put these files outside the docroot - unless I am in some f**ked-up hosting environment that doesn't let me change the include path... If one finds oneself in such an environment, or one in which there *IS* no directory

Re: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Dan Shirah
Wouldn't a little javascript solve this problem?? Have your first dropdown menu, then when an option is selected use a javascript Onchange function to refresh (post) the page to itself. This would set the selected option as your form1 value. Then just write a simple query using that value to

Re: [PHP] efficient log system

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 6:26 am, Alain Roger wrote: I would like to create a log system to keep a trace of all users' actions (log-in, remove, change or update data, and so on...). What should i do or to what should i take care to not have problem ? I was thinking to create a folder on my

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Daniel Brown
On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 19:34 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 19:23 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 18:19

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 15:06 -0400, Daniel Brown wrote: Okay, here's something I whipped up today: http://pilotpig.com/captcha/index.php Works pretty well, but keep in mind that it's in the very early stages. I randomized the position and size to assist in throwing off Turing

Re: [PHP] Re: efficient log system

2007-06-12 Thread Richard Lynch
Since there are probably a very limited number of actions a user can take, you could probably easily reduce this by numbering each action: define(1, 'logged in'); define(2, 'logged out'); define(3, 'uploaded photo'); Your DB then table might then look like: user_id action_id notes 42 1

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 7:47 am, Stut wrote: Dave Goodchild wrote: Unless some server config error causes that stuff to be output on the page? I tend to put such functions in a .inc file and amend the .htaccess to prevent download. Unless some server config error causes it to ignore

Re: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread David Giragosian
Tommy, Since SQL Server may loom on my horizon, I've tried connecting to a SQL Server 2000 db on my network. I got it to work _without_ any port after the IP in mssql_connect(). I'm using PHP 5.2.0 from windows XP to a Windows 2000 box running SQL Server. I used SQL Server Authentication to

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Eric Butera
On 6/12/07, Richard Lynch [EMAIL PROTECTED] wrote: The downside of that is that something as simple as: ?php phpinfo();? will dump your password out as part of $_ENV or $_SERVER That's probably NOT a good idea in many environments, but an excellent idea in some. Security cannot be evaluated in

Re: [PHP] Effect of syntax error in php.ini

2007-06-12 Thread Richard Lynch
Check Apache error logs. PHP probably just quits reading the php.ini and starts up with the default settings. On Tue, June 12, 2007 1:55 pm, Clive Gould wrote: Hi I have come across some very strange behavior with php-4.3.9-3.22.5 when using Moodle 1.8+ on a CentOS 4.5 Linux platform. If

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 15:06 -0400, Daniel Brown wrote: Okay, here's something I whipped up today: http://pilotpig.com/captcha/index.php Works pretty well, but keep in mind that it's in the very early stages. I randomized

Re: [PHP] PHP list as a blog

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 1:52 pm, Paul Scott wrote: I have set up our new Chisimba blog system (GPL, http://avoir.uwc.ac.za) to blog all of the posts to this list. Please check it out at http://196.21.45.50/fsiu/chisimba_framework/app/index.php?module=blogaction=allblogs and let me know what

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 6:25 am, tedd wrote: At 6:22 PM +0200 6/11/07, Tijnema wrote: Server builds up a database of pictures, client does the same with MD5 check, and problem solved...:) Tijnema Tijnema: Not exactly, I don't think you could MD5 this:

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 21:46 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 15:06 -0400, Daniel Brown wrote: Okay, here's something I whipped up today: http://pilotpig.com/captcha/index.php Works pretty well, but

RE: [PHP] PHP list as a blog

2007-06-12 Thread Jay Blanchard
[snip] I think you should take it DOWN until you can obfuscate the emails. I don't really need yet another place for my email address to be spam-harvested, thank you very much. :-) :-) :-) PS And you've only got 16 Tidy HTML warnings to get rid of before it's valid HTML, so you might as well do

Re: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 3:20 am, BSumrall wrote: Dreamweaver help me with a good part of this, No comment... A selection box has 4 options, php queries the Mysql database for matching options. Then a second options box with another 4 options filters the query even more. When the user

Re: [PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
On Tue, 2007-06-12 at 14:48 -0500, Richard Lynch wrote: I think you should take it DOWN until you can obfuscate the emails. I am working on it at the moment. It seems that it only shows some people's addresses - presumably those that have the reply to thing set? --Paul All Email originating

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 3:34 am, BSumrall wrote: I got a little bit further, but still feel like the monkey with a light-bulb! Could be worse. You could be a monkey with an army. [as in 'W'] :-v -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 21:46 +0200, Tijnema wrote: On 6/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-06-12 at 15:06 -0400, Daniel Brown wrote: Okay, here's something I whipped up today:

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Richard Lynch
AJAX simply creates an HTTP dialog between the browser and a server (probably your server) for an ongoing interactive user experience. There is nothing specific to Microsoft about it, other than that Microsoft actually did first create the XmlHttpRequest object for some other stupid purpose,

RE: [PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
On Tue, 2007-06-12 at 14:56 -0500, Jay Blanchard wrote: + 10*12^23, I don't want to be that famous. OK, downed it. Will figure out a regular expression to strip out the email addresses when I have had some coffee in the morning --Paul All Email originating from UWC is covered by disclaimer

  1   2   >