Could parse_str() help?
>From http://php.net/manual/en/function.parse-str.php:
void parse_str (string str [, array arr])
Parses str as if it were the query string passed via an URL and sets
variables in the current scope. If the second parameter arr is present,
variables are stored in this vari
Random lower-case letter:
$randomletter = chr(rand(ord("a"), ord("z")))
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 8:13 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Generate Random Letters?
I know it is possible to generate a r
Explained here:
http://www.php.net/manual/en/language.variables.external.php
Basically name the variables with []. For example:
In your example, the second is actually overwriting the first.
Nate
-Original Message-
From: mat t [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 20
Your regex is incorrect. You've written:
/[\,\;\s*]/
That * means "match a *" because it's inside the brackets. Put it outside,
like this (actually use a + instead):
/[\,\;\s]+/
to match 1 or more of any of those characters.
That may not be exactly what you want, since that
Matt McClanahan wrote:
[...]
> You're not going to find an XML parser that allows for most HTML,
> because if such a parser did exist, it would be a broken XML parser. :)
[...]
Fair enough, and that's as I expected. So that brings me to the second part
of my question: is there any php library t
"block".
Nate
-Original Message-----
From: Nathaniel Hekman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 9:57 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP] parsing html / xml
I'd like to parse a html file in much the same way the xml parser works. Ie
calling a me
I'd like to parse a html file in much the same way the xml parser works. Ie
calling a method for every tag encountered and so on. The xml parsing
methods don't seem to be forgiving enough for much of the html that's out
there. For example, many html files have tags like this:
but xml
Is there any way for a php script to perform some task as a particular user?
Here's what I'm trying to do in particular:
I have a Linux box with a handful of users. These users do not have shell
access, but they do have ftp (for file uploads to their web sites), pop,
imap, etc. I'd like to prov
8 matches
Mail list logo