Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PHP script extension not found
PHP script extension not found [message #61672] Tue, 27 November 2007 17:18 Go to next message
Eclipse UserFriend
Originally posted by: t.nuin.bath.ac.uk

Hi.,

I have Googled but drowned under the results of a search on "Eclipse,"
"PHP" and "Extensions." I think this is probably a fairly simple newbie
mistake too, so if anyone knows the answer it would be a big help.

I am able to debug PHP scripts successfully (note that I am dealing with
scripts not debugging on a server). However, it does not seem to pick up
the oci8.so extension that I have installed, failing with the message
"Call to undefined function ocilogon()". The same script when run
directly from the command line does *not* fail.

That suggests to me that I may be ignorant of some necessary step to
configure PHP in Eclipse, but I don't know what.

I am using an Ubuntu platform and I have enabled the OCI8 extension in
/etc/php5/cli/php.ini.

Is there anything special that needs to be done in Eclipse to make it
accept this?

Sorry if this is an obvious question. Am still very new to Eclipse and
trying to learn it whilst on a project.

Many thanks,

-Taliesin.
Re: PHP script extension not found [message #62426 is a reply to message #61672] Fri, 07 December 2007 19:42 Go to previous message
Eclipse UserFriend
Originally posted by: nospam.mckenzies.net

Taliesin Nuin wrote:
> Hi.,
>
> I have Googled but drowned under the results of a search on "Eclipse,"
> "PHP" and "Extensions." I think this is probably a fairly simple newbie
> mistake too, so if anyone knows the answer it would be a big help.
>
> I am able to debug PHP scripts successfully (note that I am dealing with
> scripts not debugging on a server). However, it does not seem to pick up
> the oci8.so extension that I have installed, failing with the message
> "Call to undefined function ocilogon()". The same script when run
> directly from the command line does *not* fail.
>
> That suggests to me that I may be ignorant of some necessary step to
> configure PHP in Eclipse, but I don't know what.
>
> I am using an Ubuntu platform and I have enabled the OCI8 extension in
> /etc/php5/cli/php.ini.
>
> Is there anything special that needs to be done in Eclipse to make it
> accept this?
>
> Sorry if this is an obvious question. Am still very new to Eclipse and
> trying to learn it whilst on a project.
>
> Many thanks,
>
> -Taliesin.

The Zend debugger doesn't use your PHP executable or your php.ini.

In my debugger install I have the following:
/usr/local/bin/eclipse/plugins/org.zend.php.debug.debugger.l inux.x86_5.2.10.v20070905/resources/php5
/usr/local/bin/eclipse/plugins/org.zend.php.debug.debugger.l inux.x86_5.2.10.v20070905/resources/php4

Each has their own executable and php.ini. You should probably add
extensions there.

I also see in the preferences for PHP / PHP Executables that if you edit
the PHP4 or PHP5 that there is a place to add an alternate php.ini, but
my fields are all disabled. Anyone know why?

-Shawn
Previous Topic:Displaying classes
Next Topic:PDT 1.0.1 M1 - is delayed to 13-Dec
Goto Forum:
  


Current Time: Wed Apr 24 21:27:29 GMT 2024

Powered by FUDForum. Page generated in 0.03357 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top