Re: [PHP] Audio CAPTCHA review request

2007-03-31 Thread Richard Lynch
On Thu, March 29, 2007 3:50 pm, tedd wrote: >>And because you can't do anything on the internet without bumping >>into adult material. Don't worry, this is safe... no pics or bad >>words, just an article about using porn sites to break visual >>CAPTCHA. The spambots would take your visual CAPTCHA

Re: [PHP] Audio CAPTCHA review request

2007-03-31 Thread Richard Lynch
On Thu, March 29, 2007 6:46 pm, TG wrote: > On Thu, March 29, 2007 3:45 pm, Tijnema ! wrote: >> You're maybe on the right path, adding images as the background >> makes >> it really hard to read the code from the image. You could for >> example >> use random images as background. > > Some of the CA

Re: [PHP] Form Handler Script Security Discussion

2007-03-31 Thread Richard Lynch
On Thu, March 29, 2007 10:25 am, cajbecu wrote: >> >> And even then, some smart programmers are probably going to find a >> way >> to read your image code :) >> > > that, of course, if your app will be an interface to client`s bank > account, with online management. :) One does have to balance Ris

Re: [PHP] Form Handler Script Security Discussion

2007-03-31 Thread Richard Lynch
On Thu, March 29, 2007 10:06 am, Daniel Brown wrote: > Just wondering how many of you actually use any type of secure > coding > when doing form processing. Always. For all new code. I can't possibly go back and re-write every script everywhere I ever wrote over the past decade, though... W

Re: [PHP] Audio CAPTCHA review request

2007-03-31 Thread Richard Lynch
I am relatively certain that the QUICKTIME instructions are irrelevant on Linux... Unless they finally released QT for Linux while I wasn't paying attention... On Fri, March 30, 2007 1:15 am, Zoltán Németh wrote: > 2007. 03. 29, csütörtök keltezéssel 22.00-kor Tijnema ! ezt írta: >> On 3/29/

Re: [PHP] CURL questions

2007-03-31 Thread Richard Lynch
On Thu, March 29, 2007 11:15 am, Angelo Zanetti wrote: > I have a script on a server that does some processing, now I want to > execute that script using cURL. This is a basic scenario and I assume > its possible but its not working. > I get a 500 Internal server error, not sure why as this page

Re: [PHP] pdo::lastInsertId() error with SQL Server

2007-03-31 Thread Richard Lynch
On Thu, March 29, 2007 12:57 pm, Sady Marcos wrote: > > hey.. > I am not obtaining use the function pdo::lastInsertId() with sql > My code: > > $db = new PDO("mssql:host=host;dbname=database","user","password"); > $sql = "INSERT INTO users(name,status) VALUES('username','1)"; Are you really mi

Re: [PHP] Gnome and MIME types

2007-03-31 Thread Richard Lynch
On Fri, March 30, 2007 11:20 am, Nathan Ziarek wrote: > I'm capturing the output of exec in an array -- exec("command", > $array); > > Shouldn't $array have the error from bash? Nope. Errors go to stderr, and output goes to stdout, and never the 'twain shall meet. Unless you re-direct in your

Re: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-31 Thread Richard Lynch
On Fri, March 30, 2007 2:29 pm, [EMAIL PROTECTED] wrote: > For those of you not following, what tedd's done with is blue dot is > created a larger image that contains a blue dot somewhere. You can > click in a fairly wide area, but only clicking on the blue dot yields > a success. But it's probab

Re: [PHP] Gnome and MIME types

2007-03-31 Thread Richard Lynch
exec takes a couple optional args to get your error code and output. Use them. Then use perror on the command line to see what error code means. Or I guess you could install my perror extension, if you were bored: http://l-i-e.com/perror All that said, I'm not at all sure why you are trying to

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-31 Thread Richard Lynch
On Fri, March 30, 2007 11:54 am, [EMAIL PROTECTED] wrote: > Maybe I'm missing something.. if the intent is to have 'hidden' > fields that a user would end up submitting but a bot wouldn't.. that > wouldn't work very well. A bot could easily see the hidden fields and > submit them along with whate

Re: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-31 Thread Richard Lynch
On Thu, March 29, 2007 7:33 pm, John Comerford wrote: > I was reading the current tread on CAPTCHA and possible cracks and I > thought maybe I'd throw this out to the group to see what you think. > Recently I saw a forum where in order to post you first had to click > on > a div that was placed at

Re: [PHP] simple page not found 404 script - PHP

2007-03-31 Thread Richard Lynch
On Fri, March 30, 2007 8:18 am, Zoltán Németh wrote: > actually I don't know what the problem is, but I would do it in a much > shorter way: > > $pagename = $_GET['catcode']; > if(file_exists("$pagename")) { > include "$pagename"; > } else { > include "404.php"; > } You really ought to be filter

Re: [PHP] tabbed navegation PHP

2007-03-31 Thread Richard Lynch
You've not quite caught the trick of the difference between == and = if ($page_name = 'default') does not TEST $page_name -- It changes it, and then returns the new value. So, pretty much, your $page_name will ALWAYS be 'default' after you hit this line, no matter what it started out as. When

Re: [PHP] Saving css state in javascript and passing to php via form submit

2007-03-31 Thread Richard Lynch
On Fri, March 30, 2007 12:13 pm, Juergen Wind wrote: > Tijnema ! wrote: >> >> You can use session within javascript too i believe. >> > no, sessions are completely serverside, but you can use js to pass > variables > using the query string when sending a xmlHttpRequest. [pedantic] Actually, the co

Re: [PHP] Saving css state in javascript and passing to php via form submit

2007-03-31 Thread Richard Lynch
On Sat, March 31, 2007 4:11 am, Tijnema ! wrote: > I've did a few test on this PC(AMD64 3200+), it's running EasyPHP > (Apache+PHP+MySQL), and it shows me that PHP is about twice as fast > then Javascript.(Tested using IE6, FF wasn't working because script > took too long to execute, which generate

Re: [PHP] Saving css state in javascript and passing to php via form submit

2007-03-31 Thread Richard Lynch
On Fri, March 30, 2007 9:45 am, Tim wrote: > My issue is on page reload, i have a form on the same page, when a > category > is clicked, the categorie info displays and you can update the info > through > this form (table and form on same page). My issue comes when i post > the > data, the page com

[PHP] Re: 0x9f54

2007-03-31 Thread Man-wai Chang
>> MySQL? MSSQL? PgSQL? >> Tijnema > It seems he wanted to insert a Chinese character with that hex value. Yes... I tried the insert with PHP, including the use of mysql_real_escape_string(), but MySQL still gave me a blank only. -- .~. Might, Courage, Vision, SINCERITY. http://www.linux

RE: [PHP] Parsing database variables

2007-03-31 Thread Richard Lynch
Document in your code that the order is significant -- so you don't screw up on a year or so and re-order it more pretty. Been there. Done that. On Fri, March 30, 2007 7:00 pm, Jake McHenry wrote: > Ok, this is working good, except for one problem... I have variable > $pay_rate and $pay_rate_b

Re: [PHP] FastCGI + PHP5

2007-03-31 Thread Richard Lynch
On Fri, March 30, 2007 6:00 pm, Stevie wrote: > Hi all. > > anyone using FastCGI + PHP + Apache 1.3. ? > I've been trying for two days and i can't seem to configure apache > with > php fastcgi. > > i have php set with: > > ../configure --enable-fastcgi \ > --enable-discard-path \ > --enable-for

Re: [PHP] newbie question about debuging

2007-03-31 Thread Richard Lynch
On Sat, March 31, 2007 8:53 am, Tijnema ! wrote: > On 3/31/07, buFka <[EMAIL PROTECTED]> wrote: > Hmm, in your image i see Database 'testdb' not found. Followed by a > link. What happens if you click on that link? > I don't know anything about Oracle/pOWL, but it looks like the script > can't conne

[PHP] Google-Yahoo venture and PHP

2007-03-31 Thread Matt Kay
I really dont see what all the fuss is about. If MS is going to have us all running on thin clients, and Google/Yahoo want to beat them to the punch, is this really going to matter who we pay? The article on digg.com http://digg.com/tech_news/Google_Yahoo_Merger_Redefines_Access simply means we wi

Re: [PHP] Speed of apache/php4 on windows

2007-03-31 Thread Richard Lynch
On Sat, March 31, 2007 3:49 pm, Don Don wrote: > Hi all, i've got apache/php4 running on windows xp with good hardware > configuration etc. However, the speed of execution of php pages is > really slow. When testing on my local development machine it takes a > few more seconds executing php files

[PHP] Security Best Practice: typecast?

2007-03-31 Thread Richard Lynch
So, after a recent thread on data filtering, I'm wondering... Is this "good enough" in ALL possible Unicode/charset situations: $foo_id = (int) $_POST['foo_id']; $query = "insert into whatever(foo_id) values($foo_id)"; Or is it possible, even theoretically possible, for a sequence of: [-]?[0-9]+

Re: [PHP] PDO and buffered queries

2007-03-31 Thread Larry Garfield
So there's no PDO experts out there, eh? :-( On Wednesday 28 March 2007 11:14 pm, Larry Garfield wrote: > HI all. The PHP.net manual is somewhat unclear on this point, so I thought > I'd ask here. Does PDO automatically buffer queries the way that the > mysql_* extension does, in order to allow

[PHP] Re: Speed of apache/php4 on windows

2007-03-31 Thread itoctopus
Few seconds more? Even a second is a lot, typically, you measure the speed of a php script in microseconds. I have PHP5+Apache running on my windows XP laptop (which is not state of the art) and it's quite fast. I believe you have an installed software on your machine that is causing this. Try to r

[PHP] Re: Speed of apache/php4 on windows

2007-03-31 Thread itoctopus
Few seconds more? Even a second is a lot, typically, you measure the speed of a php script in microseconds. I have PHP5+Apache running on my windows XP laptop (which is not state of the art) and it's quite fast. I believe you have an installed software on your machine that is causing this. Try to r

[PHP] Speed of apache/php4 on windows

2007-03-31 Thread Don Don
Hi all, i've got apache/php4 running on windows xp with good hardware configuration etc. However, the speed of execution of php pages is really slow. When testing on my local development machine it takes a few more seconds executing php files than it should normally take. How can I up th

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-31 Thread Tijnema !
On 3/31/07, tedd <[EMAIL PROTECTED]> wrote: At 3:33 PM -0400 3/30/07, <[EMAIL PROTECTED]> wrote: >Ah ok.. that makes a bit more sense. Even still.. anyone who's >going out of their way to program a bot to defeat your specific >CAPTCHA mechanism will probably notice the failure in testing. > >Unl

Re: [PHP] Parsing database variables

2007-03-31 Thread Jochem Maas
Chris Boget wrote: >> But this is a much better way of doing this than using eval(). eval > is an evil little function! > > eval() isn't so bad if you have absolute, total and complete control > over the data you are pulling or using. it remains bad if there is another way to do the same thing.

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-31 Thread tedd
At 3:33 PM -0400 3/30/07, <[EMAIL PROTECTED]> wrote: Ah ok.. that makes a bit more sense. Even still.. anyone who's going out of their way to program a bot to defeat your specific CAPTCHA mechanism will probably notice the failure in testing. Unless you made a failure behave similar to a succ

Re: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-31 Thread Tijnema !
On 3/31/07, tedd <[EMAIL PROTECTED]> wrote: At 4:04 PM -0400 3/30/07, Jake McHenry wrote: > > Tijnema & John: >> >> The above link I've already done a long time ago. But check out my >> dot CAPTCHA here: >> > > http://sperling.com/examples/p-captcha > > > >Maybe I'm going blind.. But I don't

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-31 Thread tedd
At 3:48 PM -0400 3/30/07, Jason Pruim wrote: On Mar 30, 2007, at 3:17 PM, tedd wrote: At 12:54 PM -0400 3/30/07, <[EMAIL PROTECTED]> wrote: Maybe I'm missing something.. if the intent is to have 'hidden' fields that a user would end up submitting but a bot wouldn't.. that wouldn't work very

RE: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-31 Thread tedd
At 4:04 PM -0400 3/30/07, Jake McHenry wrote: > Tijnema & John: The above link I've already done a long time ago. But check out my dot CAPTCHA here: > http://sperling.com/examples/p-captcha > Maybe I'm going blind.. But I don't see a circle on that page anywhere? Everywhere I click it f

Re: [PHP] Parsing database variables

2007-03-31 Thread Jochem Maas
Myron Turner wrote: > Jake McHenry wrote: ... >> >> >> > I would suggest writing a function in which the parameters are passed in > as references. In the function itself have set a variables using the > heredoc syntax, which incorporates the variables, and then return the > heredoc variable.

RE: [PHP] Parsing database variables

2007-03-31 Thread Jake McHenry
Yep, that's what I did last night right after I sent the email out... All is working good now.. THANKS! Jake > -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 31, 2007 4:15 AM > To: Jake McHenry > Cc: php-general@lists.php.net > Subject: Re: [PHP]

Re: [PHP] Saving css state in javascript and passing to php via form submit

2007-03-31 Thread Jochem Maas
Tijnema ! wrote: > On 3/31/07, Jochem Maas <[EMAIL PROTECTED]> wrote: >> Tijnema ! wrote: .. >> >> 'processing' JSON formatted data is a matter of running a single eval() >> line in javascript!?! >> >> just outputting HTML directly into a div is useful in many simple >> situations but it doesn't

Re: [PHP] newbie question about debuging

2007-03-31 Thread buFka
Tijnema ! wrote: > > Hmm, in your image i see Database 'testdb' not found. Followed by a > link. What happens if you click on that link? > I don't know anything about Oracle/pOWL, but it looks like the script > can't connect to your Oracle database. Did you check if the database > settings are c

Re: [PHP] newbie question about debuging

2007-03-31 Thread Tijnema !
On 3/31/07, buFka <[EMAIL PROTECTED]> wrote: The Database exists: [EMAIL PROTECTED]:~$ sqlplus SYSTEM/[EMAIL PROTECTED] SQL*Plus: Release 10.2.0.1.0 - Production on Sa Mrz 31 15:44:09 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved. Verbunden mit: Oracle Database 10g Enterprise

Re: [PHP] newbie question about debuging

2007-03-31 Thread buFka
The Database exists: [EMAIL PROTECTED]:~$ sqlplus SYSTEM/[EMAIL PROTECTED] SQL*Plus: Release 10.2.0.1.0 - Production on Sa Mrz 31 15:44:09 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved. Verbunden mit: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With t

Re: [PHP] newbie question about debuging

2007-03-31 Thread Tijnema !
On 3/31/07, buFka <[EMAIL PROTECTED]> wrote: Hello, I would like to install pOWL (http://aksw.informatik.uni-leipzig.de/Projects/Powl) with ORACLE. I obey the installation steps. I log in: http://www.picvalley.net/u/26/25123_331.PNG and then then i get this error message http://www.picvalley.

[PHP] newbie question about debuging

2007-03-31 Thread buFka
Hello, I would like to install pOWL (http://aksw.informatik.uni-leipzig.de/Projects/Powl) with ORACLE. I obey the installation steps. I log in: http://www.picvalley.net/u/26/25123_331.PNG and then then i get this error message http://www.picvalley.net/u/26/25124_335.PNG How can I find out

Re: [PHP] Saving css state in javascript and passing to php via form submit

2007-03-31 Thread Tijnema !
On 3/31/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 3/31/07, Jochem Maas <[EMAIL PROTECTED]> wrote: > Tijnema ! wrote: > > On 3/30/07, Jochem Maas <[EMAIL PROTECTED]> wrote: > >> Tim wrote: > >> > > > > > > > > ... > > >> personally I prefer JSON formatted data, for which there are even a > >> c

Re: [PHP] tabbed navegation PHP

2007-03-31 Thread Jim Lucas
Dwayne Heronimo wrote: Dear All, I have made a tabbed navegation with CSS. And if you set class="active" to one of the tabs, it will then be highlighted. So I thought to make this dymamic with PHP. Using the $_GET variable I can get the page name above with something like. $page_name = $_GET['

Re: [PHP] FastCGI + PHP5

2007-03-31 Thread Mario Guenterberg
On Fri, Mar 30, 2007 at 07:00:07PM -0400, Stevie wrote: or this: http://www.webhostingtalk.com/archive/index.php/t-509127-p-1.html Greetings Mario -- - | havelsoft.com - Ihr Service Partner für Open Source | | Tel: 033876-21 966

Re: [PHP] Parsing database variables

2007-03-31 Thread Jim Lucas
Jake McHenry wrote: Ok, this is working good, except for one problem... I have variable $pay_rate and $pay_rate_bap ... It finds $pay_rate first and then it never finds $pay_rate_bap because it changes it to say.. 21_bap... Anyone know of anything else that may work? I have been messing around

Re: [PHP] FastCGI + PHP5

2007-03-31 Thread Mario Guenterberg
On Fri, Mar 30, 2007 at 07:00:07PM -0400, Stevie wrote: > Hi all. > > anyone have any decent docs getting the config working? i guess not many > people using FastCGI w/PHP because it's seems so complicated to setup. > btw i have already installed the fastcgi libs and mod_fastcgi. what > should an

Re: [PHP] Saving css state in javascript and passing to php via form submit

2007-03-31 Thread Tijnema !
On 3/31/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Tijnema ! wrote: > On 3/30/07, Jochem Maas <[EMAIL PROTECTED]> wrote: >> Tim wrote: >> > > > > > > ... >> personally I prefer JSON formatted data, for which there are even a >> couple of >> functions available in newer versions of php (otherwi