[PHP] Re: apache htpasswd win32

2002-03-13 Thread Nico Vrouwe
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

[PHP] Re: Selective seeing =)

2002-03-12 Thread Nico Vrouwe
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

[PHP] Re: using a variable to a function call

2002-03-07 Thread Nico Vrouwe
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

Re: [PHP] Alphabet

2002-03-07 Thread Nico Vrouwe
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

Re: [PHP] Alphabet

2002-03-07 Thread Nico Vrouwe
$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]

[PHP] Re: Calling a Variable in a weird Way

2002-03-07 Thread Nico Vrouwe
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

[PHP] Stopping PHP from sending any headers

2002-03-06 Thread Nico Vrouwe
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