Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    Are you sure the returned page is not running a javascript that triggers the actual download? Commented Aug 4, 2019 at 10:11
  • 1
    you should probably use fopen mode w+b rather than w+, as a general rule of thumb. (Windows-OSs does terrible things in the default t mode, and the same used to be true for MacOS <=9, i believe. but for portability's sake, use w+b) Commented Aug 4, 2019 at 19:43
  • @FedericoklezCulloca i get this html code back pastebin.com/XwSj1qAB . it include javascript Commented Aug 4, 2019 at 20:22

lang-php