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
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
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
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
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
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 ~]$
You can say something like:
window.open("=$csv_filename?>",
"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
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
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
>
&
"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:
10 matches
Mail list logo