| |

VerySource

 Forgot password?
 Register
Search
View: 12|Reply: 7

How to open the gd library

[Copy link]

1

Threads

3

Posts

4

Credits

Newbie

Rank: 1

Credits
4

 China

Post time: 2020-2-12 03:00:01
| Show all posts |Read mode
I have set it in the php.ini file
extension = php_gd2.dll
Apache also restarted

Can still prompt errors when using:
Call to undefined function imagecreate () in D:\Apache\htdocs\myweb\exa3-2.php on line 18

Is the setting incorrect? What else needs to be changed?
Reply

Use magic Report

0

Threads

10

Posts

10

Credits

Newbie

Rank: 1

Credits
10

 China

Post time: 2020-4-10 13:00:02
| Show all posts
1. Has APACHE restarted?
2. PHP. Is INI effective?
Reply

Use magic Report

0

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-4-12 07:45:01
| Show all posts
Increase in system environment variables
PHPR = C:\PHP; C:\PHP\ext
Give it a try
Reply

Use magic Report

0

Threads

25

Posts

14

Credits

Newbie

Rank: 1

Credits
14

 China

Post time: 2020-4-13 08:15:02
| Show all posts
Look at your php.ini file location in phpinfo ()
Reply

Use magic Report

1

Threads

3

Posts

4

Credits

Newbie

Rank: 1

Credits
4

 China

 Author| Post time: 2020-4-13 18:45:01
| Show all posts
to:sibin2000
I tried your method, it's useless

TO:jinjialin
How to judge whether php.ini is valid?
Reply

Use magic Report

0

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-4-14 21:30:01
| Show all posts
Can the system find the path where php_gd2.dll is stored? If not found, it is recommended to add environment variables!
Reply

Use magic Report

0

Threads

25

Posts

14

Credits

Newbie

Rank: 1

Credits
14

 China

Post time: 2020-4-14 23:30:01
| Show all posts
phpinfo () Look at the address of your php.ini file and see if it is correct
Reply

Use magic Report

1

Threads

3

Posts

4

Credits

Newbie

Rank: 1

Credits
4

 China

 Author| Post time: 2020-4-16 11:00:01
| Show all posts
The problem has been solved, thank you all !!
I just embarrassed to say the mistakes I just made, haha
Forgot this extension_dir
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list