0

Is there any specific settings in php.ini that I need to change to allow the server to include the file?

require_once dirname(dirname(__FILE__)).'/unleashapi/protected/extensions/goutte.phar';
Mihai Iorga
  • 39,330
  • 16
  • 106
  • 107

2 Answers2

0

You can set in php.ini auto_prepend_file:

auto_prepend_file="/custom/path/unleashapi/protected/extensions/goutte.phar"

make sure Apache has access to that file.

Mihai Iorga
  • 39,330
  • 16
  • 106
  • 107
  • Thanks for the answer but still not working mate. The same code works on the other machine. I am sure that I am missing some settings in php.ini but unable to understand. – Neeraj Wasan Sep 29 '12 at 06:28
0

If you server is using suhosin (typically Debian and all Debian based distributions), you should add : suhosin.executor.include.whitelist="phar" to your php.ini

magnetik
  • 4,351
  • 41
  • 58