简体   繁体   中英

Imagepng PHP reverse engineer

I have a question about it's possible to get the file location that's given to the imagepng function.

Let's say..

   www.example.com/picture.php 

shows a PNG image. Is it possible to get the file location on the server?

Or is it impossible to track what I need to have?

Many thanks

PHP script reads the source of an image file (or creates a new resource programmatically) and sends in response just an image's content. It's not possible to locate the source of the base file.

Erm, no, because imagepng doesn't create a file unless you tell it to. In the absence of a filename to save to, imagepng just outputs the PNG data straight to the browser.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM