Re: General Information About Porting a Monolithic Perl CGI Script to PHP
| From: | Ernest E Vogelsinger | Date: | Fri, 14 Mar 2003 21:50:16 +0000 |
| Subject: | Re: General Information About Porting a Monolithic Perl CGI Script to PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139768@lists.php.net to get a copy of this message | ||
At 22:26 14.03.2003, Richard Ward said:
--------------------[snip]--------------------
>Also, from my reading, it sounds like some of the features I might need in
>PHP are considered extensions. For example, my Perl script makes heavy use
>of searching and replacing using regular expressions. I've read on the PHP
>web site that Perl-like regular expression support is now part of the
>typical installation of PHP (maybe I got this wrong). My concern is, well,
I haven't come across an installation of PHP that doesn't have
Perl-compatible regex (the preg_xxx functions) enabled.
>I am not using any Perl modules, so this shouldn't be a concern, although
>I've been considering using the Perl DBI module for generic database
>support. I have not yet found a DBI equivalent for PHP.
Have a look at ADODB (http://php.weblogs.com/). This is an attempt to
create a database-independent layer for PHP - it works with most major
databases (including ODBC) and keeps you off the hassles of implementing
database-specific code. (Disclaimer - this is not, and cannot be, valid for
non-standard SQL extensions offered by any particular database, if you're
using them).
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/