顯示文章

這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。


主題 - bill16

頁: [1]
1
目前我可以用 tcpdf 產生 標楷及 arial unicode ms 的php 用utf8的字型。
但好像檔案大,好像連字型也嵌進去了!本身裡面沒什麼內容。而且我覺得效能很差!
文字內容只有一排!
pdf檔案大小分別為 3-4mb 及 15-17mb
時間 大約 30-1分鐘 及 2-4分鐘 ,而且整個loading 快被吃光了,如果多一點人使用,我想主機應該就會掛點了!
不知各位先進知道如何將字型檔減肥及改善效能的方法?

2
代碼: [選擇]
官方網站:http://sourceforge.net/projects/php-templates  
 編譯 php_templates 所需要的步驟如下:  
   
 external extension: /* you should have PHP installed */  
   
         tar -zxf templates.tar.gz  
        cd temlpates  
        phpize  
        ./configure --enable-templates=shared  
         make  
   
         cd modules  
         ls -la templates.so  
   
 但我到make 這一步時就出
[code]
/bin/sh /usr/src/redhat/SOURCES/php-5.0.4/ext/templates/libtool --mode=compile gcc  -I. -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -DPHP_ATOM_INC -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/include -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/main -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend  -DHAVE_CONFIG_H  -g -O2   -c /usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c -o templates.lo
mkdir .libs
 gcc -I. -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -DPHP_ATOM_INC -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/include -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/main -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -DHAVE_CONFIG_H -g -O2 -c /usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c  -fPIC -DPIC -o .libs/templates.o
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c: In function 'zif_tmpl_set_global':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:492: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c: In function 'zif_tmpl_parse':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:539: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:549: warning: pointer targets in initialization differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c: In function 'zif_tmpl_iterate':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:574: warning: pointer targets in initialization differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c: In function 'zif_tmpl_context':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:625: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c: In function 'zif_tmpl_type_of':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:659: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c: In function 'zif_tmpl_get':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:690: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:694: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c: In function 'zif_tmpl_unset':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:801: warning: pointer targets in initialization differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:814: warning: pointer targets in initialization differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:816: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:821: warning: pointer targets in passing argument 2 of 'zend_hash_del_key_or_index' differ in signedness
/bin/sh /usr/src/redhat/SOURCES/php-5.0.4/ext/templates/libtool --mode=compile gcc  -I. -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -DPHP_ATOM_INC -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/include -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/main -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend  -DHAVE_CONFIG_H  -g -O2   -c /usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c -o tmpl_lib.lo
 gcc -I. -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -DPHP_ATOM_INC -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/include -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/main -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -DHAVE_CONFIG_H -g -O2 -c /usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c  -fPIC -DPIC -o .libs/tmpl_lib.o
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_line_num':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:45: warning: pointer targets in assignment differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_pre_parse_config':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:89: warning: pointer targets in passing argument 3 of 'search_qs' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:89: warning: pointer targets in assignment differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_pre_parse':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:217: error: invalid lvalue in assignment
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:243: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:251: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:251: warning: pointer targets in passing argument 2 of 'add_assoc_stringl_ex' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:265: warning: pointer targets in assignment differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:278: warning: pointer targets in initialization differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:280: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:282: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:282: warning: pointer targets in passing argument 2 of 'add_assoc_stringl_ex' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:303: warning: pointer targets in assignment differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:310: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:311: warning: pointer targets in passing argument 2 of 'php_tmpl_line_num' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:320: warning: pointer targets in initialization differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:321: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:321: warning: pointer targets in passing argument 2 of 'add_assoc_stringl_ex' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:349: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:362: warning: pointer targets in passing argument 2 of 'php_tmpl_line_num' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_set':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:435: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:446: warning: pointer targets in assignment differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:446: warning: comparison of distinct pointer types lacks a cast
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:447: warning: comparison of distinct pointer types lacks a cast
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:448: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:458: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:461: warning: pointer targets in passing argument 2 of 'zend_hash_del_key_or_index' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:466: warning: pointer targets in passing argument 2 of '_zend_hash_add_or_update' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_get_iteration':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:491: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:505: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:505: warning: pointer targets in assignment differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:523: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:529: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:535: warning: pointer targets in passing argument 2 of '_zend_hash_add_or_update' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:538: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:574: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:588: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_parse':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:691: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:700: error: invalid lvalue in assignment
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:702: warning: pointer targets in passing argument 1 of 'php_sprintf' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_parse_check_memory':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:767: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_set_array':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:821: warning: pointer targets in initialization differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_load_structure':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:880: error: invalid lvalue in assignment
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:891: warning: pointer targets in passing argument 2 of '_zend_hash_add_or_update' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:894: warning: pointer targets in passing argument 2 of 'php_tmpl_load_path' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:901: warning: pointer targets in initialization differ in signedness
make: *** [tmpl_lib.lo] Error 1


頁: [1]