English 中文(简体)
Is there a minimal php5ts.dll?
原标题:
  • 时间:2009-11-12 16:23:08
  •  标签:
  • php
  • dll

I ve completed my web app and am using mongoose to serve the php pages. The whole app & mongoose is less then 2MB.

The php5ts.dll is almost 5MB so that really adds bloat. Also, my app is very minimal so I don t need many of the php features, ie. mysql & crypto.

I ve used UPX to compress it down to 1.7MB, however thats the same I was getting before using 7zip so its not a big deal. I ve read on winbider forums that some people recompiled it and made it even smaller. Would anyone know where I could find these minimal php5ts.dll?

最佳回答

Sure you can recompile. Use ./configure keys (or how is it in windows, maybe, Makefile?) to add/remove functionality you need, consult the manual for the exact module directives for sets of functions.

You may Google for a pre-compiled library, but it s always better to recompile it so it meets your needs, shrinks in size and overall - fits better ;)

Also consider using packers like UPX:

php5ts.dll: 1290 kB (62% compression)
(found here: Compiling PHP with no extra weight via Googling for "UPX php5ts.dll" )

P.S. If you had read answers on ServerFault, you would have known this ;)

问题回答

You can compile your own version. The source is publicly available, and this way you can include exactly the features you want.

Read about compiling on windows here.





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签