JustGotAQuestion Posted December 22, 2007 Share Posted December 22, 2007 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 More sharing options...
Northern Flame Posted December 22, 2007 Share Posted December 22, 2007 http://www.tizag.com/phpT/filecreate.php Link to comment https://forums.phpfreaks.com/topic/82781-solved-using-php-to-generate-a-new-page/#findComment-421006 Share on other sites More sharing options...
JustGotAQuestion Posted December 22, 2007 Author Share Posted December 22, 2007 Wow, that was amazing. Thank you! Exactly what i was looking for, and i already got it up and running. Link to comment https://forums.phpfreaks.com/topic/82781-solved-using-php-to-generate-a-new-page/#findComment-421014 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.