[PHP] Is there a debugger ???

2001-08-08 Thread Peter Dowie

Hi,

I noticed in php.ini there was a setion for debugger, I tried enabling this
and connecting to the specified port, but no joy.
Anyone know how to get this working ?

Pete



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Help with $HTTP_POST_VARS !

2001-08-06 Thread Peter Dowie

Hi,

I'm trying to add all elements in $HTTP_POST_VARS into my $FormData array
which I have is a session variable.
This works fine unless I have an element of $HTTP_POST_VARS which is an
array.

eg if I have $HTTP_POST_VARS['Array'] then this doesnt work as my
$FormData['Array'] is no longer an array.
Can anyone help me  ??

thanks
Pete



while ( list($name,$value) = each($HTTP_POST_VARS)) {
if (is_array($value))
{
for($x=0;$xcount($value);$x++)
{
$FormData[$name] = $value[$x];
}
}
else
{
$FormData[$name] = $value;
}
}


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Converting HTTP_POST_VARS to HTTP_SESSION_VARS !

2001-08-04 Thread Peter Dowie

Hi,

I'm using sessions and everytime my script is called, I want to add all
elements of $HTTP_POST_VARS to my $HTTP_SESSION_VARS
so that I can access them throughout the session.
I cant seem to get this working. This is what I have:

session_start();

while ( list($name,$value) = each($HTTP_POST_VARS)) {

if (is_array($value)) {

for($x=0;$xcount($value);$x++) {

session_register('$name');

$$name = $value[$x];

}

} else {

session_register('$name');

$$name = $value;

}

}

Can anyone help me on this ?

Also what is register_globals ?? Should I have this on or off ?

Thanks

Pete



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Update a SESSION_VAR on form submit

2001-08-04 Thread Peter Dowie

hello,

I have a Session variable $Stage which I want to update (increment by 1)when
my form submit button is pressed.
FORM Method=\post\ Action=\$PHP_SELF\
how can I update this session variable ?
I dont want to update it at the start of the script, because if the Reload
button is pressed, it will keep updating it and it will mess up the script
Please can someone help me out.


Thanks
Pete


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]