Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Inclued for Windows?

Tags:

php

windows

pecl

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.

like image 664
Greg Avatar asked Oct 27 '08 19:10

Greg


People also ask

What does include () do in PHP?

PHP Include Files. The include (or require ) statement takes all the text/code/markup that exists in the specified file and copies it into the file that uses the include statement. Including files is very useful when you want to include the same PHP, HTML, or text on multiple pages of a website.

What is the PHP include path?

The PHP Include Path is a set of locations that is used for finding resources referenced by include/require statements. Note: Adding libraries or external projects elements to your project's Include Path will also make elements defined in these resources available as content assist options.

What is allowed to be placed in a PHP include file?

Including a PHP File into Another PHP File The include() and require() statement allow you to include the code contained in a PHP file within another PHP file. Including a file produces the same result as copying the script from the file specified and pasted into the location where it is called.


2 Answers

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.
like image 86
Mark Biek Avatar answered Oct 12 '22 09:10

Mark Biek


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

like image 21
Ross Avatar answered Oct 12 '22 10:10

Ross