How can i...?

See all posts See thread Reply

Re: How can i...? new!
by akenateb, 16 years, 2 months ago
Sorry but your indications are useless.

If someone want to avoid second image you [...] simply have to delete second image on upload.php.

It works fine.
Regards.Reply
Re: How can i...? new!
by colin, 16 years, 2 months ago
Please be courteous on this forum. You wouldn't have to ask your question if you had read the documentation, or had a better grasp of PHP basics.

The thread I linked to answered your question. It says: "The class creates one picture per call to the process() function."

The file upload.php is a test file. You are not supposed to use it as-is in your project. The test file creates two images from one uploaded file, for the sake of the example. Thus, it calls process() twice.

To have only one image created, simply call process() once. You can find example for this everywhere in the forum, the FAQ, and other pages.Reply