Subject: Mailing List
Posted By: Carriemh Post Date: 8/30/2006 11:50:39 AM
Hello I am brand new at this so go easy, I am trying to create a mailing list for my newsletter and I am using the book.  I have entered all the code correctly but it is giving me this

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/f/t/p/ftpcarrie/html/mail/class.SimpleMail.php on line 4

I have checked with my hosting company and they assure me that I have PHP 5 capabilities, and I tried to add

AddHandler application/x-httpd-php5 .php

to my .htaccess file then I get a message

POST is not allowed for the URL /mail/admin_transact.php.  and my whole site just shows up in code

can somebody please help me or show me where to go to fix this.  Much Appriecated!

Reply By: Carriemh Reply Date: 8/30/2006 12:27:13 PM
Ok I think I figured out one part of this, now im getting a new error, I changed the public/private to var,

Parse error: parse error, unexpected T_NEW in /home/content/f/t/p/ftpcarrie/html/mail/class.SimpleMail.php on line 78

here is the code:

    }
    
    if (!mail ($this->to,$this->subject,$this->message,$this->headers)) {
        throw new Exception('Sending mail failed');
        return FALSE;
    } else {
        return TRUE;
        }

Reply By: tgsqrd Reply Date: 9/2/2006 7:17:23 AM
Carriemh,

Did you resolve this problem, yet?
I'm new to this, also, so don't expect a lot of help from me, but...

Judging from the error message you posted, it looks like your sending a pathname "...content/f/t/p/ftpcarrie...".
Shouldn't it be "...content/ftp/ftpcarrie..."?

If that's the case, it's probably a syntax problem.  Perhaps you need to escape some characters somewhere in your script.

TG^2


Go to topic 49096

Return to index page 186
Return to index page 185
Return to index page 184
Return to index page 183
Return to index page 182
Return to index page 181
Return to index page 180
Return to index page 179
Return to index page 178
Return to index page 177