michaellunsford Posted August 3, 2006 Share Posted August 3, 2006 I'm having some difficulty getting require_once to work for web ~users. Right now, I am trying to require_once "/usr/share/pear/pear.php" -- but it's giving me an open_basedir restriction.Problem. open_basedir is being properly configured in vhost.conf. It works great for anything else on the entire website, but not for ~web_users -- which apparently have a different conf file I would need to create. The script author suggested that I could "include" the pear directory, instead of lifting the base_dir. Honestly, I'm not quite sure what he's talking about.Any suggestions? Quote Link to comment Share on other sites More sharing options...
michaellunsford Posted August 3, 2006 Author Share Posted August 3, 2006 bump Quote Link to comment Share on other sites More sharing options...
scottybwoy Posted August 4, 2006 Share Posted August 4, 2006 What he means is use the php.ini settings to include the path, you can do it in the script like so :[code]ini_set( 'include_path', '/whatever/path/you/like' . ini_get('include_path'));[/code]And php will look in these directories to execute files. Also check :[code]<?php phpinfo(); ?>[/code]To see your set includes path, which can be edited directly in the ini file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.