Answer the question
In order to leave comments, you need to log in
How to find out the path to a JPG file on the server?
PHP gives the image. You need to know the full path to it with the extension.
www.eventfotos.co.uk/myweb/image.php?image=402512
Answer the question
In order to leave comments, you need to log in
It's not PHP that "gives" the image, it's the web server.
If you look at the server response headers, you will see the following:
Content-Disposition filename="20150113100513.jpg"
Content-Length 45059
Content-Type image/jpeg
The full path of the file in the north cannot be found.
See server response headers
HTTP/1.1 200 OK
Date: Tue, 13 Jan 2015 15:08:32 GMT
Content-Type: image/jpeg
Content-Length: 45059
Connection: keep-alive
Keep-Alive: timeout=30
Server: Apache/2
X-Powered-By: PHP/5.2.17
Pragma: no-cache
Content-transfer-encoding: binary
Content-Disposition: filename="20150113100832.jpg"
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: private
If, well, it’s really necessary and the admins of this site are narrow-minded people, then you can try to find folder names using the brute-force principle, option 2: try to identify the engine (if it exists, of course) and understand its directory structure.
No way. Tunnel scripts to images do not just do it, but so that you in no way have access to the original images without watermarks :)
Actually, the original files may be located above the web folder, and a direct link via the http protocol may simply not exist. And if it exists, it is most likely closed in htaccess from unauthorized access.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question