09/10/2018, 23:14
Xin chỉ dẫn cách setup GD for php
Các bác làm ơn chỉ em cách setup GD library cho PHP.
Mấy cái source gallery yeu cau php support GD mà qua php.net đọc cách cài k hiểu nổi mặc dù trình TA k tệ lắm
Cám ơn nhiều lắm.
Mình dùng PHP 5.0
http://www.php.net/gd <=== link ne`
Mấy cái source gallery yeu cau php support GD mà qua php.net đọc cách cài k hiểu nổi mặc dù trình TA k tệ lắm
Cám ơn nhiều lắm.
Mình dùng PHP 5.0
http://www.php.net/gd <=== link ne`
Bài liên quan
Em dùng trên win nên chi trên win thôi hén:
Down thư viện dg2 về rồi copy file đó vào thư mục c:\php\ext\ và vào sữa file php.ini lại:
----
;extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.dll
---
Bỏ dấu ; phía trước đi nha
Và nhớ tìm phía trên của sửa đường dẩn này thành như vậy:
extension_dir = "C:/PHP/ext/"
Chú ý:
Các file thư viện dll pahir nằm trong thư mục này nếu không php không chạy được với mysql đâu.
còn trên nix thì để em cài trên nix được rồi post ho mọi người
info.php
<?php
phpinfo();
?>
Name: GD Graphics Library
Version: 2.0.28
Source: www.boutell.com/gd/
Configure Command: ./configure
Reasoning: GD provides image interrogation (height, width, size, and so on) and manipulation capabilities to PHP. The image information capabilities are useful when retrieving or receiving images (when downloading images specified in a feed or API, or when receiving them as the result of form input), while the manipulation capabilities are used extensively to create CAPTCHAs, or to resize images received.
$sudo apt-get install php4-gd
Edit php.ini, make sure it has following line:
extension=gd.so
==> tiện ở chỗ chạy luôn, khỏi cài, dễ xóa.
==> tiện ở chỗ chạy luôn, khỏi cài, dễ xóa.