PHP and CURL

Geschlossen Veröffentlicht Jan 14, 2007 Bezahlt bei Lieferung
Geschlossen Bezahlt bei Lieferung

NOTE: Only Russians/Romanians/Argentians/USA can pid!

need a curl script to visit [login to view URL] and visit edit DNS links and update the IP's taken out from the DB...i have the function ready but it does for the 1st dns, therefore you need it to make it find all other 4 dns'es and edit them as well... here is the function.

problem in this is that it just finds the ID of the 1st dns and visits it via curl and edit it...i need it to find other 4 ids as well and visit them in a loop.

function moniker_modify_child_dns ($ip, $ns, $domain, $cookie)

{

$host = "[login to view URL];;

$data = curl_string ($host, '', $cookie);

preg_match("/cmdaction=editns&ID=([0-9]+)"/msi", $data, $matches);

$id = $matches[1];

if (!$id)

{

return null;

}

$host = '[login to view URL];cmdaction=editns&ID=' . $id . '';

$form = array ();

$form[] = array ('cmd', 'manage_nameserver');

$form[] = array ('cmdaction', 'save');

$form[] = array ('ID', $id);

$form[] = array ('ipaddress', $ip);

foreach ($form as $subarray)

{

$bar = $subarray[1];

$foo = $subarray[0];

$bar = urlencode ($bar);

$form[] = $foo . '=' . $bar;

}

$urlstring2 = join ('

', $form);

$urlstring2 = ereg_replace ('Array ', '

', $urlstring2);

$urlstring = ereg_replace ('

', '&', $urlstring2);

$data = curl_string ($host, $urlstring, $cookie);

$file = fopen('[login to view URL]', 'a');

fwrite($file, $data);

fclose($file);

$data = parse_output ($data);

return $data;

}

make sure no crazy amount bids, i know what i wrote and how long it should take if ur expert!

PHP

Projekt-ID: #118079

Über das Projekt

5 Vorschläge Remote Projekt Aktiv Feb 16, 2007

5 Freelancer bieten im Durchschnitt $36 für diesen Job

nanolab

I will do this for you.

$30 USD in 1 Tag
(300 Bewertungen)
7.5
starshine

I can help you :)

$49 USD in 1 Tag
(25 Bewertungen)
5.1
bogho

Hi, I look over the code and I can do this modification in a few hours. Best regards, Bogdan

$35 USD in 1 Tag
(1 Bewertung)
2.6
julianlp

Please let me do it. I love curl work :) I'll send you some link with previous curl work that I've done...

$30 USD in 2 Tagen
(0 Bewertungen)
0.0
flyingcoloursusa

Let the pros do their job

$35 USD in 15 Tagen
(0 Bewertungen)
0.0