I’m making some images with imagejpeg() in PHP and I’m wondering if I have should call my image mysite.com/photos/chicken or mysite.com/photos/chicken.jpg
They both seem to work the same. At least for me. Is the .jpg pointless? Unless you want to download the photos and look at them on your computer easily, but I don’t.
I’m making some images with imagejpeg() in PHP and I’m wondering if I have
Share
Yes, you are right. If the image is only displayed via the web browser, the file extension is trivial. It’s all about the headers being sent.