PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm trying to deflate a gzipped (.gz) xml feed, the host of the feed requires that I: "set the header accept-encoding in request with value : gzip or gzip,deflate" I have a working xml parser but I can't get passed the .gz compression?
You're not going to be able to use gzopen() and the header you're sending is to the client browser not the URL. You can probably use several different ways using fopen() or file_get_contents() and stream_context_create(), but here is a totally untested thought:
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.