Re: Passing objects between pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I mean the object itself, not the class (the file containing the class 
definition is included on all necessary pages with 
require_once("file.inc.php");

I want to create an object on one page ($obj = new MyClass();) and have it 
on other pages, all members and functions intact.

Matt



"Unknown Unknown" <phpinfolist@xxxxxxxxx> wrote in message 
news:793d90b50511251426gf8c206by889abbe84ca8a063@xxxxxxxxxxxxxxxxx
Do you mean passing the class statement or the vars? couldn't you format the
vars into mysql and pull them?

On 11/25/05, Matt Monaco <mmonaco3@xxxxxxx> wrote:
>
> What is the best way to pass an object between pages?  Currently I am
> first
> serializing, then doing a base64_encode, this doesn't seem entirely
> efficient.  (Especially the encode).
>
> I am however using the encode because I have the serialized object as the
> value of a hidden form element.  I can only have alphanumerics here.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux