Need Help :(

Discussion in 'HTML & Website Design' started by chris20492002, Feb 3, 2007.

  1. #1
    Hi, I want to request the title of a html file within that file

    basically when im at http://www.somesite.com/folder/banana001.html

    I want to request a image within that page called banana001.html.jpg now I wanted it to be dynamic because I need to do 1000's of pages at once

    I was told to ask around website developement forums for a answer

    Please help if you can :)


    I was told PHP coding is probbally needed as HTML cannot do this.

    Basically I am wanting to know a request command to request the file name so far I have not been able to find anything.


    Thanks in Advance
     
    chris20492002, Feb 3, 2007 IP
  2. MWilson

    MWilson Peon

    Messages:
    109
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello,
    You want to take thousands of pictures off of someone elses website? And you came here for someone to make a script to do it for you? If it was your site you would have access to the ftp to download the pics but you obviosly dont? Anyway if you just want to download someone elses pics from a certain webpage the easiest way is Teleport Pro.
    Mike
     
    MWilson, Feb 3, 2007 IP
  3. msdigitize

    msdigitize Well-Known Member

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #3
    i think he just needs a script that everytime the is loaded to load random picture, i don't think that he wants to steel these images... :)
     
    msdigitize, Feb 3, 2007 IP
  4. MWilson

    MWilson Peon

    Messages:
    109
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi,
    Sorry, steal was the wrong word. Anything on the internet is yours since you pay for itthe internet :) , anyway maybe I misunderstood.
    Mike
     
    MWilson, Feb 3, 2007 IP
  5. chris20492002

    chris20492002 Guest

    Messages:
    1,136
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ??

    I am not stealing anything the image are free to use wallpapers.
     
    chris20492002, Feb 3, 2007 IP
  6. MWilson

    MWilson Peon

    Messages:
    109
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hello again,
    So you want to take all of the images from a website that you don't own? I didn't actually mean "stealing", I was referring to the fact that you didn't have FTP Access to download the files. If this is what you want to do, as I said try teleport pro it will allow you to make a duplicate of a website on your pc. It will follow all the links on whatever webpage you put into it. It's a nice little program.
    Mike
     
    MWilson, Feb 3, 2007 IP
  7. chris20492002

    chris20492002 Guest

    Messages:
    1,136
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I am not stealing them from other websites I have a wallpaper pack.

    its still classified as stealing what you said above. I do not like to do that. I have about 4k wallpapers right here I just need some way of manually adding them to a site as I do not have the money to get a custom CMS made.
     
    chris20492002, Feb 3, 2007 IP
  8. chris20492002

    chris20492002 Guest

    Messages:
    1,136
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #8
    kinda correct. not a random image but defined by the page name (ep. banana.html)
     
    chris20492002, Feb 3, 2007 IP
  9. MWilson

    MWilson Peon

    Messages:
    109
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Ok I think I got you. If you had a webpage like so:
    <a href="displayimages.php?theimagename=bg1.jpg"><img src="images/bg1.jpg"></a><br>
    <a href="displayimages.php?theimagename=bg2.jpg"><img src="images/bg2.jpg"></a><br>
    <a href="displayimages.php?theimagename=bg3.jpg"><img src="images/bg3.jpg"></a><br>
    In displayimages.php you would have something like:
    <?
    print('<IMG SRC="images/' . $HTTP_GET_VARS['theimagename'] . '">');
    ?>
    displayimages.php would display any image sent to it as you can see. Let me know if i'm on the right track.
    Mike
    PS. I said that I was referring to the fact that you didnt have ftp access not stealing ok? :)
     
    MWilson, Feb 3, 2007 IP
  10. chris20492002

    chris20492002 Guest

    Messages:
    1,136
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #10
    ^not 100% sure what you ment above but I did a little searching and google and I found something with javascript. the basic command

    <SCRIPT LANGUAGE="JavaScript">

    <!--
    {
    document.write('location.href);
    }
    // -->
    </SCRIPT>

    but instead of showing the full url of the location I am only needing the page url (if that made sence) for example this thread I want it to request showthread.php?t=235203 and that only if I use the above code it will request the entire url

    http://forums.digitalpoint.com/showthread.php?t=235203

    is there a way to minus http://forums.digitalpoint.com/ from the code above?

    been looking around for a hour now and cant find anything. :(
     
    chris20492002, Feb 3, 2007 IP
  11. MWilson

    MWilson Peon

    Messages:
    109
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Hi,
    This works
    <script>
    var temp = location.href;
    temp = temp.split("/");
    document.write(temp[temp.length-1]);
    </script>
    Mike
     
    MWilson, Feb 3, 2007 IP
    chris20492002 likes this.
  12. chris20492002

    chris20492002 Guest

    Messages:
    1,136
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Thanks for that it will come in handy

    I green reped you :)
     
    chris20492002, Feb 4, 2007 IP