[PHP-DB] parsing parameter over page 2
Hello All, thank for your attention i've tried to serialize my class variable and it seem to be work ( i print it out using echo $a;) but when i do unserialize to that class nothing happen, and still i can use my class ? is there something wrong ? any one can write a simple tutorial or example to do serializing/unserializing class over page.. TIA Wassalam, andrie Wednesday, March 07, 2001, 12:11:30 AM, Loe nulis gini: HJ Try this URL from the PHP manual: HJ http://www.php.net/manual/en/function.serialize.php HJ You could use serialize($a) on your a.php page and then to use that object, HJ you would do unserialize($b). I think that's what you want to do. HJ Josh Hoover HJ KnowledgeStorm, Inc. -- PHP Database 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-DB] parsing parameter over page
any body can help me ? i confuse about parsing paramater over php pages the paramater that i try to parse was a class variable. so if i defined $a = new myclass; in a.php. can i use that variable class in my b.php. is it possible for me to do that ? i've tried using cookies, but that cookies only known my $a as an object type, i cannot access it's values. TIA andRie -- PHP Database 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]
RE: [PHP-DB] parsing parameter over page
Try this URL from the PHP manual: http://www.php.net/manual/en/function.serialize.php You could use serialize($a) on your a.php page and then to use that object, you would do unserialize($b). I think that's what you want to do. Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution for your company? Need to improve your product marketing? Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify the process for you. KnowledgeStorm - Your IT Search Starts Here i confuse about parsing paramater over php pages the paramater that i try to parse was a class variable. so if i defined $a = new myclass; in a.php. can i use that variable class in my b.php. is it possible for me to do that ?
RE: [PHP-DB] parsing parameter over page
Hi andrie, have you tried to 'serialize()' and 'unserialize()' your object ?? look at the 'Miscellaneous functions' in the php-manual. hope this helps. Greetinx, Mike Michael Rudel - Web-Development, Systemadministration - ___ Suchtreffer AG Bleicherstrae 20 D-78467 Konstanz Germany fon: +49-(0)7531-89207-17 fax: +49-(0)7531-89207-13 e-mail: mailto:[EMAIL PROTECTED] internet: http://www.suchtreffer.de ___ -Original Message- From: andrie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 06, 2001 6:05 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] parsing parameter over page any body can help me ? i confuse about parsing paramater over php pages the paramater that i try to parse was a class variable. so if i defined $a = new myclass; in a.php. can i use that variable class in my b.php. is it possible for me to do that ? i've tried using cookies, but that cookies only known my $a as an object type, i cannot access it's values. TIA andRie -- PHP Database 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 Database 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]
Re: [PHP-DB] parsing parameter over page
I don't think so, you'll have to persist your object in some way, for example in a database and then you only pass the id of your object. Another option is to persist your object as a string and then pass it either in the query or as post in a form. Lennin Arriola [EMAIL PROTECTED] -- PHP Database 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]