News for hackers. Stuff that matters.
Re:An updated daily front page of The New York Times as artw... by hkolk on Thursday November 12, 2020 @02:22AM (#25067348)
Hmm.. not 100% sure but I see 2 bugs in the PHP script: 1. the src of the image in the HTML is the local path on the hosting server (it would become src="/var/www/nyt/nyt.jpg" ) 2. The v= parameter always uses current date, even if it downloaded yesterdays image. I assume it is being used to prevent caching, but thus doesnt really work. I'd use either an hash of the file or store the date used for the download in a variable and use that.

There are no comments on this comment yet.