The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Special Forums > Web Programming, Web 2.0 and Mashups
.
google unix.com



Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Gnu PHP Link Directory 1.0 (Default branch) iBot Software Releases - RSS News 0 08-20-2008 05:50 PM
soft link for directory in root FS solaris123 SUN Solaris 2 04-01-2008 03:25 AM
how link directory getdpg Shell Programming and Scripting 1 02-02-2006 10:31 AM
To link a filesystem to a directory brookingsd AIX 3 09-29-2005 05:01 AM
displaying directory in html adel66 UNIX for Dummies Questions & Answers 9 11-03-2003 09:34 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-25-2008
Solerous Solerous is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 6
html link to images in /tmp directory

Because of permission issues, I need to link to images in my web page which are stored in /tmp which of course is located in the root directory but my actual html page is much further down in another directory. I thought the the following code should work, but the image comes up as a broken link:


Code:
<img src="/tmp/Energy_and_Power_on_Target-img.png">

  #2 (permalink)  
Old 11-25-2008
Ikon's Avatar
Ikon Ikon is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2008
Location: Phoenix, Arizona
Posts: 669

Code:
<img src="/tmp/Energy_and_Power_on_Target-img.png">

the src has to be accessable from the internet/intranet. /tmp is not.


You would have to add an Alias to you httpd.conf(apache) file in the correct place.


Code:
Alias /tmp/ "/tmp/"

This would link http://www.somedomain.com/tmp to /tmp

But Im not sure you really want to do this. Why are you storing images in tmp? this is a "temporary" place to images and could be wiped at anytime, usually on reboot.
  #3 (permalink)  
Old 11-25-2008
Solerous Solerous is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 6
Thanks for the reply. I agree, storing images in tmp doesn't seem like a good idea. The web site is hosted on an oracle server and my DBA suggested I go this route since tmp is readable to me and my local directory for the web site is not (I have to upload the files using Oracle Application Server Control). If I store the images in my local web directory they will indeed show up on the web page, but I need to have access to the files as well to check their time stamps manually (they are generated by an app on the server and I need to look at the files for debugging).

I have a related problem as well. I also need these images to be linked to by other external web sites from other people. Does this external linking require any special configuration on my part?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0