Author Topic: Zend Framework Error  (Read 1233 times)

0 Members and 1 Guest are viewing this topic.

Offline tomdelongeTopic starter

  • Enthusiast
  • Posts: 57
    • View Profile
Zend Framework Error
« on: June 02, 2009, 07:28:42 PM »
This is the first time using this new version (1.8.2)
I get this error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /mydirectoryhere/library/Zend/Application.php on line 35

No matter what I try. I've even uploaded their "quickstart" application and it gives me this error. I don't know if it matters that my "public" folder is named "html" or something like that. Any ideas?

There can't be anything wrong with application.php since I didn't write it...

Offline Dj Kat

  • Addict
  • Posts: 1,507
  • Gender: Male
    • View Profile
Re: Zend Framework Error
« Reply #1 on: June 03, 2009, 03:07:18 AM »
Did an older version of ZF work? And what is php version is running on the server?

Offline Swamp56

  • Irregular
  • Posts: 3
    • View Profile
Re: Zend Framework Error
« Reply #2 on: June 03, 2009, 11:47:14 AM »
Typically that means that you're running and older version of PHP (prior to PHP5).  If you are running PHP5, then put this in your .htaccess:

Code: [Select]
AddHandler application/x-httpd-php5 .php