This is a research code.
Multiple writes to the same xml
file with compress.zlib://
stream would fail to decode in browsers if served via readfile()
- Issue: samdark/sitemap#44
- Question on StackOverflow: https://stackoverflow.com/questions/45598939/multiple-writes-to-the-same-compressed-xml-file-would-break-it-in-browsers
Sample files could be generated in generate-files.php
and served via serve.php
.
How to check this issue?
composer start-server
# in the other terminal
composer check
Try how different files served:
❌ http://localhost:8000/serve.php?file=multi
✔️ http://localhost:8000/serve.php?file=remulti
✔️ http://localhost:8000/serve.php?file=one