Portal Home > Knowledgebase > Articles Database > PHP GD
PHP GD
Posted by DedicatedOT, 07-12-2009, 11:01 PM |
Hello,
That is the file source, but it always say
But on my local Windows Apache, it works just fine. Please help! Thank you!
|
Posted by fwaggle, 07-12-2009, 11:12 PM |
Remove the @ - it might be you don't have gd installed, or some other reason it's failing, but you'll never know because the @ operator is squelching the error log.
|
Posted by DedicatedOT, 07-12-2009, 11:27 PM |
I changed to that now, and still same problem.
And I do have gd installed according to phpinfo. Take a look.
|
Posted by Cmafai, 07-12-2009, 11:38 PM |
Have you tried pressing f5?
|
Posted by DedicatedOT, 07-12-2009, 11:40 PM |
Yea I refreshed many times. It works fine on my local windows machine. But the server is a Linux box...
|
Posted by Cmafai, 07-12-2009, 11:51 PM |
Works fine when I upload that script to my website. Can you get any GD code at all to work? Maybe try imagettftext or some other function instead of imagestring?
|
Posted by DedicatedOT, 07-13-2009, 12:07 AM |
how do I reinstall my GD?
|
Posted by M Bacon, 07-13-2009, 12:12 AM |
Reinstall Apache with GD.
http://tanksoftware.com/tutes/installingphp.html
|
Posted by DedicatedOT, 07-13-2009, 12:34 AM |
How do I reinstall apache without restarting SQL? I have a game server using the SQL database and I would prefer not to restart SQL.
|
Posted by eeg3, 07-13-2009, 12:45 AM |
You should not need to touch MySQL at all.
If you're using CentOS, you can install gd/php-gd with:
|
Posted by DedicatedOT, 07-13-2009, 12:47 AM |
It's Ubuntu. Yum didn't work.
|
Posted by eeg3, 07-13-2009, 12:49 AM |
You'll need to use apt-get then:
|
Posted by DedicatedOT, 07-13-2009, 12:57 AM |
|
Posted by eeg3, 07-13-2009, 01:15 AM |
If you create a page with just the following then visit it:
Do you see GD listed on the page as being loaded?
|
Posted by DedicatedOT, 07-13-2009, 01:17 AM |
It's not working...
|
Posted by DedicatedOT, 07-13-2009, 01:18 AM |
Here is my phpinfo: http://dedicatedot.no-ip.info/gdinfo.php
|
Posted by DedicatedOT, 07-13-2009, 01:41 AM |
Actually, I just solved it. Just save it as *.php instead of *.png...
|
Posted by Cmafai, 07-13-2009, 09:47 AM |
Edit: Oops, posted in the wrong thread.
|
Add to Favourites Print this Article
Also Read