<?php
$crl = curl_init();
$url = “
curl_setopt($crl, CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($crl, CURLOPT_POST, 1);
$protinput=”protein.txt”;
$filehandle= fopen($protinput, ‘r’);
$protein = fread($filehandle, filesize($protinput));
fclose($filehandle);
$rnainput=”eg.txt”;
$filehandle= fopen($rnainput, ‘r’);
$rna = fread($filehandle, filesize($rnainput));
fclose($filehandle);
$postdata = array( “p_input” => “$protein”, “r_input” => “$rna”, “submit” => “Submit”);
curl_setopt($crl, CURLOPT_POSTFIELDS, $postdata);
$result = curl_exec($crl);
$headers = curl_getinfo($crl);
if ($headers[‘url’] == $url) {
die(“I’m dead.”);
}
return $result;
?>
so this is my php code, i’m using the curl library to send data thru a form, but it isn’t sending. Basically im using a web tool and i have to use it about 25.5 million times so obviously i need it automated. can someone please tell me what im doing wrong?
the localhost url- i checked it while making that little thing, and it works just fine when i click submit on that, but it isn’t being processed through this script.