Newbie to PHP from ASP

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
RichardGrant
Forum Newbie
Posts: 1
Joined: Sat May 24, 2008 12:40 am

Newbie to PHP from ASP

Post 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
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Newbie to PHP from ASP

Post by onion2k »

PHP doesn't have anything like that. You'll have to write it yourself.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Newbie to PHP from ASP

Post by Chris Corbyn »

There are some stateful frameworks though. I believe Prado has support for something of that nature:

http://www.pradosoft.com/
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Re: Newbie to PHP from ASP

Post 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.
Post Reply