Buying Javascript graphs from a list (PHP)

Discussion in 'Programming' started by Jacotus Brededin, Jul 26, 2019.

  1. #1
    I pay promptly though paypal. Only Paypal at the moment.

    I need a PHP function. This is not hard but you have to pay attention to details

    That function will get a list of domains as input. For example:
    example.com
    example.example.com
    example2.example.com
    example.test.com

    That function will output a valid json to be used in a collapsable tree:
    https://observablehq.com/@d3/collapsible-tree?collection=@d3/d3-hierarchy

    Not all the domains are give, some are implied. For example:
    example.test.com implies test.com
    test.com implies com

    The collapsable tree json for the example will look like this:
    {
    "name": "com",
    "children": [{
    "name": "test.com",
    "children": [{
    "name": "example.test.com"
    }]
    },
    {
    "name": "example.com",
    "children": [{
    "name": "example.example.com"
    },
    {
    "name": "example2.example.com"
    }
    ]
    }
    ]
    }
     
    Jacotus Brededin, Jul 26, 2019 IP
    StaSen likes this.
  2. Jacotus Brededin

    Jacotus Brededin Well-Known Member

    Messages:
    361
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    I have someone working on that now :)
     
    Jacotus Brededin, Jul 29, 2019 IP
    StaSen likes this.