Jump to content

[Beginner] How to call a PHP extension in another directory structure


suprajaj

Recommended Posts

Hi

 

I am just beginning to work with PHP on my internship.

 

I am working with Piwik PHP API and want to call a PHP extension (PHP_FUNCTION) part of another directory structure (not belonging to piwik).

 

Currently I am doing:

 

chdir("/release/code/.../libs/php);

include("name_of_file_containing_extension.c");

//call PHP_FUNCTION in the file

 

But this does not work.

 

Could someone pl tell me how to call this PHP_FUNCTION.

 

Thank You

Supraja J

 

The extensions are part of /libs/php - is that right or where are php extensions located usually.

Then is this the right way to do it - http://files.zend.com/help/previous-version/Zend-Server-4-Community-Edition/adding_extensions.htm

 

Thank you

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.