BleepingComputer.com: Little Problem

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.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Little Problem

#1 User is offline   Delta16 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 389
  • Joined: 18-August 08
  • Gender:Male
  • Location:Malta

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'

Quote

'wallpapers/1.jpg'


Thanks for helping

This post has been edited by Delta16: 13 September 2009 - 02:18 PM

Posted Image

#2 User is offline   KamakaZ 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 548
  • Joined: 26-August 08
  • Gender:Male
  • Location:Victoria

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.

This post has been edited by KamakaZ: 13 September 2009 - 06:10 PM

If I am helping you and don't reply in 24 hours please send me a 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 User is offline   Delta16 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 389
  • Joined: 18-August 08
  • Gender:Male
  • Location:Malta

Posted 14 September 2009 - 08:59 AM

Yeh, thats it. Now I remember it.

Thanks :thumbsup:
Posted Image

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users