Newbie Help

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Can anyone recommend a tutorial or sample that will help me understand
as simply as possible how to do the following:

Background: I have a webserver with MySQL and PHP enabled

I want to have a graphic file, like a banner or a button, where it is a
picture of something, and there is text in the image. I want the text
to be dynamic based on some varible that I pass to it.

My background is in VB programming and Im trying to learn php, but I
really interested in the dynamic graphics. So I have no idea where to
start with the graphics, I have photoshop at my disposal.

Any help is appreciated.

Re: Newbie Help

AP wrote:

Quoted text here. Click to load it

Hi AP,

Are you running PHP on a GNU/Linux system?
If so, chances are you have GD libs enabled/installed on your system.
The GD libs are the graphical libs that PHP can use to modify images the  
easy way.

You can check this by calling php_info() from a page.
Search for GD

If it is there: good. Preferably version 2.

If that is ok, go to and type 'image' in the search-for  
searchbox (select function list).

Now you will arrive at a page that seems intimidating complex, but is  
actually not, so just read it. Look at the table of content with all the  
hyperlinks to the imagefunctions.

You will end up using functions like imagecreatefromjpeg() and the like.
The site is filled with examples too.

If however you are on a W$ machine, I have no idea how to use images in PHP.

Good luck.

Erwin Moller

Re: Newbie Help

Thanks, I will give it a look

Re: Newbie Help

On Fri, 07 Oct 2005 06:34:10 -0700, AP wrote:

Quoted text here. Click to load it

I have an example of how I did something like this here:

    JDS | jeffrey@example.invalid

Site Timeline