This is a discussion on "creating images in php" within the PHP Forum section. This forum, and the thread "creating images in php are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
creating images in php
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
creating images in php
i want to create a simple image with just text on it.... this is the code i am using. vedana.ttf is in the same directory as the php file.
why?! any help wud b appreciated. |
|
|
|
#2
|
|||
|
|||
|
Hi benbacardi,
I tried your code and got this error
|
|
#3
|
||||
|
||||
|
it doesnt have a space in it...
and the reason you probably got that error is probably because you didn't put "verdana.ttf" in the same directory as where u were running the script... |
|
#4
|
|||
|
|||
|
Yes i did put it in the same dir. What is the exact error you are getting?
|
|
#5
|
||||
|
||||
|
"The image www.bpcu.co.uk/image.php cannot be displayed because it contains errors"
|
|
#6
|
|||
|
|||
|
waw
hello benbacardi
iam realy search about this script and want to do it but always have errors |
|
#7
|
|||
|
|||
|
benbacardi:
|
|
#8
|
|||
|
|||
|
okay, im not ENTIRELY sure what the problem is, but a few things to check
(I used that exact code I was learning it, its off a tutorial site) 1. Check the case of the filename. It may be .TTF 2. change the path from "verdana.ttf" to "./verdana.ttf" This seems kind of arbitrary, but it may be that its searching for verdana.ttf in the default font directory for whatever OS you're running. Going ./ specifies to use the directory your in. Reply here and tell me if it worked. My code worked when I did that, but I never bothered to try it without the ./ Hope it works. |
![]() |
| Tags |
| creating, images, php |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| multiple rollover images change multiple images | joshlindem | Web Page Design | 4 | Apr 18th, 2008 09:11 |
| creating logos, backgrounds and images | Aesir | Graphics and 3D | 8 | Mar 10th, 2008 14:39 |
| Creating rollover images in photoshop | Kurt | Graphics and 3D | 8 | Sep 9th, 2007 21:11 |
| Creating a sum with ASP | Andrew1986 | Classic ASP | 4 | Aug 1st, 2007 10:09 |
| creating new div class + making images links | TardPress | PHP Forum | 1 | Jun 19th, 2006 03:04 |