Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

i can enable phar extension but i get this error:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/cesartineo/tineo.mobi/public/silex/silex.phar on line 27

Parse error: syntax error, unexpected T_STRING in /home/cesartineo/tineo.mobi/public/silex/silex.phar on line 27

i use the example .htaccess and index.php from the silex web.

require_once __DIR__.'/silex.phar';

$app = new Silex\Application();

$app->get('/hello/{name}', function ($name) use ($app) {
    return 'Hello '.$app->escape($name);

share|improve this question

1 Answer 1

make sure you're running on PHP 5.3.2 or later.

Good luck!

share|improve this answer
Could you provide a little more detail about why this would solve tineo's issue? –  Royce Williams Jan 8 '12 at 16:24
yes, i'm using PHP 5.3 (FastCGI) and i followed the steps from serverfault.com/a/317573/97460 –  tineo Jan 17 '12 at 19:01
Dear Royce Williams, Because I faced same problem and when I change my PHP version to 5.3.2 it's working fine! Using PHP 5.3.2 is mandatory to working fine! –  Saud AlFadhli Feb 8 '12 at 16:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.