imagecreatefrompng() returns an image identifier representing the image obtained from the given filename.
imagecreatefrompng() returns an empty string on failure. It also outputs an error message, which unfortunately displays as a broken link in a browser. To ease debugging the following example will produce an error PNG:
提示: �p�G fopen wrappers �w�ҰʡA�h�i�Ǧ��Ƨ��ɦW�URL�ϥΡC�Ѧ� fopen() ��h���p���w�ɦW�Ӹ`�M附錄 M�䴩URL��w�C��C
警告 |
PHP 4.3.0 �e� Windows PHP�䴩�Ѧ��Ʀs����ɮסA�Y�ϱҰ�allow_url_fopen�ﶵ�C |