install php Extention

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
cgishack
Forum Newbie
Posts: 2
Joined: Fri Jun 09, 2006 8:05 pm

install php Extention

Post 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
bdlang
Forum Contributor
Posts: 395
Joined: Tue May 16, 2006 8:46 pm
Location: Ventura, CA US

Post 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.
Last edited by bdlang on Fri Jun 09, 2006 9:42 pm, edited 1 time in total.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Li0rE
Forum Commoner
Posts: 41
Joined: Wed Jun 07, 2006 6:26 am

Post by Li0rE »

dlls are asp dotnet. But cant you just use an htaccess file?
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post 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
cgishack
Forum Newbie
Posts: 2
Joined: Fri Jun 09, 2006 8:05 pm

Post 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
bdlang
Forum Contributor
Posts: 395
Joined: Tue May 16, 2006 8:46 pm
Location: Ventura, CA US

Post 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.
Post Reply