Jump to content

[SOLVED] Using php to generate a new page


JustGotAQuestion

Recommended Posts

The reason i am posting this here rather than searching for the answer is simply that it is somewhat difficult to explain. I will describe (below) what i want to do, and i would like to know if this is doable.

 

1. Data is stored in a MySql database. This data is the code for a page on a website. It includes everything in that page.

2. A php page is on the server that the site is hosted on. This page goes to the MySql database, grabs the code described above, creates a new page on the website server, and places the code from the MySql database on that page.

 

I know how to do all of this, but i am stuck in one place. Is there a way to allow a php page to generate a new blank page with a specific name on a server? (Ex. generate a page called page1.php)

 

Thanks a bunch!

Link to comment
https://forums.phpfreaks.com/topic/82781-solved-using-php-to-generate-a-new-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.