i can run phantomjs-netsniff code to create har file in terminal (as root) but when i execute it using php it returns does create har file but with zero bites. same code executed both times.
i have disabled safe-mode in php, 777 permission on har generating folder. what i have missed.
my OS is centos 64 bit. and i used https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2 to install.
php code
<?php
$rrd= 'phantomjs /var/www/xxx/netsniff.js "http://www.wiki.com" > /var/www/xxx/xx/xx.har';
exec($rrd);
?>