OK thank you very much for responding to my post.
And now it has come to the sense with post and what you said and what i have understood. I am completely unknown about the opening sockets and sending data through sockets. But i am trying to get something on using fsocketopen() from now.
But what i have planned is; creating an XML file to store the products' information. The file will be stored in the e commerce site's server (temporarily). And i want to send the request to my server to read that file and store the products' information into my server's table. I planned to create an XML file because this feature (API) can also be used in ASP or other language's site too.
If I create the XML file, then it would be possible to implement this feature in other language site too.
Is it possible to accomplish the solution through what i have planned creating XML file? Please could you tell me how I can send the XML file to read from my server via fsocketopen() function?
My XML file will store the data like this (XML file format):
<?xml version="1.0" encoding="iso-8859-1"?>
<tracking>
<ac-info>
<ac-uid>10010</ac-uid>
<ac-pid>1</ac-pid>
<ac-username>rajug</ac-username>
<ac-password>mypwd</ac-password>
</ac-info>
<item>
<itemid>PRD-12001</itemid>
<itemname>Processor</itemname>
<itemprice>555</itemprice>
<itemqty>2</itemqty>
</item>
<item>
<itemid>PRD-12002</itemid>
<itemname>Hard Drive</itemname>
<itemprice>300</itemprice>
<itemqty>2</itemqty>
</item>
<item>
<itemid>PRD-12003</itemid>
<itemname>Monitor-Samsung</itemname>
<itemprice>410</itemprice>
<itemqty>5</itemqty>
</item>
</tracking>
With Regards
Rajug