RE: Wrox's smtp_mail.inc
| From: | Joao Duraes | Date: | Thu, 27 Jul 2000 22:11:42 +0000 |
| Subject: | RE: Wrox's smtp_mail.inc | ||
| References: | 1 | Groups: | php.general php.windows |
| Request: | Send a blank email to php-general+get-8677@lists.php.net to get a copy of this message | ||
Thanks for all those who tried to help.
I've identified the problem. For some reason, my PHP 4.01pl2 does not like
functions named like "handle_e-mail" returning the below error message.
Renaming *ALL* functions that looked like this one to "handle_e_mail"
(replacing the hyphen with an underscore) solved the problem. There you go.
Question: BUG ALERT?
Joao
-----Original Message-----
From: Joao Duraes [mailto:joao@duraes.com]
Sent: 27 July 2000 17:05
To: Php-General; Php-Windows
Subject: Wrox's smtp_mail.inc
Hi,
Has anyone tried successfuly the "smtp_mail" class from Wrox's "Professional
PHP Programming" book? I am trying to use it, but it always come up with the
error:
Parse error: parse error, expecting `'('' in smtp_mail.inc on line 92
Well, looking at the code, I couldn't find anything wrong with it. I've
included the class in this message, so if you're interested in trying it, do
it by including it on a test script:
<?
include "smtp_mail.inc";
?>
You should obtain the above error message straight away...
I know that someone else asked this before in the list, but I believe he
didn't get any reply posted back here.
Please help!
Thanks,
Joao