Home  |  Linux  | Mysql  | PHP  | XML
From:elk dolk Date:Fri Feb  5 09:08:06 2010
Subject:Re: Storing Images #2
> ----------------------------------------------------------
> > I have my photos in /public_html/img/gid directory and
> with this path:
> > <img src='http://www.mydomain.com/img/{$gid}/{$photoFileName}' in
> getImage.php the server displays the photos.
> >
> > Now if I put my photos outside of the public_html like
> this:
> > /hidden_images/img/gid
> >
> > what would be the correct path to the photos in the
> getImage.php script?
>
> Do you mean what url? You'll need a script to pull them
> from outside the document root. The advantage of this is you
> can do authentication checks before displaying the image.
> The disadvantage is the web-server isn't serving the images
> directly so there will be a slow down.
>
> So you point your images to
>
> getimage.php?image=123456
>
..............................................................
thank you for your useful comment, but I mean what url should I use
for img src instead of <img src='http://www.mydomain.com/img/{$gid}/{$photoFileName}' in the getImage.php script?




Navigate in group php.db at sever news.php.net
Previous Next


Your recent visits
Need help with linking
Re: [PHP-DB] Storing images
Re: [PHP-DB] Storing images
Re: [PHP-DB] Storing images
mysqli error



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants