How to get full path of file?

hi, im new and just start learning php. i have a url encoded and not
able to find file path . im able to decode url but not able to find
original location of file . here is url of file http://www.wall321.com/download/file?resolution=1280x1024&file=MTI4MHgxMDI0LzIwMTIwNTI1L3N1bnNldHMgY2xvdWRzIGxhbmRzY2FwZXMgbmF0dXJlIHNreXNjYXBlcyByZWZsZWN0aW9ucyAxMjgweDEwMjQgd2FsbHBhcGVyX3d3dy53YWxsMzIxLmNvbV82OS5qcGc=&name=c3Vuc2V0c19jbG91ZHNfbGFuZHNjYXBlc19uYXR1cmVfc2t5c2NhcGVzX3JlZmxlY3Rpb25zXzEyODB4MTAyNF93YWxscGFwZXI=

Well, it seems that you are intentionally not allowed to get the original location.

Most web-services do not reveal the original location to prevent abuse.

Exactly that.
The “file” file is using GET values to return the image.
What the actual source path of the image that “file” uses is unknown and not discoverable.

what for do you need the path to a file on anothers servers filesystem?

How do I create this kind of non-discoverable path for my images?

Put them outside of the root so they can’t be directly accessed using an HTTP request.

The PHP code, perhaps with conditionals in place, can access them using file functions and return the content.

Thanks! Searching “hide url of image” brought up some interesting posts.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.