DL() Function on Linux Server
Posted: Sun Sep 02, 2007 10:08 pm
I've read that this function is "Depreciated" as of php v5. I have a few questions regaurding it, as well as some help with a particular function I'm trying to setup on a web host.
Unfortunately the client I am working for is swearing by "godaddy.com", and as much as I love cheap hosting, you get what you pay for. Prompt responses from there support keep it looking good, but I've had such vague answers thus far that I'm at a loss for how to do what I need to.
I have linux hosting so I can use php, they don't provide windows hosting otherwise I'd have done that and resolved my problem.
I am a windows user, and my knowledge of linux systems is limited (Mainly due to lack of a machine running that system). I've spent the last 5 hours scouring the net for any methods to create a "Server Backup" Script in php.
I'd like it to compile into a zip archive, and I've tested such scripts on my own machine, but due to lack of "Compitent" tech support from godaddy I don't know how to adjust specific php.ini settings. In windows all I needed to do was enable php_zip.dll as an extension, I even tested using the dl() function to load the module during run-time. It works fine on a windows machine, but I don't have access to their linux system and cannot verify the locations of their files. Unfortunately I am using a windows machine as well, so my .dll file isn't supported. After much effort I was able to get a copy of a compiled zip.so file from a friend, and tried the dl() function where it then gave me the error:
Warning: dl() [function.dl]: Unable to load dynamic library './zip.so' - /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by ./zip.so)
The page I'm using for testing:
http://www.foodgps.com/testing/ini.php
I searched for that error and have come up with many different troublesome results. None of which I have any knowledge of, as again I am a windows user.
So I am requesting the assistance of anyone who might be able to solve my problem. Is there a non-reliant zip.so file I can aquire, something I can change in the source code perhaps? I can access the c files using visual studio on my windows machine using visual studio. I don't know if there is a method around that or a way to compile a .so library type file on the server without fuller access.
I also don't know alternatives to this problem. I also tried the use of ini_set, but that doesn't load modules in run-time sadly. As you'll notice, my real problem on the page is I cannot create a ZipArchive() as a class without the library support. I spose' another alternative would be re-scripting the entire c file set into php code and trying to create a fully customized class in that sense, but that's literally half a years worth of re-scripting for me.
If anyone has any methods they know of to add support for zip files, or how I can access the ini file on this site at such a host, I'd be grateful for your assistance.
Unfortunately the client I am working for is swearing by "godaddy.com", and as much as I love cheap hosting, you get what you pay for. Prompt responses from there support keep it looking good, but I've had such vague answers thus far that I'm at a loss for how to do what I need to.
I have linux hosting so I can use php, they don't provide windows hosting otherwise I'd have done that and resolved my problem.
I am a windows user, and my knowledge of linux systems is limited (Mainly due to lack of a machine running that system). I've spent the last 5 hours scouring the net for any methods to create a "Server Backup" Script in php.
I'd like it to compile into a zip archive, and I've tested such scripts on my own machine, but due to lack of "Compitent" tech support from godaddy I don't know how to adjust specific php.ini settings. In windows all I needed to do was enable php_zip.dll as an extension, I even tested using the dl() function to load the module during run-time. It works fine on a windows machine, but I don't have access to their linux system and cannot verify the locations of their files. Unfortunately I am using a windows machine as well, so my .dll file isn't supported. After much effort I was able to get a copy of a compiled zip.so file from a friend, and tried the dl() function where it then gave me the error:
Warning: dl() [function.dl]: Unable to load dynamic library './zip.so' - /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by ./zip.so)
The page I'm using for testing:
http://www.foodgps.com/testing/ini.php
I searched for that error and have come up with many different troublesome results. None of which I have any knowledge of, as again I am a windows user.
So I am requesting the assistance of anyone who might be able to solve my problem. Is there a non-reliant zip.so file I can aquire, something I can change in the source code perhaps? I can access the c files using visual studio on my windows machine using visual studio. I don't know if there is a method around that or a way to compile a .so library type file on the server without fuller access.
I also don't know alternatives to this problem. I also tried the use of ini_set, but that doesn't load modules in run-time sadly. As you'll notice, my real problem on the page is I cannot create a ZipArchive() as a class without the library support. I spose' another alternative would be re-scripting the entire c file set into php code and trying to create a fully customized class in that sense, but that's literally half a years worth of re-scripting for me.
If anyone has any methods they know of to add support for zip files, or how I can access the ini file on this site at such a host, I'd be grateful for your assistance.