code_junkie

Setting include path in PHP intermittently fails. Why?

Nov 10th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. ini_set('include_path', '.:/usr/share/php5:/usr/share/php5/PEAR:lib:app/classes');
  2.  
  3. php_value include_path ".:/usr/share/php5:/usr/share/php5/PEAR:lib:app/classes"
  4.  
  5. ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . 'lib' . PATH_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'classes');
  6.  
  7. ini_get('include_path')
  8.  
  9. set_include_path('.' . PATH_SEPARATOR . './app/lib' . PATH_SEPARATOR . get_include_path());
Add Comment
Please, Sign In to add comment