[PHP] php4 / sessions

2002-12-13 Thread Kevin Porter
Hi, I'm trying to get a session variable to work. Here's the code at the start of my script: session_name('CLIENTFILTER'); session_start(); session_register( 'client_filter' ); As I understand it, the variable $client_filter should now be available to me? But I can't see it with either just

[PHP] looping through array with list()/each()

2002-09-25 Thread Kevin Porter
OK so I've done this hundreds of times, but this time I cannot get it to work. Please cast an eye over the following code and output and tell me why $k and $v are not being set: Code: - $ser = array( 'first', 'second', 'third', 'fourth', 'fifth' ); reset($ser);

RE: [PHP] looping through array with list()/each()

2002-09-25 Thread Kevin Porter
I meant $key and $val of course :o) - Kev -Original Message- From: Kevin Porter [SMTP:[EMAIL PROTECTED]] Sent: 25 September 2002 12:00 To: '[EMAIL PROTECTED]' Subject: [PHP] looping through array with list()/each() OK so I've done this hundreds of times, but this time I

RE: [PHP] looping through array with list()/each()

2002-09-25 Thread Kevin Porter
($ser) ); --- ; should not be here -Original Message- From: Kevin Porter [mailto:[EMAIL PROTECTED]] Sent: 25 September 2002 12:13 To: Kevin Porter; '[EMAIL PROTECTED]' Subject: RE: [PHP] looping through array with list()/each() I meant $key and $val of course :o) - Kev

RE: [PHP] where's waldo

2002-09-25 Thread Kevin Porter
One more thing... if you store your 'waldo co-ordinates' data in a text file, make sure it is in a directory outside of the webtree... - Kev -Original Message- From: Kevin Porter [SMTP:[EMAIL PROTECTED]] Sent: 25 September 2002 16:52 To: '@ Edwin'; Marek Kilimajer Cc: [EMAIL

FW: RE: [PHP] where's waldo

2002-09-25 Thread Kevin Porter
I received this shortly after posting to this list. Anyone else get one of these? I'm confused... thanks, - Kev -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: 25 September 2002 17:10 To: [EMAIL PROTECTED] Subject: Re: RE: [PHP] where's waldo

[PHP] how to debug mail() problem?

2002-07-30 Thread Kevin Porter
Hi, I have a loop that sends out a numbers of emails using the mail() function. -- Code start - for ( $i=0, $j=count($responders); $i $j; $i++ ) { $r = $responders[$i]; $headers = MIME-Version: 1.0\r\n; $headers .= Content-type: text/html;

RE: [PHP] help me please! :)

2002-06-10 Thread Kevin Porter
You need to escape the dollar sign with a backslash to prevent PHP trying to interpolate the variable $liv (which presumably doesn't exist). echo \$liv_$i; HTH, - Kev -Original Message- From: Veronica Ghezzi [SMTP:[EMAIL PROTECTED]] Sent: 10 June 2002 09:24 To: Php-General

RE: [PHP] How can I remove the last character from a one line file?

2002-05-28 Thread Kevin Porter
Or just: $string = Jacko; $string = substr( $string, 0, -1 ); echo $string; The third argument to substr() means 'one character from the end', see http://www.php.net/manual/en/function.substr.php - Kev -Original Message- From: Ed Gorski [SMTP:[EMAIL PROTECTED]] Sent: 28 May 2002

[PHP] separate php.ini files

2001-03-15 Thread Kevin Porter
Hi, I need to build two copies of a website on one machine - one for development and one for a backup. I want to be able to use different php.ini files with each copy of the site. Can I do this without compiling two Apache/PHP excutables? ie can it be done with virtual hosting somehow or by any