I’m trying to develop an online formbuilder. Each user can build their own forms and I want to be able to provide a button that when clicked will download the users html form page along with its css file as a zip file.
I know how to zip the files, but my problem is that the main users html form page doesnt exist as seperate file, its url is in a query string such as:
http://localhost/form.php?id=9
So was wondering how this could be done
thanks
rifki
Just use
file_get_contents,curl, orfopento write the content of the url to file on disk… then zip that up. Exmaple: