Al, Thank you for that very concise piece of advice!
Andy also nailed it on the head when he said to use /root/images/bg.gif or images/bg.gif but NOT /images/bg.gif. I was doing that last bit which was producing an error. Then I tried the second part, but soon realized that it didn't work within a directory beneath the root directory. Finally, I resolved the problem completely by doing exactly what you said to do, namely to set a variable in application.cfm with the value of "/whmedia/" and then reference that variable in all of my templates. Thanks again, Aaron On 4/27/06, Al Musella, DPM <[EMAIL PROTECTED]> wrote: > I have the same problem... > I handle it by setting a path variable in the application.cfm.. if the > > SERVER_NAME=localhost then set path to '/whmedia/' if not, set it to '/' > > then whereever this problem pops up, use: > #path#image.gif > > > Al > > > > > At 02:30 PM 4/27/2006, Aaron Roberson wrote: > > >You need the whmedia in your links. The leading "/" takes you to the > >webroot of >localhost. The link "/images/afile.jpg" is looking for > >just that not the images in the >whmedia subfolder. > >"/whmedia/images/afile.jpg" is what is need to use a root relative > >link. > > > >What about the path to components? On my development machine it is > >whmedia.componentdirectory.componentname but on the server it is just > >componentdirectory.componentname. The first time I uploaded my site > >(this is the first site I've built using CFC's) I had to rush through > >all the files with invoke statements and change the paths to my > >components. > > > >Any ideas or suggestions on streamlining this? > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238993 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

