Formsess and PHP5

Posted on 2005-04-10
Last Modified: 2013-12-13
What changes need to be made to formsess 2.0 to use with PHP5?
Question by:gwkg
    LVL 11

    Accepted Solution

    php5 is pretty backwards compatible w/ php4. For example, the default name of object constructor's changed for the class name to __construct, but the old way will work if __construct is not present.

    They did break compatibility in a few places, such as objects are passed by reference automatically in php5 while they were passed by value in php4, and they altered a function here and there. I don't know much about formsess, but I would just try it out and you'll most likely be ok.
    LVL 31

    Author Comment

    I was just lookin for an excuse why I couldnt get the plugin to work.  I cut my losses and went for SmartyValidate and wasted a day tryin to get that to do what I wanted before I gave up on that too.  The worst part is that I had javascript/client side validation and php/server side validation working fine before I went and tried to rewrite it "the right way".  This is only my 2nd php site and Ive only been learning from what I read so I always think there is a better way to do what I did.  Usually Im right.

    This morning, I came to the realization that I should more time learning a little more about objects and classes and less time fooling around with SmartyPlugins.

    Ill give ya all the points and close the question for taking the time to help me =)


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to count occurrences of each item in an array.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now