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 unique

[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

[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

[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 General

[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, I

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 comprehensive :) I could do it as you suggested if I had only a few plugins. As I

[PHP] Re: Object reference into variable?

2007-08-07 Thread Hamza Saglam
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 following article interesting. It talks about object

[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

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

2007-08-06 Thread Hamza Saglam
'); $obj = new $chosenPlugin(); return $obj; And you can start from there. hth, boro Hamza Saglam schreef: 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

[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 working on a project which needs to have some sort