Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Again! this question might be similar but they don't work for me. I just have this code:

PHP
$jj = imagecreatefrompng("certified.png");

It is like I have a computer from some other world. The GD is enabled, I have restarted the server but nope this does'not works.

*And gd functions work with no other. Might look like other question but its not. Can someone please help me!!!

What I have tried:

I have added all the libraries like gd library.
Posted
Comments
Richard MacCutchan 6-Jun-20 10:38am    
The message is quite clear, the function imagecreatefrompng does not exist within the current context. Maybe there is another file that you need to include, or you have mis-spelled the function name.
Andre Oosthuizen 9-Jun-20 7:46am    
Is your imagecreatefrompng function in the same php page or in another class page? Is the image in the same path as your project root folder? The error is based on a call to the function but your current page has no idea where the function is located.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900