Answer the question
In order to leave comments, you need to log in
Phar and Debian
Good afternoon!
There was an urgent need to raise the server on Debian. What happened: installed Debian (6.0), installed Apache (2.2.16), PHP (5.3.3-7) and muscle.
In general, everything took off, but phar refuses to work.
Everything works fine, the archive is created, when converting to zip, you can see that the test.php file got into the archive.
The code prints only start and then everything stalls, no error messages.
I installed xampp in Debian - everything worked fine there: phar is read without problems.
Prompt, please, what configs to smoke?
$phar=new Phar('test.phar');
$phar->buildFromDirectory('test/');/*здесь лежит файлик test.php*/
echo('start');
require_once('phar://test.phar/test.php');
echo('end');
Answer the question
In order to leave comments, you need to log in
To start, enable error_reporting = E_ALL | E_STRICT and look for errors in the log/output stream
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question