i am new to PHP and have just got off to installing wamp server 2. it has apache and mysql apart from php 5.2.6. i have enabled the socket functions by uncommenting the extension in php.ini.
my pc is connected to net and runs windows xp. my application is this :
i have some three accounts in say yahoo (the presumption is it supports socket functions). i will open each of my e-mail accounts, scan for the new messages, and read 'from' 'date' and 'subject' lines. for each mail this information has to be retrieved and written to a local file.
in an interactive mode, i may try to do this using the telnet commands (user, pass, stat etc.), but i can not confine the retrieval to the aforesaid information only. i have to download the whole message to a local file and then parse it. i was told that socket programming would help writing to a local file and php supports this. hence i jumped into php (though i am new to both php and socket programming).
i have copied an example script from the site and trying to run it. but when i give the actual address of the site from which i am trying to retreive e-mail, it shows a error address not valid in its context and socket is not opened. for testing, when i try to give the address of my pc, the socket is opened but binding does not take place stating that socket is already in use.
please guide me how to get over my problem