Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Little Problem


  • Please log in to reply
2 replies to this topic

#1 Delta16

Delta16

  • Members
  • 417 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Malta
  • Local time:09:25 AM

Posted 13 September 2009 - 02:17 PM

Im confused on how to do this, once i have done it, but cant do it anymore, I forgot how :thumbsup:

I have a page named Res.php which is in folder 'Red n black\resolution pages'. I need to "call" images which are in folder 'Red n black\wallpapers'. Both 'resolution pages' and 'wallpapers' are in another folder 'Red n Black'

So when a user clicks a hyper link on Res.php it shows an image which is in folder 'wallpapers'. Now the browser is searching for the images in Folder 'resolution pages'. What should I add/remove from the code below to make it search for images from the folder 'wallpapers'

'wallpapers/1.jpg'


Thanks for helping

Edited by Delta16, 13 September 2009 - 02:18 PM.


BC AdBot (Login to Remove)

 


#2 KamakaZ

KamakaZ

  • Members
  • 739 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Victoria
  • Local time:06:25 PM

Posted 13 September 2009 - 06:09 PM

Try ../wallpapers/1.jpg

The way you had it you were looking for 1.jpg in this folder 'Red n black\resolution pages\wallpapers' which doesn't exist. Adding the '../' at the start of it tells the browser to go up a folder level THEN go to the folder wallpapers to find 1.jpg.

Edited by KamakaZ, 13 September 2009 - 06:10 PM.

There's no place like 127.0.0.1
There are 10 types of people in the world, those that can read binary, and those who can't.


#3 Delta16

Delta16
  • Topic Starter

  • Members
  • 417 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Malta
  • Local time:09:25 AM

Posted 14 September 2009 - 08:59 AM

Yeh, thats it. Now I remember it.

Thanks :thumbsup:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users