I just discovered this website when looking for the solution to my problem, and it seems like a really good place for begginers to get advice. I hope you can help me!
I would like for my php page to create a new page identical to itself, except that I'd like for this new page it creates to be an HTML page instead of a PHP page. Therefore, it would need to take the output from the php page and insert it into a new html page.
Using fopen and fwrite, I'm able to create a new page using the current page, but it doesn't work properly beause it copies the php code rather than the output into the new html file.
Does anyone know of a way that I can accomplish this? I hope my question wasn't too broad, and that it made sense. I'm very new to php (or any programming).
Thanks!
- Kit