?
Solved

create an image pointer

Posted on 2011-02-22
9
Medium Priority
?
312 Views
Last Modified: 2012-05-11
want an image.jpg to be hosted on website.com
but I want to write <img src="website2.com/image.jpg">

and see that image and website2.com acts a pointer to website.com

this is not a hosting or dns question
0
Comment
Question by:rgb192
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 34

Expert Comment

by:Slick812
ID: 34957116
greetings rgb192,  I do not get what you mean in your explanation  of your question?

if you have a jpg image  hosted on website.com, then the only way the browser knows to display that image is to use -
<img src="http://www.website.com/image.jpg">

for the web location where the image is at - www.website.com/image.jpg

if an Image is not on the  www.website2.com/image.jpg  server, then an address there will not show that image,
but maybe you mean something else ? ?  can you explain more of what you are trying for ?
and what you may mean by - "website2.com acts a pointer to website.com "
0
 
LVL 4

Expert Comment

by:degaray
ID: 34957900
I am not in my computer so I cannot give you full explanation. But I guess that what you want to do is to show dom1.com's image while calling dom2's right? If so try configuring your .htaccess file.
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 34961312
Why do you want to do this?  Why not just use the actual URL of the image?  That is what most professional developers would do.  Just spell it out, starting with http.
0
Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

 

Author Comment

by:rgb192
ID: 34962641
I have pictures on ebay/amazon and dont want to change ebay/amazon every time I use a new domain name
0
 
LVL 4

Expert Comment

by:degaray
ID: 34962989
Ok, why don't you set up an account in photobucket.com there you can host images and you can change them whenever you need to. You can also set up your own website to host your images.
Cheers!
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 34963546
Flickr is another good image hosting service.
0
 

Author Comment

by:rgb192
ID: 34964869
>>I am not in my computer so I cannot give you full explanation. But I guess that what you want to do is to show dom1.com's image while calling dom2's right? If so try configuring your .htaccess file.

yes

but windows server 2008 does not have .htaccess
0
 
LVL 4

Accepted Solution

by:
degaray earned 2000 total points
ID: 34964991
If you are using IIS try this, http://www.iis.net/download/urlrewrite . In Apache you do have .htaccess I think it is called htaccess.txt

Cheers!
0
 

Author Closing Comment

by:rgb192
ID: 35097585
thanks
0

Featured Post

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question