[PHP] strip_tags bug ?

2002-06-07 Thread Mikhail Avrekh
Hello, There seem to be a couple of bugs in the strip_tags() function, one minor (or at least I know how to circumvent it) and one more serious. The minor problem is that it treats a not-equals sign, , as an empty tag and strips it, unless it's explicitely set as an allowed tag (as in

Re: [PHP] Re: strip_tags bug ?

2002-06-07 Thread Mikhail Avrekh
don't think that would work... what happens if you put in the second argument? On Fri, 7 Jun 2002, Mikhail Avrekh wrote: Hello, There seem to be a couple of bugs in the strip_tags() function, one minor (or at least I know how to circumvent it) and one more serious. The minor problem

RE: Re[2]: [PHP] Re: strip_tags bug ?

2002-06-07 Thread Mikhail Avrekh
- From: Stuart Dallas [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 5:31 PM To: Philip Hallstrom Cc: Mikhail Avrekh; [EMAIL PROTECTED] Subject: Re[2]: [PHP] Re: strip_tags bug ? On Friday, June 7, 2002 at 10:23:08 PM, you wrote: Hmm... you could always do something like

RE: [PHP] strip_tags bug ?

2002-06-07 Thread Mikhail Avrekh
I realize the importance of using valid html stuff. Here, however, I'm trying to validate *user input*, not fix up my own HTML pages. And I have no way of teaching the users to say lt; and gt; instead of and when they fill out their forms. On Sat, 8 Jun 2002, David Freeman wrote: The

Re: [PHP] Re: lookin for a Menuing System...

2002-04-29 Thread Mikhail Avrekh
Check out PHPLIB: http://www.sanisoft.com/phplib/manual/ It has a Menu class, which may not be documented explicitely at this point, but there's info about it in the mail list archives (use search for: in the page linked above), or you can subscribe to the list and ask. On Tue, 30 Apr 2002,

Re: [PHP] PHP books

2002-04-05 Thread Mikhail Avrekh
Professional PHP Programming by Castagnetto et al. (from Wrox) is pretty good IMHO. So is Web application development with PHP, by Ratschiller/Gerken. These are the ones I've used for my purposes, as well as for a PHP class that I taught a while back. On Fri, 5 Apr 2002, cyberskydive wrote: I

RE: [PHP] Re: included file name -- DOCS ?

2002-04-04 Thread Mikhail Avrekh
Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 2:28 AM To: Mikhail Avrekh Cc: [EMAIL PROTECTED] Subject: [PHP] Re: included file

Re: [PHP] Javascript and PHP??

2002-04-03 Thread Mikhail Avrekh
You can say something like: ?$csv_filename= whatever.csv;? script language=javascript window.open(?=$csv_filename?, target, resizable,status,width=500,height=200); /script On Wed, 3 Apr 2002, Joe Keilholz wrote: Hello All! I think this is a pretty

[PHP] included file name

2002-04-03 Thread Mikhail Avrekh
Hello, Is there any way inside an included file to figure out what its actual UNIX filename is ? For example: file1.php -- ? include(file2.php); ? file2.php -- ? /*want to do something like: if (this_file()==file2.php) { ## do stuff } else if

[PHP] md5() different from md5sum on Linux

2002-03-12 Thread Mikhail Avrekh
Hello, Don't know if this is a question of (mis)configuration; I'm posting this just in case someone had run into this before: PHP's native md5() appears to return a different value from Linux's md5sum command: [mavrekh ~]$ echo blah | md5sum 0d599f0ec05c3bda8c3b8a68c32a1b47 - [mavrekh ~]$