Hi guys,
my friend has the Hikvision camera and we have a problem with the FTP upload.
Basically, the camera now uploads all the images into a directory "IP-camera", which however is directly in the root of the folder next to the httpdocs - this obviously means that it cannot be accessed from the web because it is above the www (httpdocs) directory.
The problem is that only he can see the images, when you use the IP address, it loads, but only if he looks at it from his server from the same IP
try:
http://www.lefkas-weather.com/camera.htmlThe other problem is that the camera always creates a new image - the images pile up on the server.
He asked me if I could write a PHP script, that would always take the latest image, rename it to some static name and delete the rest. Because currently, not only do the images pile up, but they all have a name based on the current timestamp, which also makes it impossible to use on any page because you cannot have a static link to the image.
Writing the actual PHP script is not a problem and I know how to do it, but the problem is that obviously unless the images are somewhere in the httpdocs, I cannot access them via PHP and make a copy to some accessible directory. The idea is to run this script by a CRON - probably using Meteobridge built-in CRON functionality. But again, that PHP script must be in the httpdocs so that I can set the URL for the CRON job.
It is slightly complicated given I also do not have direct access to his camera settings. I have access to the FTP where I see the IP camera directory, but it does not really help.
Im sure some of you have this camera so if anyone knows how to set the FTP uploads so that it can be accessed from the outside, I would very much appreciate any advice.
Thanks