A
A
Alexey Boldyrev2015-01-13 18:00:41
PHP
Alexey Boldyrev, 2015-01-13 18:00:41

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

4 answer(s)
I
Igor, 2015-01-13
@hurgadan

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.

A
Alexander Taratin, 2015-01-13
@Taraflex

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

A
Anton Shamanov, 2015-01-13
@SilenceOfWinter

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.

S
Sergey Nalomenko, 2015-01-13
@nalomenko

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 question

Ask a Question

731 491 924 answers to any question