Page 1 of 1

Obtaining a static Page from a dynamically generated documen

Posted: Sun Apr 27, 2008 2:37 am
by matrixbegins
Hello Everybody !!

There is a functionality that I want in application.
.................
Suppose a User uploads some files e.g images, Resumes etc. with proper info. like skills, experience etc. I mean some input in HTML controls.

I want The moment user submits all data he/she should get a dynamically generated page showing a confirmation page then. I mean a preview page that show what user has inputted are all entries are OK or not. & then when user confirms the input then these values must saved in database.
....................................
This far I have done.

I want a little Favor .......... when user confirms all inputs that dynamically generated page must be saved as a static page on server in directory choose by me.

Is this Possible or I am Just thinking Hypo..........

Please Help

Re: Obtaining a static Page from a dynamically generated documen

Posted: Sun Apr 27, 2008 12:37 pm
by Christopher
Yes. PHP is designed to generate HTML pages. Usually you send that HTML to the browser with echo, but you also save that HTML in a file. See file_put_contents() and other filesystem functions.