FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


php dynamic graph code not working





inphurno
i get the following error when trying to run my php graph code:


Warning: Cannot modify header information - headers already sent by (output started at /home/inphurno/domains/whatsyourimpact.frih.net/public_html/test.php:2) in /home/inphurno/domains/whatsyourimpact.frih.net/public_html/test.php on line 7
PNG  IHDRd^[PLTE[˝pIDAT8c` Aρ&   1O%ݡb \6p)ukP o9٦©{܍㥀"j&6^`Q0 f)hLHIENDB`

its supposed to create a picture that says: "a simple text string"

i tried this on my other hosting at awardspace and it works fine so not sure why it doesnt work here...
MrBlueSky
Make sure you remove all spaces and empty lines before the <?php tags.
inphurno
what you said MrBlueSky worked but now i have another question:

can we use TTF fonts and if so whats the path?

i get the following error when i try to use them:
Quote:
Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/inphurno/domains/whatsyourimpact.frih.net/public_html/test/test.php on line 11

Warning: Cannot modify header information - headers already sent by (output started at /home/inphurno/domains/whatsyourimpact.frih.net/public_html/test/test.php:11) in /home/inphurno/domains/whatsyourimpact.frih.net/public_html/test/test.php on line 13
PNG  IHDRd' cIDATxA 0?U,;adaX@adaX@adaX@adaX


i am assuming that the fonts are in: /usr/X11R6/lib/X11/fonts/truetype/
Related topics
PHP: Directory listing code
How to get your dynamic PHP website crawled better by se ?
php without server
PHP - BBcode Parsing
PHP include code problem
[PHP] Dynamic content
PHP issue
Code that only displays in IE!
PHP mailing script
PHP scripts not functioning.
[PHP] Problem with Dynamic Sig's Font Color
Calling all PHP Gods! 200 frih$ to fix my dynamic sig!
php-mysql source code
Php , Making Dynamic sig
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Frihost Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.