mklappen Posted August 16, 2007 Posted August 16, 2007 Hi From reading the forums I've found that PEAR is installed on TCH servers but I'm not sure how to call from my PHP script. I'd like to use the File_SearchReplace() function but I'm not where this module is located on the server to make the require_once 'File/SearchReplace.php'; or include statement. http://pear.php.net/manual/en/package.file...archreplace.php Thanks Mike Quote
mklappen Posted August 16, 2007 Author Posted August 16, 2007 This post may help. Thanks, I've added the following to my script but I still get an error: <?php ini_set('include_path', "/usr/local/bin/pear". ini_get("include_path")); require_once ('File/SearchReplace.php'); ... ?> Error: Warning: main(File/SearchReplace.php) [function.main]: failed to open stream: No such file or directory in /home/mysite/public_html/test.php on line 6 Fatal error: main() [function.require]: Failed opening required 'File/SearchReplace.php' (include_path='/usr/local/bin/pear.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/test.php on line 6 Thanks Mike Quote
TCH-Bruce Posted August 16, 2007 Posted August 16, 2007 The function you are trying to call may not be on the server. Please open a ticket with the help desk and have the techs take a look. Link at top of page or in my sig. Quote
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.