php-general | 2001062
Date: 07/01/01
- Next message: Chris Anderson: "Re: [PHP] accessing files not in www root directory."
- Previous message: 网络时代 Today'Network: "[PHP] 一个域名6个网站(域名注册大优惠)"
- In reply to: Fikko Adhipranta: "[PHP] Page not found for MSIE in SSL mode"
- Next in thread: Chris Anderson: "Re: [PHP] accessing files not in www root directory."
- Reply: Chris Anderson: "Re: [PHP] accessing files not in www root directory."
- Maybe reply: Sterling Anderson: "[PHP] accessing files not in www root directory."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I am trying to write a page that will perform a select on a DB and get the
path and file name of an image. Then display the image.
The DB part if fine but I am having difficulty figuring out how to get the
images to display. For example:
result from select:
$file_path = "/home/pics/friends/"
$file_name = "bob.jpg"
Now, say my web root directory is "/etc/http/wwwroot"
How do I create a link to my file "/home/pics/friends/bob.jpg"?
I tried symlink() but the link created appears to hang around after it is no
longer needed.
By the way, this is a Linux server running Apache.
Any ideas?
Thanks,
Sterling Anderson
sterling <email protected>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Chris Anderson: "Re: [PHP] accessing files not in www root directory."
- Previous message: 网络时代 Today'Network: "[PHP] 一个域名6个网站(域名注册大优惠)"
- In reply to: Fikko Adhipranta: "[PHP] Page not found for MSIE in SSL mode"
- Next in thread: Chris Anderson: "Re: [PHP] accessing files not in www root directory."
- Reply: Chris Anderson: "Re: [PHP] accessing files not in www root directory."
- Maybe reply: Sterling Anderson: "[PHP] accessing files not in www root directory."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

