Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8473397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:20:29+00:00 2026-06-10T17:20:29+00:00

I setup ZF2 on a shared server. It works perfectly on the localhost, though

  • 0

I setup ZF2 on a shared server. It works perfectly on the localhost, though on the shared server I get this error:

 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/content/82/5123082/html/tmp/ZendSkeletonApplication/public/index.php on line 12

Parse error: syntax error, unexpected T_STRING in /home/content/82/5123082/html/tmp/ZendSkeletonApplication/public/index.php on line 12

On line 12 of the index.php code:

Zend\Mvc\Application::init(include 'config/application.config.php')->run()->send();

The PHP version the account is running:
PHP 5.3.13 (cli) (built: May 14 2012 16:26

The Linux server that is used is:
Linux …secureserver.net … #1 SMP Fri Jul 15 08:15:44 EDT 2011 i686 i686 i386 GNU/Linux
CentOS release 5.5 (Final)

I’m not using doctorine – it doesn’t even load the Skeleton application right now – as if there’s a problem with the namespace, and it doesn’t load it. It’s as if the PHP version run is not PHP 5.3.

Any ideas what am I doing wrong? I tried installing it through the composer and upload a working solution from my local machine, neither worked..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:20:31+00:00Added an answer on June 10, 2026 at 5:20 pm

    Apparently, the server was running PHP 5.3 in the SSH console, however the Apache server was still using PHP 5.2, therefor unable to use namespaces.

    So, even though the account was setup for “PHP 5.3”, the .htaccess needs to be changed in order to support that.

    In order to fix the problem, add the following line to the .htaccess file in the /public/ folder:

    AddHandler x-httpd-php5-3 .php
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

setup.py from distutils.core import setup import py2exe setup(console=['program.py']) The error Traceback (most recent call
Setup OSX 10.7.4 Eclipse Indigo, Pydev, Tweepy-1.9 I thought this should be relatively simple
Setup error.sass is under app/assets/stylesheets I ran bundle exec rake assets:precompile error.css is in
SETUP : I have this app which has 4 activities in a linear path,
Setup TFS 2010 on a pretty oldish server (actually an oldish desktop machine running
Setup: Windows Server 2003 / SQL Server 2005. ASP.NET 2.0. IIS 6. The site
Setup: I have attached an event handler on the WebBrowser control something like this...
Setup: I have a deployed webapp on a server. And I have another machine
Setup everything looks good, certs, provisions, etc. App starts to download and then get
Setup Given this user-defined type: struct T { static int x; int y; T()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.