You could do it like this:
exec( "htpasswd -b $passwdfile $username $password" );
/nico
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi everybody
>
> I would like to know if somebody already wrote a script to allow apache
> user administration from php un
not tested :)
$lines = file( 'http://www.cow.net/cows/' );
print $lines[ rand()%sizeof($lines) ];
/nico
"Liam" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 12/03/2002 11:20:18 PM
>
> Hey all,
> I'm looking to write a PHP script that will cut all content ou
You could try something like this:
eval( "\$class->" . $var . "_function();" );
/nico
"Matt Williams" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all
>
> I get a variable that is set be a select box on a page.
> I want to use this variable to call a fun
Very true. oops :)
/Nico
- Original Message -
From: "David Apthorpe" <[EMAIL PROTECTED]>
To: "'Nico Vrouwe'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 2:34 PM
Subject: RE: [PHP] Alphabet
: Sh
$i wrote in message
002601c1c5c4$d008e3f0$2d48c23e@VANBILDE01">news:002601c1c5c4$d008e3f0$2d48c23e@VANBILDE01...
> something like:
>
> for ($i=ord('A'); $i $str .= chr($i);
> }
>
> print $str;
>
> Greets,
>
> Edward
>
>
> - Original Message -
> From: "Jeroen Timmers" <[EMAIL PROTECTED]
You can do:
for ($i=1; $i < 12; $i++) {
$n = "state_$i";
echo $$n;
}
That should do what you want (if I understood what you want correctly ;)
/nico
"Phillip S. Baker" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am not sure I can articulate this we
Hi there!
I am wondering if there is any way to stop PHP from sending any headers at
all.
I know about php -q, but unfortunately I want it to work with the module
version of PHP as well.
What I do is collect all output with the ob_ functions, and send it to a
pipe. And there the output is encode
7 matches
Mail list logo