[PHP] preg_replace

2001-10-04 Thread Oliver Ruf
Hello I'm trying to write some kind of parser... see the example: $text = [LINK image.png]MyImage[/LINK]; $out = preg_replace (/\[LINK*\]*\[/LINK\]/i, /a href=\*\*/a/,$text); Well... What I would like is, that $out would be something like about this: a

[PHP] Re: Should I convert special characters before writing them to a table?

2001-10-04 Thread Oliver Ruf
Hi ASFAIK, the quote character (') is used in ANSI-SQL (and also in MySQL) as string-delimiter... (e.g. SELECT * FROM users WHERE name = 'admin';) So I definitvely would replace the character or you'll might run into problems with SQL. Maybe there's another and better solution, but it should

[PHP] Re: PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Oliver Ruf
Well about beeing modular... Have you ever programmed java ?? Java is very modular and everyting in java is programmed with classes. So... PHP also suports classes. Now you should be able to build your own modularity as you like it... Enough said... -Oliver [EMAIL PROTECTED] (Ben Edwards)

Re: [PHP] preg_replace

2001-10-04 Thread Oliver Ruf
anything. - Original Message - From: Oliver Ruf [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 04, 2001 4:23 PM Subject: [PHP] preg_replace Hello I'm trying to write some kind of parser... see the example: $text = [LINK image.png]MyImage[/LINK

[PHP] public and private parts in classes ?

2001-09-25 Thread Oliver Ruf
Hello I'm sorry, if this is a faq. But I would like to know, if there exist public and private parts in classes like in c++ ? AFAIK there are no public and private parts supportet. I would be pleased to get either a confirmation on that or, if it works, some information on how to do it.

Re: [PHP] public and private parts in classes ?

2001-09-25 Thread Oliver Ruf
Thank you for your confirmation. Now I'm sure that I was correct. -Oliver [EMAIL PROTECTED] (Andrey Hristov) wrote in 01ba01c145c7$22bcc6d0$0b01a8c0@ANDreY:">news:01ba01c145c7$22bcc6d0$0b01a8c0@ANDreY: PHP Classes are not so powerful as C++. No there is no division ot private and public

[PHP] Re: cookies

2001-09-25 Thread Oliver Ruf
Hi m8 I just say... rtfm ... start here: From the manual:.. (http://www.php.net/manual/en/function.setcookie.php) int setcookie (string name [, string value [, int expire [, string path [, string domain [, int secure])