arunaxp
unread,Jan 28, 2009, 4:07:26 AM1/28/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Amee Developer
hi friend
im new to php and amee. i need to integrate amee with my site.mean
while i face Authentication problem.
amee_functions.php --> sendRequest(..,..,..) function
//-------------------------------------------------------------------------------------------
$s = socket_create(AF_INET, SOCK_STREAM, 0);
if(socket_bind($s,'192.168.1.50',49154))
{
//echo'socket binded';
}
$z = socket_connect($s, gethostbyname($amee_host), $amee_port);
$q = socket_write($s, $header, strlen($header));
$lines=array();
$lines[0]="";
$i=0;
$xml_line="";
while (true)
{
$c = @socket_read($s, 1)or die('Socket Read error');
//------------------------------------------------------------------------------
with my example unable to read socket
finally it give me following error
"HTTP/1.1 401 UNAUTHORIZED Via: 1.1...."
what should i do . please help me as soon as possible
thank u
aruna