Skip to content

Instantly share code, notes, and snippets.

@paulbarbu
Created September 9, 2011 16:11
Show Gist options
  • Save paulbarbu/1206632 to your computer and use it in GitHub Desktop.
Save paulbarbu/1206632 to your computer and use it in GitHub Desktop.
[paullik@localhost ~]$ php -c /etc/php/php.ini -r 'echo get_include_path()."\n";'
.:/usr/share/pear:/home/paullik/pear/share/pear
[paullik@localhost ~]$ pear config-get php_dir
/usr/share/pear
[paullik@localhost ~]$ ls /usr/share/pear/
data docs Mail Mail.php PhpDocumentor tests
[paullik@localhost ~]$ ls /home/paullik/pear/share/pear/
Archive OS PEAR5.php PEAR.php PhpDocumentor System.php
Console PEAR pearcmd.php peclcmd.php Structures XML
<?php
//de pe site de la PEAR - unde zice sa testam instalarea
require_once 'System.php';
var_dump(class_exists('System', false));
Warning: require_once(System.php): failed to open stream: No such file or directory in /media/PauLLiK/localhost/mail.php on line 8 Fatal error: require_once(): Failed opening required 'System.php' (include_path='.:/usr/share/pear:/home/paullik/pear/share/pear') in /media/PauLLiK/localhost/mail.php on line 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment