Re: Any (Perl && PHP) users here?
| From: | Mark Maggelet | Date: | Mon, 06 Nov 2000 06:35:29 +0000 |
| Subject: | Re: Any (Perl && PHP) users here? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-23849@lists.php.net to get a copy of this message | ||
On Sun, 5 Nov 2000 16:38:13 mst7mst, Duke Normandin
(01031149@3web.net) wrote:
>I recently wrote one of my first Perl shell scripts to interface my
>DOS
>MUA with the Win9x mail gateway that I use. I then wrote the script
>in
>PHP. The Perl script smokes the PHP one by such a margin, that I'm
>here
>asking for your comments/suggestions. I must have done something
>wrong,
>but what I don't know. I'm running both these scripts on a 486-66 w/
>20M
>RAM. The Perl script is blazingly fast; the PHP one *very* sluggish.
>Both
>work as intended. Both scripts take the ascii output of PMail in the
>form
>of:
>Line1: $$ sender_email_address
>Line2: T recipient_email_address
>Line3: C cc_email address (if required)
> Blank line
> message body
>
>and writes two text files: msgxxx.wrk and msgxxx.txt. The former
>contains
>*only* the above $$/T/C fields re-formated; the latter *only* the
>message
>body. All quite simple really. However, like I said, the difference
>in
>performance is astonishing. I'm using Perl4 (works for me!) and
>PHP3.14.
>Tia...
Is there lots of stuff in php.ini? try deleting and see if it's
faster. also get php4 and try that.
- Mark