Hello, I would like to know how to create dynamic pictures
with imported text from php.
For example
an image with the variable $username above it, but not to make
10000 images with the different usernames but 1 which will be generated
for each username. So tell me.

You need to use a concoction of the functions found here:
http://php.net/manual/en/book.image.php

Generally what you need to do is create a document names usernames.php and then pass a get variable to this document containing the string you wish to be placed into it for instance <img src="usernames.php?username=my_username" alt="my_username" /> then you will be able to render the image using the functions above to render them as an image.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.