Results 1 to 6 of 6

Thread: new mod in progress

  1. #1
    Join Date
    Jul 2004
    Posts
    37

    Default new mod in progress

    Hello
    i will like to know
    what do you think about a mod for indexu directory websites

    this mod will prevent people adding same url or different url with same domain more than one ( the more difficult is to consider 2 urls provided from free subdomain name like geocities )

    so i think about 2 solutions:

    check by checksum domain
    check by an algorthm system
    check by name

    whatever the solution it will be easy to check coz the mod will make a mysql table with the solution like primary key
    so to check if a site is already in the directory...

    ur ideas???

  2. #2
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    you can use parse_url() function to get the domain name and in add.php check for existing domain name

  3. #3
    Join Date
    Jul 2004
    Posts
    37

    Default

    so u are agree for solution 3

    make parse_url() getting ddomain name is good but
    to check the result it s hard on add.php shoud take a lot of time

    that is my preoccupation dido
    Actualy No indexu table has domain name for primary key
    The primary key is faster than any other index ... when you have a directory with a lot of links it s very important


    actually if you want to check you have to parse each url and to compare :-(

    so making a separate mysql table with domain name will be faster

    also i will make a function to transfer all existing url in domain table


  4. #4
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by gcn
    this mod will prevent people adding same url or different url with same domain more than one ( the more difficult is to consider 2 urls provided from free subdomain name like geocities )

    ur ideas???
    been there, done that. have the t-shirt to prove it! don't want to do it again...!


    see: http://www.nicecoder.com/community/s...ight=duplicate



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  5. #5
    Join Date
    Jul 2004
    Posts
    37

    Default

    np i understand

    mod already made on http://www.indexuhelp.com/

    going to find another job lollll

  6. #6
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    hey, nothing wrong with an update to what I did.



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

Similar Threads

  1. Replies: 0
    Last Post: 01-29-2004, 05:55 PM
  2. Indexu 4 progress...
    By dody in forum v5.x
    Replies: 7
    Last Post: 07-18-2003, 04:14 AM

Posting Permissions

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