tags:

views:

1249

answers:

6

Is there a .dll version of the inclued extension for PHP? The manual's link for Inclued on PECL4WIN doesn't help. I don't have a compiler to build my own DLL.

NOTE: The spelling "inclued" is correct!

Edit: I don't have a compiler, but do know someone with one... that's really a last resort though.

A: 

Isn't this their DLL download site? http://pecl4win.php.net/list_dlls.php

Unless I'm off on my browsing of the site?

warren
Yes, that's the same site I linked to in the question - it doesn't have inclued
Greg
A: 

Is this the page you are looking for?

http://pecl4win.php.net/list_dlls.php

..edit: (man, we are fast. I swear these two duplicate answers were posted simultaniously)

kevtrout
Both fast and unfortunately both wrong :)
Greg
+5  A: 

As best as I can tell, the Windows version doesn't exist anymore. Maybe whoever was maintaining it before had to stop for some reason.

I wonder what it takes to compile a PECL extension under Windows.


Edit

Here's some info on compiling a different PECL extension on Windows. You may be able to extrapolate to the inclued extension.


Edit

WAMP Server comes with PECL & PEAR. I can actually run the command pecl install inclued-alpha from the Windows command-line and it goes out and tries to grab the inclued extension from the PECL site.

Unfortunately it dies when it unpacks the .tgz file and tries to compile it

ERROR:  The DSP inclued.dsp does not exist.
Mark Biek
Not the answer I was hoping for but +1 for effort!
Greg
At this point, you best bet might emailing the guy directly. It looks like he has some personal information on his blog. Sorry we couldn't find a perfect solution for you.
Mark Biek
I couldn't find any contact information for him - could you let me know where it is? Thanks
Greg
Hmmm. I actually couldn't find any contact info there after all. His name is Gopal Vijayaraghavan though and this seems to be his Flickr page: http://www.flickr.com/people/t3rmin4t0r/.
Mark Biek
A: 

This may be some help to you: http://php.net/manual/en/inclued.installation.php

Ryan McCue
+3  A: 

Which version of PHP are you running? I know someone that can compile you a version.

update

Alright, got this compiled - I've tested on my 5.2.6 build and it seems to work fine.

I've been told there may be problems using it in a threaded environment (e.g. Windows) but that's only a maybe. Also:

[13:10] <g0pz> the inclued dumpfiles will collide, because it uses PID # + increments
[13:11] <g0pz> but command line should work ok
[13:12] <g0pz> is the threaded apache version which'll have the same PID and well, a "possible" collision

So good luck with it :)

download

Ross
I'm running PHP 5.2.6
Greg
Sorry that was a typo
Ross
Nicely done Ross. RoBorg, let us know if it works.
Mark Biek
It works! Thanks!
Greg
Does anyone have this DLL still? The link provided 404's, and I can't find it anywhere else on the net.
ken
+1  A: 

Poke me if you have any issues with inclued.

I'm just on the verge of putting out a release, I'll do a mkstemp() in windows instead of picking the PID + count.

Hopefully also with a gensvg.php which'll render the di-graph in-browser with pear::Image::GraphViz.

Hi!I had a couple of issues... 1) the PHP file uses getopt(), which isn't available on windows yet. 2) The manual has inclued.enabled listed as PHP_INI_* which I interpreted as PHP_INI_ALL, but it's not (took me a while to figure that out!)
Greg
Apart from that it's cool. I don't suppose you could find a way to make __autoload() work a little better? It lists all the autoloaded files as coming from the file with the __autoload() function in it, which is perfectly understandable but not too useful
Greg