[PHP] Re: session class

2001-12-27 Thread Chris Hall

session variables are accessible the same as when you set them : 
session_register('temp');
$temp = 1;

on another page:

session_start(); /* so that you can access your session variables...
echo "$temp"; /* this will echo "1"

and so you know you cannot define a variable for your class inside a
function (method)

"Christian Haines" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> (sorry if this has been posted a thousand times..i am having problems
> posting)
>
> hi all,
>
> how does one access and manipulate session variables from within a class?
> i have hunted the net high and low but received no relief.
>
> i have tried (where error is a session variable)
>
> class test
> {
> var $global['error'];
> }
>
> class test
> {
> var $HTTP_SESSION_VARS['error'];
> }
>
> class test
> {
> session_register("error");
> var $error;
> }
>
> all to no avail.
>
> please help!
>
> many thanks in advance,
> christian
>



-- 
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] Here ya go..

2002-01-05 Thread Chris Hall

5 hosting plans, apache 1.3 - debian 2.22r3. lets also say i have the same 5
plans, except on a windows 2000 adv server. i want to limit access levels
and functions my users are allowed to use. This is preliminary -- I am
somewhat familiar with how shell hosting works, and I believe my answer is
there, but I could be wrong..if anyone has conquered this problem ( i know
some of you have ) help is in dier need. Thnx in adv.


---
Chris Hall
Web Application Development
---
hardwired industries



-- 
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] functions...

2002-01-08 Thread Chris Hall

function lala() {

do i HAVE to define a variable or argument 

function lala($var) {

or can i use it like:

lala($stmt);

will $stmt become part of the function?


--
Chris Hall
hardwired industries



-- 
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] Newline features and differences between php3 and php4

2002-04-18 Thread Chris Hall

Morning all,
I'm using the mail() function on a project for a client. His hosting
provider currently offers php3, meanwhile I've been developing in php4. So
far, I don't haven't found any problems other than the following:
In php4, inside the mail function I use newline definitions to seperate
data, and it works terrific. But in php3 mail() doesn't seem to parse the
newline tags, and it prints them in the email body. Workarounds/fixes?

Thanks in advance.

--
Chris Hall
hardwired industries



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php