[PHP] Re: Which CAPTCHA is the besta?

2007-08-16 Thread Hamza Saglam
Not a script you can install/hack but why don't you have a look at: http://recaptcha.net/ ? Regards, Hamza. ""Tony Di Croce"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I need a CAPTCHA script Which one is the best? (I dont mind if its > somewhat difficult). > -- PHP

[PHP] Re: Render fonts

2007-08-19 Thread Hamza Saglam
Hi Emil, Just an alternative solution you may want to consider.. Rather than converting your captions/headings to images, you can also use the sIFR Image replacement technique. Quote from the the author's description: "sIFR is meant to replace short passages of plain browser te

[PHP] Re: SQL Distinct-like behaviour

2007-08-23 Thread Hamza Saglam
$files = glob("directory/*.jpg"); will give you a list of all the jpg files in the directory, $files_unique = array_unique($files); will get rid of the duplicates and create a shiny new array. Regards, Hamza. PS: glob is case-sensitive so the above will only match *.jpg, and not *.JPG

Re: [PHP] SQL Distinct-like behaviour

2007-08-24 Thread Hamza Saglam
I don't know what I was thinking when I wrote that actually, that is so blatantly obvious :) Thanks Brian. Hamza. "brian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Marcelo de Moraes Serpa wrote: >> How could I iterate over the files in a directory and build a list of >>

[PHP] How to implement a plugin system?

2007-08-06 Thread Hamza Saglam
Hello all, I am working on a project which needs to have some sort of plugins architecture and I am kinda stuck. Basically I want to give a list of items to the user, and according to his/her selection, I want to load relevant functionality into my application. I was thinking of having an abstra

Re: [PHP] How to implement a plugin system?

2007-08-06 Thread Hamza Saglam
y Hamza, > > require_once($chosenPlugin . '.class.php'); > > $obj = new $chosenPlugin(); > return $obj; > > And you can start from there. > > hth, > > boro > > > > Hamza Saglam schreef: >> Hello all, >> >> I am working on a project w

[PHP] Re: How to implement a plugin system?

2007-08-06 Thread Hamza Saglam
I think I have a rough understanding of the whole process so I should start coding :) Many thanks to everyone for your suggestions. Regards, Hamza. ""Hamza Saglam"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello all, > > I am worki

[PHP] Re: Object reference into variable?

2007-08-07 Thread Hamza Saglam
You may find the following article interesting. It talks about object cloning, which I think what you are after... http://www.phpfreaks.com/phpmanual/page/language.oop5.cloning.html Regards, Hamza. ""Sándor Tamás (GMail)"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello,

Re: [PHP] How to implement a plugin system?

2007-08-07 Thread Hamza Saglam
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 8/6/07, Stut <[EMAIL PROTECTED]> wrote: >> >> Hamza Saglam wrote: >> > Thanks for your response. However I am looking for something a bit more >> > c

[PHP] Re: Object reference into variable?

2007-08-07 Thread Hamza Saglam
l you that I have to use PHP4.2 because of my web provider. Anything besides of _clone? SanTa - Original Message - From: Hamza Saglam To: "Sándor Tamás (GMail)" Sent: Tuesday, August 07, 2007 10:49 AM Subject: Re: Object reference into variable? You may find the foll