Page 1 of 1
install php Extention
Posted: Fri Jun 09, 2006 8:12 pm
by cgishack
Hello,
I am trying to get this working
From what i understand i need to install this onto my server as an extention?
i thought extentions were .dll's on a windows server? i dont see a .dll here
http://cvs.php.net/viewcvs.cgi/pecl/shp ... 1&pathrev=
When i down load it, where do i place the files on my Apache server ?
Any help would be great.
drew
Posted: Fri Jun 09, 2006 9:41 pm
by bdlang
The directory you've linked has a
README in it, which if you were to have read you would find the link to the actual library
homepage and
downloads. Although your message is unclear as to whether you're actually using Windows, there is a Windows distribution .zip file there.
The files in that directory are source code files, I would expect to use on Linux or a Unix derivative.
Posted: Fri Jun 09, 2006 9:41 pm
by s.dot
you put the file in your path (where your other extension are) then make note of it in your php.ini file
extension=some_extension.dll
Posted: Sat Jun 10, 2006 7:36 am
by Li0rE
dlls are asp dotnet. But cant you just use an htaccess file?
Posted: Sat Jun 10, 2006 9:48 am
by dibyendrah
extension can be loaded at runtime if you have dl() function on. But if you want the extension to be loaded everytime the apache server starts then just uncomment the line with extenstion in extension section of php.ini. But I think, running the PHP in safe mode will not allow the extension to be loaded in runtime. Please follow the following URL :
http://www.php.net/manual/en/install.pecl.windows.php
Regards,
Dibyendra
Posted: Sat Jun 10, 2006 10:02 am
by cgishack
Hi everyone ,
Thanks for the tips
So i went and downloaded the .dll and exe files the read me pointed me to.
- added the .dll + others (.obj .exe) to the /ext/ dir in php
edited the php .ini file and added
extension=shapelib.dll since that was the name in the windows distibution .dll
(
http://dl.maptools.org/dl/shapelib/ [ shapelib128_bin_win.zip ]
restarted Apache
checked out phpinfo(INFO_MODULES);
but nothing is listed
tryied a sample file and got errors
Do i have to do anything with the . c . h .m4 or .xml to get this working ...
http://cvs.php.net/viewcvs.cgi/pecl/shp ... 1&pathrev=
Hope someone can find the time to help..
drew
Posted: Sat Jun 10, 2006 11:11 am
by bdlang
cgishack wrote:
So i went and downloaded the .dll and exe files the read me pointed me to.
- added the .dll + others (.obj .exe) to the /ext/ dir in php
edited the php .ini file and added
extension=shapelib.dll since that was the name in the windows distibution .dll
(
http://dl.maptools.org/dl/shapelib/ [ shapelib128_bin_win.zip ]
Ah, my bad. I hadn't actually d/l and look at the files, because I run Linux here. I booted into a windows machine and once I had a look at the files in the zip realized it's actually not a PHP library, it's the actual C implementation of shapelib under Windows/DOS. The PECL extension is a PHP wrapper for that.
Looks like you may have to
contact the developer (who, oddly enough also uses Slackware Linux) and find out how to procure a windows .dll extension. The alternative would be to setup a Linux Apache/PHP server and compile / use the extension provided there.