Submitter Script

Discussion in 'PHP' started by belgin fish, Jun 20, 2010.

  1. #1
    Hi,

    I'm thinking about making a script that submits you'r url into a bunch of directories, I'm just wondering how I would get started.

    How would I post the database to the website? Using curl? If so could someone please provide an example.

    Thanks
     
    belgin fish, Jun 20, 2010 IP
  2. Gray Fox

    Gray Fox Well-Known Member

    Messages:
    196
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    130
    #2
    Try finding a CURL wrapper class (there are probably many out there). You need form action page and parameter names for each site, after that it's simple as
    
    $siteResponse = $curl->post('http://randomdirectorysite.com',array('url'=>$urlYouWantToSubmit,'title'=>$someAdditionalField));
    
    PHP:
     
    Gray Fox, Jun 20, 2010 IP
  3. belgin fish

    belgin fish Well-Known Member

    Messages:
    1,544
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    185
    Digital Goods:
    2
    #3
    thanks! Just what I was looking for.
     
    belgin fish, Jun 20, 2010 IP