Jump to content

New PHP extension with Apache for Windows XP


BuPunkt

Recommended Posts

Hi freaks.

 

I want to write a new php extension with MSVS2005 under windowsxp/sp2. So I followed the excellent article http://devzone.zend.com/node/view/id/1021.

 

To get a worthy debug environment, I tried as recommended to comppile and link the php sources (coming from http://de.php.net/releases/#5.1.2, version required by customer). Finally, I stranded on the libraries iconv und libxml, thus I disabled them via configure. The server (apache 2.2.0) cannot load the new PHP.DLL (.exe per cgi works), perhaps I disabled too mutch.

 

Next try: "Installation" of binaries and adding of sources "devel" by XAMPP from http://sourceforge.net/project/showfiles.php?group_id=61776&package_id=89552&release_id=412975. But some of the neccessary headers are created yet by configure which still fails if iconv und libxml are enabled.

 

Now my question:

How can I get (if at all) the headers matching a certain php5ts.dll to compile and link my extension against (without compiling php itself)?

Link to comment
Share on other sites

Erm... wasn't the question New PHP extension with Apache for Windows XP  ???

 

Why recompile if all you want to do is that?

The filetype is configurable from within Apache.

 

I even run dummy PERL (.pl) files thru PHP as a means of harvesting spambot and malcontents into an IP blockfile via honeytraps (win32 server). PHP include files (.inc) are also "protected" by being defined as type PHP.

 

# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
# For PHP 4 do something like this:
#LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .inc
AddType application/x-httpd-php .php
AddType application/x-httpd-php .pl

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.