Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a static page dynamically

Status
Not open for further replies.

wendyp

IS-IT--Management
Mar 4, 2003
51
US
I dynamically generate a results page for my user using information from the db.

While they can see it, I also want to email it to them.

I have the cabability to send the message. Instead of capturing the whole page to a variable, I think it would be more efficient to temporarily save the page in static HTML format and use that to send the mail message. Then delete the static info after the message was sent.

Opinions? And if you think the saving is a good idea - how do I do it?
 
In order to write the page to a file you need to have it already in a variable. The saving through the file system takes additional time. You can just send the page from the variable 'as is' without the overhead of having to save it.
 
what you need, is:

and: (the fix)

without the part II, your hyperlinks, images, etc. will not work properly.

this script, fakes folders, based on variables.

you can then make your CMS gather content, based on the fake folders.

it uses .htaccess and php.

Olav Alexander Mjelde
Admin & Webmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top