bryantms Posted January 4, 2008 Share Posted January 4, 2008 Right now I have to include this: #path to pear ini_set('include_path', "/home/fearandf/php"); On every php page - so I would like to edit php.ini so I don't need to. I found the include_path in the file and added a semicolon and then added the path above, but it doesn't work. That path does show up in the phpinfo() alright, but won't allow my scripts to run properly unless the ini_set is included. Anyone able to help me correctly edit php.ini? Link to comment https://forums.phpfreaks.com/topic/84413-editing-phpini/ Share on other sites More sharing options...
awpti Posted January 4, 2008 Share Posted January 4, 2008 It should actually be a : not a ; include_path = ".:/usr/local/pear:/home/my/include_directory" And don't forget to restart apache/IIS. Changes don't take effect until a restart of the webservice. Link to comment https://forums.phpfreaks.com/topic/84413-editing-phpini/#findComment-429992 Share on other sites More sharing options...
bryantms Posted January 4, 2008 Author Share Posted January 4, 2008 Ah, thanks! Now I just gotta figure out what to about restarting on a shared host...maybe there's something on their website... Link to comment https://forums.phpfreaks.com/topic/84413-editing-phpini/#findComment-429995 Share on other sites More sharing options...
awpti Posted January 4, 2008 Share Posted January 4, 2008 They might be running as a CGI. Shouldn't need a restart in that case. Link to comment https://forums.phpfreaks.com/topic/84413-editing-phpini/#findComment-430002 Share on other sites More sharing options...
trq Posted January 4, 2008 Share Posted January 4, 2008 The path seperator is a ; on windows, if thats what your using. : on *nix. Link to comment https://forums.phpfreaks.com/topic/84413-editing-phpini/#findComment-430032 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.