Support » Fixing WordPress » PEAR HTML_QuickForm2 in WordPress

  • Resolved mophilly

    (@mophilly)


    I am migrating a web site to WordPress. I have built a plugin with admin pages for this migration.

    The old app uses a database that need not be part of the wordpress database. I have set up the plugin to use WP’s built-in database access API to connect to the old database. This is working fine for short codes in the new pages.

    I need to add the table maintenance windows in the admin area. The old site has a set of windows that work fine. However, these are dependent on HTML_QuickForm and PEAR.

    Is is wise, or even possible, to install pear in WP?

    Is there an alternative for WP that is straightforward like QuickForm?

    Thanks, in advance.

Viewing 1 replies (of 1 total)
  • Thread Starter mophilly

    (@mophilly)

    Just for the record, I have a learned a couple of things that might help someone else. In essence, my original questions are misguided.

    First, PEAR is completely separate from WordPress. It can be installed anywhere, such as in a web directory for a “local” install, or elsewhere on a system for use by several web site or applications built with PHP. You can use PEAR packages in WordPress if you are creating a plugin, for example, or possibly in page templates.

    Second, HTML_QuickForm has been replaced by HTML_QuickForm2. Unfortunately, the differences are significant, so be aware of that the “upgrade path” requires a lot of changes to forms built on the first HTML_QuickForm. To the credit of the authors, the first version is maintained for bugs and security fixes.

    Lastly, there are quite a few packages out there that are bound to out of date revisions of PEAR and its base of packages. If you find a need to update PEAR, do your homework and make certain other apps on the system will not be disturbed, and that subsequent updates of other apps don’t “downgrade” a package.

    I hope this helps someone.

Viewing 1 replies (of 1 total)
  • The topic ‘PEAR HTML_QuickForm2 in WordPress’ is closed to new replies.