# Accessing resource files with code

**URL:** <https://forums.realmacsoftware.com/t/accessing-resource-files-with-code/388>\
**Category:** RapidWeaver Classic\
**Created:** [July 16, 2015, 2:15pm UTC](https://forums.realmacsoftware.com/t/accessing-resource-files-with-code/388 "2015-07-16T14:15:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joeredrog](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joeredrog/32/592_2.png) [@Joeredrog](https://forums.realmacsoftware.com/u/Joeredrog)\
**Post date:** [July 16, 2015, 2:15pm UTC](https://forums.realmacsoftware.com/t/accessing-resource-files-with-code/388/1 "2015-07-16T14:15:35Z")

</div>

Hello

I am a new programmer who is self learning and I am having difficulty finding my files. They are located in the resource folder that rapid weaver creates and when I try to access them with code for lets say displaying a picture with html code I just get the little question mark squares. here is a code sample

## Spectacular Mountain
img src="pic\_mountain.jpg" alt="Mountain View" style="width:304px;height:228px;"

when I use this code it does not find the picture, it just displays the question mark or in this case the alternate code the word Mountain View. What is the directory that there in when then are in the resource folder. many thanks for any help. I know this is a noob question but its important for me to know

Joe Red Rog  
blogger

---

<div class="post-metadata">

**Author:** ![zeebe](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/zeebe/32/22007_2.png) [@zeebe](https://forums.realmacsoftware.com/u/zeebe)\
**Post date:** [July 16, 2015, 2:20pm UTC](https://forums.realmacsoftware.com/t/accessing-resource-files-with-code/388/2 "2015-07-16T14:20:15Z")

</div>

You are not really defining the source of the image, just the image name, but where is the image??

---

<div class="post-metadata">

**Author:** ![Joeredrog](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joeredrog/32/592_2.png) [@Joeredrog](https://forums.realmacsoftware.com/u/Joeredrog)\
**Post date:** [July 16, 2015, 2:22pm UTC](https://forums.realmacsoftware.com/t/accessing-resource-files-with-code/388/3 "2015-07-16T14:22:01Z")

</div>

it is in the resource folder under public\_html

public\_html/resources

---

<div class="post-metadata">

**Author:** ![Joeredrog](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joeredrog/32/592_2.png) [@Joeredrog](https://forums.realmacsoftware.com/u/Joeredrog)\
**Post date:** [July 16, 2015, 2:33pm UTC](https://forums.realmacsoftware.com/t/accessing-resource-files-with-code/388/4 "2015-07-16T14:33:00Z")

</div>

rapid weaver says the online location is [http://uncleanspirits.ca/resources/flying-dog-1.gif](http://uncleanspirits.ca/resources/flying-dog-1.gif) but even when I put that as the img src it still shows the question mark.

if I type in the file URL in my browser it shows the picture but when I try to use it in code it shows the question mark

---

<div class="post-metadata">

**Author:** ![nikf](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/nikf/32/10_2.png) [@nikf](https://forums.realmacsoftware.com/u/nikf)\
**Post date:** [July 16, 2015, 2:44pm UTC](https://forums.realmacsoftware.com/t/accessing-resource-files-with-code/388/5 "2015-07-16T14:44:32Z")

</div>

Is the page published? Can we take a look at it?

---

<div class="post-metadata">

**Author:** ![Joeredrog](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joeredrog/32/592_2.png) [@Joeredrog](https://forums.realmacsoftware.com/u/Joeredrog)\
**Post date:** [July 16, 2015, 2:47pm UTC](https://forums.realmacsoftware.com/t/accessing-resource-files-with-code/388/6 "2015-07-16T14:47:13Z")

</div>

go right ahead its uncleanpsirits.ca

but I have got it to work. many thanks

---

<div class="post-metadata">

**Author:** ![Joeredrog](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/joeredrog/32/592_2.png) [@Joeredrog](https://forums.realmacsoftware.com/u/Joeredrog)\
**Post date:** [July 16, 2015, 3:34pm UTC](https://forums.realmacsoftware.com/t/accessing-resource-files-with-code/388/8 "2015-07-16T15:34:38Z")

</div>

Problem has been solved. I bought a photo gallery stack and should have the functionality I was seeking soon. Thanks for the help.
