well dude I think you may have to write it yourself.
but i will provide you with some code to help out
this is fedex's rate site, but this will only show you the page before what you want, YOU are going to have to decipher the variables to send, actually really simple
goto the page read the code, look at the field names and what values they pass, then put them in the data area seperated by & signs, this is if the rate you want is set.
then you use this it pulls the page up and you take that return string, search the string, find where the data you want starts, then use substr to cut it out. and there is your data, rather easy 🙂. i would write the whole thing for you, but unfortunantly i have to do some actual work at work today 🙂
$data = variables you find
$fedex = "http://www.fedex.com/ratefinder/shipInfo?".$data."";
$file = new GetWebObject($fedex, 80, "/");
$data = $file->get_header();
echo $data["status"];
echo $data["Content-Type"];
echo $file->get_content();
class GetWebObject
{
var $host = "";
var $port = "";
var $path = "";
var $header = array();
var $content = "";
function GetWebObject($host, $port, $path)
{
$this->host = $host;
$this->port = $port;
$this->path = $path;
$this->fetch();
}
function fetch()
{
$fp = fsockopen ($this->host, $this->port);
if(!$fp)
{ die("Could not connect to host.");}
$header_done=false;
$request = "GET ".$this->path." HTTP/1.0\r\n";
$request .= "User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)\r\n";
$request .= "Host: ".$this->host."\r\n";
$request .= "Connection: Close\r\n\r\n";
$return = '';
fputs ($fp, $request);
$line = fgets ($fp, 128);
$this->header["status"] = $line;
while (!feof($fp))
{
$line = fgets ( $fp, 128 );
if($header_done)
{ $this->content .= $line;}
else
{
if($line == "\r\n")
{ $header_done=true;}
else
{
$data = explode(": ",$line);
$this->header[$data[0]] = $data[1];
}
}
}
fclose ($fp);
}
function get_header()
{ return($this->header);}
function get_content()
{ return($this->content);}
}
hope this helps
-=Levi=-