I'm trying to include a PHAR file (PHP Archive) in my PHP script, it works fine on WAMP, but not on my debian server !
My server has PHP5.3 (including PHAR extension natively !), but my script stops when including the PHAR (in fact Silex)
My code (file_exists() works fine):
<?php
require_once __DIR__.'/../vendor/silex.phar';
I saw that PHAR is enabled thanks to phpinfo().
However, I tried many things to correct this problem:
- I had
AddType application/x-httpd-php .pharin my httpd.conf - Also, I tried to fixe a bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=639268
- I saw this: http://www.shaunfreeman.co.uk/article/A-Phar-problem, but not resolving my prob...
Nothing works... have a solution ?