Page 1 of 1

Newbie to PHP from ASP

Posted: Sat May 24, 2008 12:58 am
by RichardGrant
Hello,

I come from ASP/ASP.NET, have read some PHP, and liked the extense libraries it has built in, and the functionality the PHP provides.
Now, APS.NET has the ViewState functionality. It's basically a hidden field on the page, which saves the values, and some state info of all controls, and restores the values, and state after a trip to the server.
ViewState is more complex than that, it has encryption for the data it stores, etc.

Is there a way to do that in PHP? How?

Thanks in advance,

Rick

Re: Newbie to PHP from ASP

Posted: Sat May 24, 2008 3:51 am
by onion2k
PHP doesn't have anything like that. You'll have to write it yourself.

Re: Newbie to PHP from ASP

Posted: Sat May 24, 2008 4:36 am
by Chris Corbyn
There are some stateful frameworks though. I believe Prado has support for something of that nature:

http://www.pradosoft.com/

Re: Newbie to PHP from ASP

Posted: Mon May 26, 2008 3:13 am
by Maugrim_The_Reaper
Most PHP applications will make use of the Session for managing state. If your data grows beyond some minimal tracking, many will encapulate everything into a single array or object, serialise it, and store it to a database or cache.