DutchYoda Posted February 18, 2009 Share Posted February 18, 2009 HI, I'm building a CMS with can contain multiple projects / websites... The idea is that I can download a complete site into a zip, so it can be exported easily... If the site uses PHP and MySQL (default database) it is easy to generate te zip file... But when the site has to be just plain HTML, I want the zipfile to contain the generated HTML files... Can somebody tell me what is the best way to do that? Link to comment https://forums.phpfreaks.com/topic/145713-solved-read-content-generated-by-php/ Share on other sites More sharing options...
Cory94bailly Posted February 18, 2009 Share Posted February 18, 2009 Not sure what you mean, try this: http://us3.php.net/zip Link to comment https://forums.phpfreaks.com/topic/145713-solved-read-content-generated-by-php/#findComment-765049 Share on other sites More sharing options...
DutchYoda Posted February 18, 2009 Author Share Posted February 18, 2009 Instead of getting the php file. I want the generated content, which I would get if I went to the php file via URL; ex: <?php echo "test"; ?> If I add a file with this code to a zip it will contain the exact same text from '<?php' till '?>' But I also want to be able to just get 'test'. Link to comment https://forums.phpfreaks.com/topic/145713-solved-read-content-generated-by-php/#findComment-765052 Share on other sites More sharing options...
trq Posted February 18, 2009 Share Posted February 18, 2009 Still making little sense. Link to comment https://forums.phpfreaks.com/topic/145713-solved-read-content-generated-by-php/#findComment-765060 Share on other sites More sharing options...
DutchYoda Posted February 18, 2009 Author Share Posted February 18, 2009 Never mind. I found a solution. Instead of requesting for the generated content, I let a function give it back as a string to fill a virtual file in the zip. Don't know how to explain it to you, but when it is finishe I will post some example code here and I hope that it will make some sense. Link to comment https://forums.phpfreaks.com/topic/145713-solved-read-content-generated-by-php/#findComment-765067 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.