March 8, 2012

wkhtmltopdf: how to use it?

Question by Adam Strudwick

I want to be able to generate and save a PDF version of a PHP page. I found out, on Stackoverflow, that the most recommended is wkhtmltopdf: http://code.google.com/p/wkhtmltopdf/

However, I don’t have any Shell or binary knowledge; I only know HTML and PHP.

Could anyone CLEARLY guide me on how to get a php page generate a PDF document using wkhtmltopdf (using only FTP and PHP)?

Answer by Starx

I recommend reading their project page. Specially their usage wiki and php integration part,

April 5, 2011

What are the difficulties/issues to consider when allowing ZIP file uploads?

Question by Edward Tanguay

I allow PDF files to be uploaded to my site (PHP).

I would like to offer the ability to also allow .zip files which contain PDF files in directories so it is easier for users to simply zip a directory and upload one file instead of uploading multiple zip files individual.

For those of you who offer a .zip file upload feature to your (PHP) website, what are the technical, security, and other issues you have faced?

Answer by Starx

AFAIK, php can handle zip files pretty efficiently. Difficulties/Issues that I can think of is, while accessing the file where We need to extract the zip first, and then retrieve the actual needed file. Due to that reason, extracting a zip, might consume additional amount of server time, depending on the size of the file itself.

Where As, during uploads, I do not suppose there is any difficulties or issues specially emphasized on zip types.

...

Please fill the form - I will response as fast as I can!