Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
6

How do I install PHP Libraries?

ErikoXDev
ErikoXDev

I have the following PHP code:

$im = imagecreate(50,100);

The code needs the "GD" Library, but I haven't found a way to install it. How do I do that?

2 years ago

Voters

Comments

TopNew
1
AlessandroBerte
AlessandroBerte

Have you resolved? Are you working on repl.it i have the same problem

2 years ago
1
ErikoXDev
ErikoXDev

@AlessandroBerte
I haven't found a solution yet.

2 years ago
1
programmeruser
programmeruser
install-pkg php7.2-gd
2 years ago
2
ErikoXDev
ErikoXDev

@programmeruser
Even after installation, it still doesn't recognize the function

Uncaught Error: Call to undefined function imagecreate()
2 years ago
Load more