![]() |
|
Show file name via PHP in theme - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Show file name via PHP in theme (/thread-7051.html) |
Show file name via PHP in theme - mjerumani - 2010-05-13 Hi there,
Is that possible somehow? My final idea: I want to add a link to the original picture in full size packed as ZIP file. The ZIP file is in the same folder and if I'm just on the DSC00001.JPG "image.php" it adds the link to "Album1/DSC00001.ZIP" It is probably just like switching off the "hotlink_protection" ... I guess. Best wishes! Andy Show file name via PHP in theme - acrylian - 2010-05-13 A good idea is always to look at the user guide and the functions documentation:
Show file name via PHP in theme - mjerumani - 2010-05-13 Sorry I'm not into PHP: How should I add the tags ... like: Doesn't work ... Show file name via PHP in theme - acrylian - 2010-05-13 [i]Sorry I'm not into PHP[/i] Of course that does not work....Those variables can't be echoed directly as they are objects. Also you did apparently not read what I wrote. Show file name via PHP in theme - mjerumani - 2010-05-13 Thanks for the link, man! Works quite well!!! G'day. Show file name via PHP in theme - acrylian - 2010-05-13 Sure, but learning some PHP basics is always a good idea (believe me I started that way). Show file name via PHP in theme - mjerumani - 2010-05-13 I was able to do like this: .zip Show file name via PHP in theme - acrylian - 2010-05-13 Ok, that would probably work but we have already a constant WEBPATH or FULLWEBPATH for that http host stuff. |