Re: [PHP] My own "captcha" from 2 years ago......

2007-03-25 Thread Tijnema !
On 3/26/07, Jake McHenry <[EMAIL PROTECTED]> wrote: Like I said... Even if they have sound turned on.. Which all my sets do... Most of them don't have speakers... That was put into effect over a year ago due to some people listening to those damn screaming prank things at full volume... Anyways..

Re: [PHP] Optimization of all mysql databases on a server

2007-03-25 Thread Tijnema !
On 3/26/07, Chris <[EMAIL PROTECTED]> wrote: itoctopus wrote: > The purpose of this script is to optimize all associated tables in all > databases on a mysql server. This script is working great, you can put in a > CRON and run it every day. Feel free to throw in your 2 cents! It's going to time

[PHP] Re: SNMP support on compile from source FastCGI

2007-03-25 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 3/26/07, Matt Arnilo S. Baluyos (Mailing Lists) <[EMAIL PROTECTED]> wrote: Hello everyone, I'm trying to add the SNMP module with a compile-from-source PHP 5.2.1 installation. This is on a Fedora Core 5 system with target web server being lighttpd. This is the configure script that I have: .

[PHP] SNMP support on compile from source FastCGI

2007-03-25 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, I'm trying to add the SNMP module with a compile-from-source PHP 5.2.1 installation. This is on a Fedora Core 5 system with target web server being lighttpd. This is the configure script that I have: ./configure --enable-fastcgi --enable-discard-path --enable-force-redirect --wi

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-25 Thread Jake McHenry
Like I said... Even if they have sound turned on.. Which all my sets do... Most of them don't have speakers... That was put into effect over a year ago due to some people listening to those damn screaming prank things at full volume... Anyways... I was searching the php site, and it said there used

Re: [PHP] Important Design Patterns

2007-03-25 Thread Travis Doherty
Tijnema ! wrote: > On 3/25/07, PHP Developer <[EMAIL PROTECTED]> wrote: > >> hello all, >> As we know, there are a lot of php design patterns(more than 20). I >> want to know that which patterns are important and necessary for ZCE >> exam. >> PHP5 Study Guide only covers Singleton,Factory,Registry

RE: [PHP] What is wrong with this function please?

2007-03-25 Thread Jake McHenry
Ok.. It all looks ok... I did some googling and found that Exchange requires the Message-ID to be unique Which it really should be anyways... and yours isn't. try adding time() or something to make it unique :) Jake > -Original Message- > From: Robin Wilson [mailto:[EMAIL PROTECTED]

Re: [PHP] What is wrong with this function please?

2007-03-25 Thread Zoltán Németh
2007. 03. 25, vasárnap keltezéssel 19.25-kor Robin Wilson ezt írta: > Thanks for the help > > The line returns are specified as "\r\n" but in the echo they seem to all be > on one line. Could that be related to the problem. Also the addresses are > specified but seem to have been removed??? \r\

Re: [PHP] Re: My own "captcha" from 2 years ago......

2007-03-25 Thread tedd
At 5:05 PM +0200 3/25/07, Dotan Cohen wrote: On 25/03/07, tedd <[EMAIL PROTECTED]> wrote: What about an audio Captcha? Your thoughts? tedd I do a lot of my browsing at the university library. I can't have any sound being made there each time I must enter a capcha. Don't use audio, or provide

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-25 Thread tedd
At 10:49 AM -0400 3/25/07, Jake McHenry wrote: Do I call the image creation file in an html Jake The audio is for visually impaired and unless their also deaf, they have sound turned on. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mai

Re: [PHP] Re: Book Suggestion for ZCE

2007-03-25 Thread Zoltán Németh
2007. 03. 24, szombat keltezéssel 14.00-kor itoctopus ezt írta: > Sams - Zend Php Certification Study Guide for the certification. > An excellent book on PHP is PHP5 Power Programming (by Prentice Hall). also a great book about PHP5 is: Advanced PHP Programming (by George Schlossnagle) greets Zol

Re: [PHP] Optimization of all mysql databases on a server

2007-03-25 Thread Chris
itoctopus wrote: The purpose of this script is to optimize all associated tables in all databases on a mysql server. This script is working great, you can put in a CRON and run it every day. Feel free to throw in your 2 cents! It's going to time out if you have any large databases or tables. A

[PHP] OT: firstname-lastname fun - SOLVED :) (was: Re: [PHP] preview string with strlen PHP (help))

2007-03-25 Thread Zoltán Németh
2007. 03. 23, péntek keltezéssel 20.36-kor Tijnema ! ezt írta: > On 3/23/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: > > 2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: > > > YES this works thank nemeth: > > > > your welcome but please call me Zoltán ;) > > (my first name is Z

Re: [PHP] References challenge with PHP4

2007-03-25 Thread Martin Alterisio
2007/3/23, Jochem Maas <[EMAIL PROTECTED]>: Martin Alterisio wrote: > 2007/3/20, Jochem Maas <[EMAIL PROTECTED] >: > > Robert Cummings wrote: > > On Tue, 2007-03-20 at 11:52 +0100, Jochem Maas wrote: > >> ok, I tried it in a whole number of variations - > >> no joy. > >> >

[PHP] Re: how to control if it is a date

2007-03-25 Thread Al
I try to use drop-down menus whenever possible for things like this; one each for days months years Then all one needs to do is check for valid dates with checkdate() Alain Roger wrote: Hi, user can enter a string with following format dd.mm.. Application should transform it to postgresq

[PHP] Re: High quality image resizing

2007-03-25 Thread Al
Let's see an example of an image you'd like to resize and tell us what the new size should be. Markus Fischer wrote: Hi, I'm searching for a high quality image resizing facility to be used within PHP in an Unix/Linux environment. Probably everyone will now answer: imagecopyresampled() Howeve

[PHP] form validation

2007-03-25 Thread al phillips
I''ve tried !preg_match and !eregi to validate my form. I get back whatever the user inputs into the textboxes. I would like to validate each textbox before submitting and redirect the user after submission? Here's part of the code Please enter Letters from A to Z'; } -

Re: [PHP] What is wrong with this function please?

2007-03-25 Thread Robin Wilson
Thanks I'll have a look at this. Robin "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] phpmailer.sourceforge.net - a mailing class for php that does everything you need, there are other alternatives - definitely beats fiddling with all the required headers yourself.

Re: [PHP] What is wrong with this function please?

2007-03-25 Thread Robin Wilson
Thanks for the help The line returns are specified as "\r\n" but in the echo they seem to all be on one line. Could that be related to the problem. Also the addresses are specified but seem to have been removed??? This is what I specified: $eol="\r\n"; $mime_boundary=md5(time()); # Common

Re: [PHP] Computing and calculating dates

2007-03-25 Thread Otto Wyss
Sorry that doesn't work with dates like "1.4.2007". O. Wyss Jake McHenry wrote: Change it to the format strtotime needs? Not hard Or mktime(0, 0, 0, date("m", $date), date("d", $date)+7, date("Y", $date)); for +7 days... Same with + 14 days Strtotime is usefull, you can just put first d

Re: [PHP] OT - How to code a link to download a file (program file)

2007-03-25 Thread Tijnema !
On 3/25/07, Lorin Lund <[EMAIL PROTECTED]> wrote: I have a web site where I have posted some programs I have written as shareware. click here to download works great with mozilla but with MS IE it tries to display the program. What is the simplest way to set it up so that the user just clicks o

Re: [PHP] Re: My own "captcha" from 2 years ago......

2007-03-25 Thread Dotan Cohen
On 25/03/07, tedd <[EMAIL PROTECTED]> wrote: What about an audio Captcha? Your thoughts? tedd I do a lot of my browsing at the university library. I can't have any sound being made there each time I must enter a capcha. Don't use audio, or provide an alternative. Dotan Cohen http://lyricsli

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-25 Thread Jake McHenry
Do I call the image creation file in an html -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 25, 2007 10:33 AM > To: Jake McHenry; php-general@lists.php.net > Subject: Re: [PHP] My own "captcha" from 2 years ago.. > > At 11:28 PM -0400 3/24/07, Jake Mc

Re: [PHP] Re: My own "captcha" from 2 years ago......

2007-03-25 Thread tedd
This is btw not a very useful CAPTCHA, because it should stop computers from submitting data, but a little bit smart programmer knows that he has to get session information from the image, and submit that to the form. Or what i saw used lately by a cracker, he was just using his own values in sess

Re: [PHP] My own "captcha" from 2 years ago......

2007-03-25 Thread tedd
At 11:28 PM -0400 3/24/07, Jake McHenry wrote: Well, I've been creating my own... Since like two years ago... Lol.. But this is the KNOWN name now. Anyways... How can I get the info from the image creation script back to my main script? Sessions DO NOT WORK! They give me the previous entry in

Re: [PHP] Important Design Patterns

2007-03-25 Thread Jochem Maas
Tijnema ! wrote: > On 3/25/07, PHP Developer <[EMAIL PROTECTED]> wrote: >> hello all, >> As we know, there are a lot of php design patterns(more than 20). I >> want to know that which patterns are important and necessary for ZCE >> exam. >> PHP5 Study Guide only covers Singleton,Factory,Registry,MV

Re: [PHP] Re: newbie question about storing big5 codes into mysql-5.0.24a

2007-03-25 Thread Jochem Maas
Man-wai Chang wrote: >> queries in the command-line MySQL client. If it works there but not >> through mysqli_query() then you might have a case for asking here. > > For the 13081 chinese alphabets I tried, only 1 one failed, and it's > 0x9f54. mysqli_query() should have escaped the string for me.

[PHP] OT - How to code a link to download a file (program file)

2007-03-25 Thread Lorin Lund
I have a web site where I have posted some programs I have written as shareware. click here to download works great with mozilla but with MS IE it tries to display the program. What is the simplest way to set it up so that the user just clicks on the link and the program gets downloaded for stor

[PHP] Re: newbie question about storing big5 codes into mysql-5.0.24a

2007-03-25 Thread Man-wai Chang
> queries in the command-line MySQL client. If it works there but not > through mysqli_query() then you might have a case for asking here. For the 13081 chinese alphabets I tried, only 1 one failed, and it's 0x9f54. mysqli_query() should have escaped the string for me. So ... I suppose most PHP p

Re: [PHP] Important Design Patterns

2007-03-25 Thread Tijnema !
On 3/25/07, PHP Developer <[EMAIL PROTECTED]> wrote: hello all, As we know, there are a lot of php design patterns(more than 20). I want to know that which patterns are important and necessary for ZCE exam. PHP5 Study Guide only covers Singleton,Factory,Registry,MVC and ActiveRecord. But i stil

Re: [PHP] Check a string does not contain invalid characters

2007-03-25 Thread Jochem Maas
John Comerford wrote: > Hi Folks, > > I am new to php. > > I want to accept a character string which I will use as a unique user > id. I want to check the string to ensure the user has not typed > characters that I consider to be invalid as part of a user id. I was > thinking of doing something

[PHP] Important Design Patterns

2007-03-25 Thread PHP Developer
hello all, As we know, there are a lot of php design patterns(more than 20). I want to know that which patterns are important and necessary for ZCE exam. PHP5 Study Guide only covers Singleton,Factory,Registry,MVC and ActiveRecord. But i still feel that more patterns are necessary for the exam. C

[PHP] Important Design Patterns

2007-03-25 Thread PHP Developer
hello all, As we know, there are a lot of php design patterns(more than 20). I want to know that which patterns are important and necessary for ZCE exam. PHP5 Study Guide only covers Singleton,Factory,Registry,MVC and ActiveRecord. But i still feel that more patterns are necessary for the exam. C

[PHP] Imp

2007-03-25 Thread PHP Developer
hello all, As we know, there are a lot of php design patterns(more than 20). I want to know that which patterns are important and necessary for ZCE exam. PHP5 Study Guide only covers Singleton,Factory,Registry,MVC and ActiveRecord. But i still feel that more patterns are necessary for the exam. C

Re: [PHP] Re: My own "captcha" from 2 years ago......

2007-03-25 Thread Tijnema !
On 3/25/07, Jake McHenry <[EMAIL PROTECTED]> wrote: Sorry.. Was playing around with dates and how long I've been sitting here watching this generate random numbers. Lol .. The only lines referring to the "captcha" are the img lines... As you can tell... Calling the next script... Should

Re: [PHP] Name Capitalization

2007-03-25 Thread Tijnema !
On 3/24/07, Paul Novitski <[EMAIL PROTECTED]> wrote: At 3/23/2007 07:27 PM, Richard Lynch wrote: > > In this case, the OP has an existing list of names he wants to > > de-capitalize, not an ongoing stream of new names from people who > > might be trained. > >The solution remains: > >Hire a human.

Re: [PHP] Re: newbie question about storing big5 codes into mysql-5.0.24a

2007-03-25 Thread Stut
Man-wai Chang wrote: >>> create table temp ( big5 char(2) ) character set big5 collate big5_bin; >>> insert into temp ( big5 ) values ( 0x9f54 ); >>> insert into temp ( big5 ) values ( 0x9f53 ); >>> The 2nd query will report duplicated key. How should I fix the problem? >> What does this has to do

Re: [PHP] Array Question

2007-03-25 Thread Stut
[EMAIL PROTECTED] wrote: $count=count($data->legs->leg); $k=0; while($k < $count) { $legrow["$data->legs->leg[$k]['legId']"]=$data->legs->leg[$k]['depApt'].$VM.$data->legs->leg[$k]['depTime'].$VM.$data->legs->leg[$k]['dstApt'].$VM.$data->legs->leg[$k