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 < and > instead of < and > when they fill out their forms. On Sat, 8 Jun 2002, David Freeman wrote: > > > The min

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

2002-06-07 Thread Mikhail Avrekh
Actually, we allow our users to use HTML tags -- a pretty large set of tags is allowed in the second argument to strip_tags(). We just want to strip out and other stuff which has been known to cause problems. This is why I was wondering if anyone has a good regexp which can allow one to provide

Re: [PHP] Re: strip_tags bug ?

2002-06-07 Thread Mikhail Avrekh
but with all the > nonstandard tags I 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

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

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:

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

2002-04-04 Thread Mikhail Avrekh
hatFile(__FILE__); > > > and wherever next you will want to have that value the file name will be > within $fname; > > > Sincerely, > > Maxim Maletsky > Founder, Chief Developer > > PHPBeginner.com (Where PHP Begins) > [EMAIL PROTECTED] > www.phpbeginner.com > &

[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 -- file2.php -- That is, file2.php needs to know whether it's executed in the context of file1.php or autonomously. I guess I could change $PHP_SELF before including file2

Re: [PHP] Javascript and PHP??

2002-04-03 Thread Mikhail Avrekh
You can say something like: window.open("", "target", "resizable,status,width=500,height=200"); On Wed, 3 Apr 2002, Joe Keilholz wrote: > Hello All! > > I think this is a pretty simple question. I have a file that I am writing > inf

[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 ~]$