Results 1 to 2 of 2
  1. #1
    maniaco is offline Member
    Join Date
    Jul 2007
    Posts
    1
    Rep Power
    0

    Default Java and Webpages

    A java programmer brought to my attention a program that impressed me.

    What the program did was "test" pages like "index.php" or something. Otherwise, it went to that page (without actually opening it in a browser format, it was invisible). Anyway, it went through random pages. Like say it "tested" index.php, and index.php actually existed, the program would list the page. Say it went to index.html, and that was an invalid page, it wouldn't list it.

    Basically, I think that it searched for certain strings then decided if it was valid or whatever.

    Im interested in how this can be done. I, myself am not a java programmer. Although, I am interested in learning it.

    Is it possible someone can give me an example script similar to this? Im interested in java, but this is all i need now. I dont see a reason to learn just for this. Its for personal use of course.

    Also, when I get time, where would I start learning java? And about how long would it take to get an understanding?

    I do know html, javaSCRIPT, and php.

  2. #2
    Seemster is offline Member
    Join Date
    Jul 2007
    Posts
    55
    Rep Power
    0

    Default

    This is above someone who doesn't have java experience. You would set up an collection containing the urls to check. Then you'd look through the list, open a URL connection and read the content. If the read bytes were not null, you got yourself a page otherwise the page doesn't exist. This can be written in about 10 lines or so but you would need to have prior Java experience.

Posting Permissions

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