I use SwiftMailer in my PHP script to send emails upon HTML form submission.
On the test server it all works fine.
On the production server (different host) it gives me this error message:

Parse error: syntax error, unexpected
T_CLASS in
/home/alkal5/public_html/html/swift-mailer/lib/classes/Swift.php
on line 18

The two machines use different version of PHP: one is PHP5 and the other is PHP4.4.9.
Could that cause the problem or it's something else?
How do I resolve it?
Thank you!

Okay, I enabled PHP5 on the other server, and it solved the problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.