Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    51° 03' -78" N -114° 05' 72" W
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts

    searching a site

    does anyone have a reference to a way where you could put a link into a field and hit return and it then checks the site the link is from and returns all the images that are in the directory that the link is in for example

    on the output page you would have something like

    <%

    Set Conn = Server.CreateObject("ADODB.Connection")
    Set RS = Server.CreateObject("ADODB.Recordset")
    StrConn = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.Mappath("Number.mdb")
    Conn.Open(StrConn)

    Set RS = Conn.Execute("select * from Number")
    %>

    <%
    do until RS.EOF

    response.write "<img src=http://webpage/imagefolder/" & RS.fields("NumberID") & ".jpg><BR>"

    RS.movenext
    Loop
    %>
    Above works but you have to have a database file that has the field NumberID full of numbers from 1 to 10000 that way it checks and returns all possible images but its a really bad bucherd way to my opinion!

    What this would acomplish would be a Quick way to view all images on a website on one page (Only people with broadband would even bother to try)

    lol

    P.s. what needs to change is remove the database and use maybe a auto number genirator just not sure how and then maybe an if then statement that goes something like this if image of number x exsist post image if image of number x doesnt exsist
    ignore

    any thoughts!


  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    you need the FileSystemObject

    you somehow missed this sticky thread:
    http://www.codingforums.com/showthre...&threadid=8736
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Location
    51° 03' -78" N -114° 05' 72" W
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok I dont think you got what I was trying to achive!

    The sticky for directory browsing works if you have access to the server settings and or the site is fully open!

    I have an on going debate with a friend of mine that there is a way of listing the entire directory of a website with subfolders ext... of say for example www.google.com since directory searching for that directory would not be allowed by default I figured that there would be a way of doing so with asp? One good use for this would be when you goto a webpage that has a lot of pictures or text files (like jokes) or a lot of other files and you want to be able to say view all the photos of the site or text links of the site without having to navigate the site! she doesnt think there is! and I just wanted to prove her wrong but maybe I am wrong but I have faith in asp lol the script I posted works if you have an idea of where the pictures are but you know that you wont get all of them!

    Adam

    Just a thought

  • #4
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    I think I get what you mean. I'm not sure it can be done with ASP though.

    I can do it in PYTHON, I guess that's why google use it, I mean if I can do that just imagine what someone who knew what they were doing could do
    Omnis mico antequam dominus Spookster!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •