| include_path different in Eclipse than via CLI [message #666078] |
Mon, 18 April 2011 20:39  |
sneakyimp Missing name Messages: 31 Registered: December 2009 |
Member |
|
|
Can anyone tell me why the exact same script reports a different include_path ini value when I run it in Eclipse PDT versus when I run it from the command line?
For example, I Opened up Eclipse PDT and created a new PHP file containing only this code:
<?php
$str = ini_get('include_path');
die($str);
?>
In Eclipse/PDT, I choose RUN -> RUN and my script outputs this:
.:/home/sneakyimp/project
If I cd to the directory where I have created that script and run it via CLI like this:
cd /home/sneakyimp/project
php my_file.php
then it outputs this:
.:/usr/share/php:/usr/share/pear
Can anyone explain why that is? Can I change this behavior so my scripts truly run with the CLI include_path ?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01657 seconds