composer php - Error when using the "use" in php -
in code, server returns error when using term "use". illustration next code:
use spire\settings; utilize spire\resources; utilize spire\utils; utilize symfony\component\httpfoundation\request; utilize symfony\component\httpfoundation\response; utilize silex\application;
the server returns me next error:
php parse error: syntax error, unexpected t_string, expecting t_constant_encapsed_string or '(' in /home/inoshare/public_html/api/app.php on line 8
what wrong server configuration?
@touchmx,please check below notes.
notes :
(1) create sure it's running php 5.3 or later.
(2) if running before version won't have back upwards namespaces.
please check phpinfo()
php version.
php composer-php
No comments:
Post a Comment