In article 2 Steps to convert png into ico file , i introduce steps to convert a png image into a ico, In that article, we use some online tools to do it.However, if you want to do it by php and plan to build a website to supply service of converting png to ico. I think you can read this post.
To convert png into ico file by php script, you use phpthumb to help us to do it, you can do as follow steps.
Step 1: Download phpthumb
You can click phpThumb to open page to download it, to realize function of converting png into ico, you should download these file:
phpthumb.ico.php
phpthumb.functions.php
Tips and Warnings:
1. If you can not download these two files, you can email me or leave your comment, i will send to you
2.To use phpthumb, you should make your php gd library enable, you can read article “2 Steps to make PHP GD library enable” to enable it.
Google+