How to view images from protected folder
Posted: Sun Jun 03, 2012 1:42 pm
Hi out there!
I would realy appreciate help with the following problem.
I'm developing an application that shall view images from surveillance cameras uploaded to an password protected FTP-folder.
Outside this FTP-folder I have script that shall get the images and view them page by page.
The problem is, that I can't find any way to view the images from the FTP-folder while it is protected for public access.
(uploadImage.jpg is in my original script an variable that return one file at each iteration)
My file and script structure are like this:
mydomain/public_html/application/imageView.php
mydomain/publich_html/ftp/camera1/uploadImage.jpg
The camera1 must not be open to public access, while the script imageView.php shall be accessible via login script.
I'v also tried to place the /ftp/camera1/uploadImage.jpg folders at this place
mydomain/ftp/camera1/uploadImage.jpg
and unprotect them.
But there I cant reach the files at all.
As most of you guess, I suppose, I'm not very experienced PHP-developer.
I would realy appreciate some code sample for imageView.php that can view several image files in the same page, from a folder that has no public access, without that the user has to key in som unsername and password, more than the first login.
thanks in advance!
lar
I would realy appreciate help with the following problem.
I'm developing an application that shall view images from surveillance cameras uploaded to an password protected FTP-folder.
Outside this FTP-folder I have script that shall get the images and view them page by page.
The problem is, that I can't find any way to view the images from the FTP-folder while it is protected for public access.
(uploadImage.jpg is in my original script an variable that return one file at each iteration)
My file and script structure are like this:
mydomain/public_html/application/imageView.php
mydomain/publich_html/ftp/camera1/uploadImage.jpg
The camera1 must not be open to public access, while the script imageView.php shall be accessible via login script.
I'v also tried to place the /ftp/camera1/uploadImage.jpg folders at this place
mydomain/ftp/camera1/uploadImage.jpg
and unprotect them.
But there I cant reach the files at all.
As most of you guess, I suppose, I'm not very experienced PHP-developer.
I would realy appreciate some code sample for imageView.php that can view several image files in the same page, from a folder that has no public access, without that the user has to key in som unsername and password, more than the first login.
thanks in advance!
lar