R
R
Rinat Zakiryanov2014-12-12 13:26:30
PHP
Rinat Zakiryanov, 2014-12-12 13:26:30

How to give a client a file and 2 pictures in php?

The question is, how can I give the client / user a file and a few pictures, it seems like an archive, this is the best way I found, but my file (* .rtf) is created in a php script, i.e. when you click on the button, a file (rtf) is created according to the template of another html file, and how is it possible that it would be created in the same way but not go to the client first, but to the archive and then put the 1st picture (this is uploaded by the user) and then 2- th picture (this is a "static" one that lies on the server) there too.
The code is optional, the logic of the action is needed and, if possible, the functions that will be required (or libraries).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2014-12-12
@SashaSkot

php.net/manual/ru/book.zip.php

Y
Yago, 2014-12-12
@Yago

You can generate an rtf file, save it on the server, pack the entire collection of files into an archive, and clean up unnecessary files after packing, leaving only the archive for download.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question