note 41237 added to function.main

From: Date: Sat, 03 Apr 2004 17:56:44 +0000
Subject: note 41237 added to function.main
Groups: php.notes 
Request: Send a blank email to php-notes+get-67582@lists.php.net to get a copy of this message
here is one reason i got that errror: Warning: main(PEAR.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /home/islamnmuslims/brute/Net/Socket.php on line 23 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'PEAR.php' (include_path='') in /home/islamnmuslims/brute/Net/Socket.php on line 23 the original installation of pear on the server didnt have some pear classes i needed so i decided to download them and place them with the script .. anyway... i solved that problem by adding 2 lines on the top of the script: $path = ini_get('include_path'); ini_set('include_path', $path.":/path/to/pear:./"); ---- Manual Page -- http://www.php.net/manual/en/function.main.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41237 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41237&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41237&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67582) next »