Detecting Locations for Dynamically loading extensions
Posted: Tue Aug 14, 2007 11:14 pm
We have created an application that we want to run on shared hostings and install with our custom network installer but on those hostings it is not possible to change the php.ini file to include libraries like zlib and sqlite.
It is necessary to find the location of the .so files on the server so that the dl() function can find them. However, by default, dl() only looks in the location specified by extension_dir.
Unfortunately, in shared hostings, this is often set to './' making extensions such as zlib and sqlite difficult to locate and therefore inaccessible.
Is there any way to find these extensions on a shared hosting PHP installation?
We can install to dedicated servers and localhost WAMP servers fine but we want to get it right for a mass market.
Thanks in advance,
Damian
It is necessary to find the location of the .so files on the server so that the dl() function can find them. However, by default, dl() only looks in the location specified by extension_dir.
Unfortunately, in shared hostings, this is often set to './' making extensions such as zlib and sqlite difficult to locate and therefore inaccessible.
Is there any way to find these extensions on a shared hosting PHP installation?
We can install to dedicated servers and localhost WAMP servers fine but we want to get it right for a mass market.
Thanks in advance,
Damian