I haven't looked at the code, but doesn't strip_tags strip everything b/n
< and >? In which case it's doing what it should below...
The only solution I see would be to change the code to look for every
possible HTML tag that exists and only do those, but with all the
nonstandard tags I don't thi
Same thing happens:
3";
$nt = strip_tags($t,'< >'); // i've also tried '<>', '<',
// and all permutations thereof
print $nt;
?>
%> Everyone knows that 2 3
On Fri, 7 Jun 2002, Philip Hallstrom wrote:
> I haven't looked at the code, but doesn't strip_tags strip ev
Hmm... you could always do something like:
$t = ereg_replace(" < ", " < ", $t);
$t = ereg_replace(" > ", " > ", $t);
$nt = strip_tags($t);
$nt = ereg_replace(" < ", " < ", $nt);
$nt = ereg_replace(" > ", " > ", $nt);
maybe?
On Fri, 7 Jun 2002, Mikhail Avrekh wrote:
> Same thing happens:
>
>
It was definately included. I know this two ways.
1. Non-SSL curl sessions work.
2. I used the exact configure string I used for the module version,
minus the --with-apxs option.
On Fri, 2002-06-07 at 14:30, Mark Heintz PHP Mailing Lists wrote:
> Are you sure curl was included with the CLI insta
It's 1 based. It returns the number of rows. Not the index of the last
row. (Which would be 0 based.)
On Fri, 2002-06-07 at 19:23, William_dw -- Sqlcoders wrote:
> Hiya!,
> Does anyone know whether mysql_num_rows is zero or one based?
>
> that is, if I have 5 records will mysql_num_rows() return
On Friday, June 7, 2002 at 10:23:08 PM, you wrote:
> Hmm... you could always do something like:
> $t = ereg_replace(" < ", " < ", $t);
> $t = ereg_replace(" > ", " > ", $t);
> $nt = strip_tags($t);
> $nt = ereg_replace(" < ", " < ", $nt);
> $nt = ereg_replace(" > ", " > ", $nt);
> maybe?
Tha
On Friday, June 7, 2002 at 10:30:59 PM, I wrote:
> < /SCRIPT>
There should be another space here...
< /SCRIPT >
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Does anyone know how to create a web page with more than 2 selection fields
that Interact?
In my particular case, I'm trying to create a series of pull-down menus.
The first selection is the choice of hardware class (workstation, server,
laptop, pda, etc.). The second selection is manufacturer.
> I got a mysql database, where two of the fields of a table
> record times as
> CHAR(8) in the format hh:mm:ss
This is one of those situations where having your database using the
most appropriate field types would help. When you've got it as CHAR
there's little you can do in the way of co
Usually people do this with javascript, but you could use
javascript/php/mysql mysql for the data, php to create the dynamic drop down
menus and javascript to refresh the page once someone has picked an option.
Rick
"We do not have to visit a mad house to find disordered minds; our planet is
the
> > > Anyone knows of a majordomo type mailing list made with php >
> > Why would you want to do that? If you need mailing list software
> > you'd be infinitely better off using one that already exists - if
you
> > need features that it doesn't support (eg. A web front-end for
> > ma
That sounds very close to what I'm trying to do. Is it necessary to reload
the page every time a selection is made? Do you have examples of this that
work with multiple pull-down menus?
-Original Message-
From: Richard Baskett [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 2:48
On Fri, 7 Jun 2002, mike wrote:
> I am trying to track every user who visits my site (over 100,000 per
> minute..)
I don't have an answer, but I'm impressed that you're able to get
144,000,000 hits a day - on par with Yahoo which was previously considered
the runaway leader in web traffic volum
It sure would :) But if you're going to have HTML such as:
< valid_tag > blah blah < this isn't a tag > < /valid_tag >
then you've got problems no matter what you do :)
On Fri, 7 Jun 2002, Stuart Dallas wrote:
> On Friday, June 7, 2002 at 10:23:08 PM, you wrote:
>
> > Hmm... you could always
On Friday, June 7, 2002 at 11:00:48 PM, you wrote:
> It sure would :) But if you're going to have HTML such as:
> < valid_tag > blah blah < this isn't a tag > < /valid_tag >
> then you've got problems no matter what you do :)
My bad. I thought that would be valid HTML, but I just checked and
> I got a mysql database, where two of the fields of a table
> record times as
> CHAR(8) in the format hh:mm:ss
> I want to take this two times and get the difference between
> them in seconds, for example 12:01:30 - 12:00:00 = 90 I
> looked up at the doc in the php.net website and could
On Friday, June 7, 2002 at 11:00:24 PM, you wrote:
> I don't have an answer, but I'm impressed that you're able to get
> 144,000,000 hits a day - on par with Yahoo which was previously considered
> the runaway leader in web traffic volume. That must be some pretty amazing
> porn.
I'm more amaz
Hi,
Not porn, but advertising. We only use about 20mbit/sec.
Thanks,
- Original Message -
From: "Miguel Cruz" <[EMAIL PROTECTED]>
To: "mike" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 6:00 PM
Subject: Re: [PHP] Tracking Problem -- Force full script executio
I don't see why people use strip_tags at all. I would hate posting to a
forum that will strip tags, esp. if I want to show an example of
something.
Just use htmlentities() and the data will be shown exactly as the user
typed it, but none of the HTML or code within it will be evaluated. So
if the
Do you want the page to submit with each choice? i.e. in the beginning,
the first drop down is populated and the other two aren't. when a choice
is made in the first box, the form is submitted and PHP populates the
second, etc...
If you don't want it to submit, then all PHP can do is write some
j
> The minor problem is that it treats a "not-equals" sign,
> "<>", as an empty tag and strips it, unless it's explicitely
...etc...
Except, of course, that when writing html you are supposed to use
entities for any valid html stuff - ie. Use > and $lt; for > < and so
on. As you should also
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
> That sounds very close to what I'm trying to do. Is it
> necessary to reload the page every time a selection is made?
I've found examples of the javascript side of it on www.irt.org that
helped last time I did this sort of thing. The php/sql stuff is a
matter of figuring out what you nee
Cool. Thanks Dave. I'm exploring this stuff in another window. I'll check
out irt.org.
-Original Message-
From: David Freeman [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 4:45 PM
To: 'Lazor, Ed'; 'Richard Baskett'; 'PHP General'
Subject: RE: [PHP] dynamic pull-down menus?
I've got a mail function script that occasionally terminates midway
while sending out about 600 emails.
The symptoms point to the "max_execution_time", which is set for 30
seconds.
The question is how to best handle it.
set_time_limit only seems to apply to the script that contains it. Yet
t
Can someone tell me why this isn't working? To me it say open the file, read
it, stick into a variable, close the file. Then search that variable (the
file) and look for the eregi statements. Can someone tell me why this only
gets the first instance of what I'm searching for? Thanks a bunch.
#!/u
I think you're looking for AI, not a bot.
http://directory.google.com/Top/Computers/Artificial_Intelligence/Natural_Language/
If you want to post a description of what you want to do, someone may be able
to help.
On Monday 03 June 2002 22:14 pm, Martin Thoma wrote:
> Hello! Perhaps you know
How about if you use htmlentities() and then preg specified tags back into
place? That way, the onus for not looking silly falls upon those who use
unapproved tags. This would seem like the more conservative approach - and
as a security-obsessed paranoid fool, I like conservative approaches.
m
I recently installed PHP 4.2.1 on my G4 Powerbook (OS X v10.1.4) running
Apache 1.3.2. I have verified that php is running and apache is running.
When I access a page locally http://127.0.0.1/simple_form.php, fill in the
only text box and submit the form to form_act.php. The variable doesn't
exist
On Saturday, June 8, 2002 at 1:56:35 AM, you wrote:
> I recently installed PHP 4.2.1 on my G4 Powerbook (OS X v10.1.4) running
> Apache 1.3.2. I have verified that php is running and apache is running.
> When I access a page locally http://127.0.0.1/simple_form.php, fill in the
> only text box an
Hi,
I wish to restrict access to a dir of files, depending on if the user is a
logged in and validated member.
My first guess was to restrict access to the files with .htaccess, only
allowing access if the referring (linking) script was something like
members.php, so they'd only get the link if
I just read the release notes and do not believe they are referring to my
dilemma.
Here is the code I am using. Just a basic form
<>
Phrase:
<>
On 6/7/02 9:08 PM, "Stuart Dallas" <[EMAIL PROTECTED]> wrote:
> On Saturday, June 8, 2002 at 1:56:35 AM, you wrote:
>
>> I rece
You have to code the PHPSESSID into your URL if your browser has cookies
disabled or else it won't work.
On Fri, Jun 07, 2002 at 06:57:31PM +0200, Nick Wilson <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> * and then Glenn Sieb declared
> > >I have compil
On Saturday, June 8, 2002 at 2:22:02 AM, you wrote:
> I just read the release notes and do not believe they are referring to my
> dilemma.
Actually, I think they point out the exact reason for your 'dilemma'.
> Here is the code I am using. Just a basic form
> <>
> if ($phrase){ echo "Phrase--
Actually, they are. You are assuming the PHP directive
register_globals = on when using $phrase from the form
below. register_globals = on is what creates $phrase.
As of PHP 4.2.0 the default value for register_globals
has become off. Regardless, there are other options:
Try either:
//
I'm trying to not reinvent the wheel. Can you all recommend a good script,
or class, that will read a given directory, list the folder and/or files and
create hyperlinks, allow you to then recursively, upon selection, read a
given folder? There will be no editing. It's strictly for selecting an
You are correct. My web server is Running 4.2.1 and all of the sites are
still working.. That is why I assumed that it was a problem locally, but
after looking at the web server the globals is turned on. Thanks.. I can go
forward now. I appreciate your help
On 6/7/02 9:33 PM, "Philip Olson" <[EM
I am using Netscape 7 preview release. When I go to www.php.net, it
displays the php logo in the address bar. Does anyone know how this is
done?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all. I know that this isnt probably the best place to make this
question, but I uses that some of you uses MyCC to connect to a remote
MySQL DB. My connection is no problem, but when I issue a SQL command,
which tells the DB to INSERT multiple rows into one table, It gives me
an error every ti
I believe it is a favicon.ico
MSIE started this and apparently Netscape/Mozilla now have them
too.
TjL
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday, June 8, 2002 at 3:04:30 AM, you wrote:
> I am using Netscape 7 preview release. When I go to www.php.net, it
> displays the php logo in the address bar. Does anyone know how this is
> done?
If I'm not mistaken, it's a favicon.ico file. See http://www.favicon.com/ for
full info.
I want to be able to search a flat file line by line looking for data
such as a username then display all the information in that line. Is
there some way to search the following format:
record1:username:info:info:info
record2:username:info:info:info
record3:username:info:info:info
So if someo
Use the explode() function based on the colon. Then parse the 2nd array
element for the username that you want. If matched, display all elements in
that array row. Conversely you could use the implode() to reassemble the
array row.
(Assume $file_row is the row name that you have assigned)
/*
ok I believe I follow you on that, I will give that a try. But the
question I have now is how do I loop that request?
Gaylen Fraley wrote:
>Use the explode() function based on the colon. Then parse the 2nd array
>element for the username that you want. If matched, display all elements in
>tha
i have databse paradox (extension *.db) how to read in php and save to
mysql , thanks i just new bie in php
Oh, I forgot to mention that it is a different way of indicating
that a favicon to be used, which is found in the HEAD of the HTML
document.
This works in browsers other than IE, but I don't think that IE
supports this
TjL
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
On 6/7/02 11:43 AM, "Bogdan Stancescu" <[EMAIL PROTECTED]> wrote:
> One of the users of OPT has major problems uploading files to the system and I
> have absolutely no clue why that is. His PHP version is 4.0.6 on Linux.
> Quoting his description of the problem:
>
> "In fact, now it doesn't even
I think you'll get MUCH better answers if you join the MySQL mailing list,
and search the MySQL website, rather than this PHP list.
Also less chance of getting flamed :)
Justin French
on 08/06/02 1:20 PM, sonjaya ([EMAIL PROTECTED]) wrote:
> i have databse paradox (extension *.db) how to read
On Saturday 08 June 2002 10:48, Robert Packer wrote:
> Can someone tell me why this isn't working? To me it say open the file,
> read it, stick into a variable, close the file. Then search that variable
> (the file) and look for the eregi statements. Can someone tell me why this
> only gets the fi
On Saturday 08 June 2002 09:19, Justin French wrote:
> Hi,
>
> I wish to restrict access to a dir of files, depending on if the user is a
> logged in and validated member.
What kind of files are they? html? php? or others?
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source
MP3 and quick time -- otherwise the solution would be easy :)
Thanks,
Justin
on 08/06/02 3:42 PM, Jason Wong ([EMAIL PROTECTED]) wrote:
> On Saturday 08 June 2002 09:19, Justin French wrote:
>> Hi,
>>
>> I wish to restrict access to a dir of files, depending on if the user is a
>> logged in
On Saturday 08 June 2002 13:46, Justin French wrote:
> MP3 and quick time -- otherwise the solution would be easy :)
>
> Thanks,
>
> Justin
>
> on 08/06/02 3:42 PM, Jason Wong ([EMAIL PROTECTED]) wrote:
> > On Saturday 08 June 2002 09:19, Justin French wrote:
> >> Hi,
> >>
> >> I wish to restrict
If the file is of a reasonable size (not hundreds of kilobytes), then you
can just slurp it all into an array and foreach through it:
$matched = 0;
$myfile = file('/usr/home/crud/myfile');
foreach ($myfile as $line)
{
$split_line = explode(':', $line);
if ($split_line[1] == 'bob'
What is the best/recommended method of saving form data into session
variables? Currently only have to deal with regular text input,
checkboxes and radio buttons (no multiple selects for now). Any sample
code someone could throw up on the list? I've only recently begun
working with sessions, b
On Saturday 08 June 2002 14:39, Greg Macek wrote:
> What is the best/recommended method of saving form data into session
> variables? Currently only have to deal with regular text input,
> checkboxes and radio buttons (no multiple selects for now). Any sample
> code someone could throw up on the l
Ok, I'll have to try that on my next project. Unfortunately these forms were
written by another developer and there too many variables to rename to make an
array and not enough time on the project :-) But for next time.
I've seen many examples of assigning values to session variables w/o forms
When you say serve the files through a script, I assume you mean
"download.php" force-feeds an MP3 (or whatever) to the browser.
Is this correct?
I read people have lots of problems with this...
Justin
on 08/06/02 4:08 PM, Jason Wong ([EMAIL PROTECTED]) wrote:
> On Saturday 08 June 2002 13
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Chris Sechiatano declared
> You have to code the PHPSESSID into your URL if your browser has cookies
> disabled or else it won't work.
No. As I said, i have php compiled with --enable-trans-sid
- --
Nick Wilson // www.exploding
101 - 159 of 159 matches
Mail list logo