I'm having problems loading a Phar library. The error suggested a permissions issue for temp files, so I temporarily chmod to 777 the relevant directory (found using sys_get_tmp_dir()) and it works.
include('phar://PHPStats/PHPStats.phar/lib/ProbabilityDistribution/Beta.php');
$beta = new \PHPStats\ProbabilityDistribution\Beta(6,20);
I'm trying to use this library: https://github.com/mcordingley/PHPStats
What's the correct way to enable the webserver to write to the directory, so that I can use phar?
My system is Mac OSX Mountain Lion.