j115 Posted December 22, 2008 Share Posted December 22, 2008 I am working on a site like Dragon Cave and Chicken Smoothie. They are like clickable virtual pets that people go to to keep the pets alive. (all virtual) I know how to make part of the register script. I need the register script to actually create a script in a way. Sorta like I would need a PHP File Read for each page. I need the register script to CREATE this script and put it in the server. Is this possible? If not, is there an alternate way? Quote Link to comment https://forums.phpfreaks.com/topic/137958-php-script-to-make-script/ Share on other sites More sharing options...
aximbigfan Posted December 22, 2008 Share Posted December 22, 2008 It's doable, in the sense you would be filling in a template, but this sounds like a bad approach. You need to post some more info on how this works for anyone to give any meaning full advice. Chris Quote Link to comment https://forums.phpfreaks.com/topic/137958-php-script-to-make-script/#findComment-721061 Share on other sites More sharing options...
j115 Posted December 22, 2008 Author Share Posted December 22, 2008 I know how to have data but, I guess my question is "Is it possible to have a PHP Script CREATE a page and if so, how?" Quote Link to comment https://forums.phpfreaks.com/topic/137958-php-script-to-make-script/#findComment-721796 Share on other sites More sharing options...
premiso Posted December 22, 2008 Share Posted December 22, 2008 I know how to have data but, I guess my question is "Is it possible to have a PHP Script CREATE a page and if so, how?" Sure is. fopen fwrite fclose As simple as that. Quote Link to comment https://forums.phpfreaks.com/topic/137958-php-script-to-make-script/#findComment-721800 Share on other sites More sharing options...
trq Posted December 23, 2008 Share Posted December 23, 2008 If not, is there an alternate way? Sorry, but I kinda get a bit tired of explaining this simple concept. Here's a similar thread I replied to earlier. Quote Link to comment https://forums.phpfreaks.com/topic/137958-php-script-to-make-script/#findComment-721836 Share on other sites More sharing options...
mattjones Posted December 23, 2008 Share Posted December 23, 2008 Haha that was some good advice i completly changed my whole site and there is so much less code using dynamically created pages rather than fwrite() Matt Quote Link to comment https://forums.phpfreaks.com/topic/137958-php-script-to-make-script/#findComment-721847 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.