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 $cli
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 wald
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: '@ E
)
>
> while ( list($key, $val) = each($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
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 d
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);
whi
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/htm
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 200
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 o
10 matches
Mail list logo