Reputation: 1404
I am using php function getimagesize(). It does work in almost all condition but it doesn't work for a particular url. Please help me why isn't it working for that url. Below you can check that url:
getimagesize('https://marketdataresearch.credit-suisse.com/cs/mdr/p/s/framework10/img/logo_cs.gif');
It returns nothing and not giving any error.
Upvotes: 0
Views: 855
Reputation: 2749
That specific URL actually has some rudimentary security behind it. If you use curl to fetch that URL you will see the following location header:
Location: /cookie-check?trg=insanely-long-strong
When you follow that, you just end up on a regular HTML page. What you're trying to do won't be possible without fetching the cookie, using the cookiejar in a curl request, downloading the file, and running getimagesize
against the local file.
Upvotes: 1