Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PDT » include_path different in Eclipse than via CLI (Eclipse doesn't have /usr/share/php, for instance)
include_path different in Eclipse than via CLI [message #666078] Mon, 18 April 2011 20:39 Go to previous message
sneakyimp Missing name is currently offline 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 ?

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Is there a possibility for code completion in Untitled PHP file, Remote PHP files and so on
Next Topic:Looking for someone to host PDTWiki
Goto Forum:
  


Current Time: Sun May 19 15:29:17 EDT 2013

Powered by FUDForum. Page generated in 0.01606 seconds