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
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);
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
($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
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
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
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;
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
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
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
10 matches
Mail list logo