Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I trying to create PHP script which will add text to an image. When i test it on my computer (XAMPP), it works perfectly. WHen i test it on my VPS with Apache and PHP5 it just output nothing.

Screenshoot: PHP Output

I hope someone can help me. Thanks in advance. P.S. PHP5-GD is installed on my Debian VPS.

Problem solved. I needed to use full path, no relative path for font file.

share|improve this question

closed as off-topic by mdpc, Falcon Momot, Jenny D, John, Ward Oct 3 '13 at 20:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is a site dedicated to professionals; novice questions are off-topic. Please see the Help Center for more information on topicality. The best advice we can give you is to hire a professional to help you out." – Falcon Momot, Jenny D, John, Ward
If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer

Possibly a PHP.ini configuration error. Have you tried checking your php INI extensions? such as the extension=gd.so and do you have error reporting enabled? This can also provide a better understanding as to why it isn't working. Another note, your hosting provider could also have some sort of restriction enabled. Do you think that may also be a cause?

share|improve this answer
    
No it is not an cause. It is an VPS. Hosting provider doesn't care about what i host on it. Only disallowed thing is proxy. Anyway, problem is solved few minutes after posting. I needed to use full path, no relative path for font file. I commented out code for sending image header and executed again. Then i saw an PHP error - problems with finding font file. –  xZero Dec 23 '12 at 13:25
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.