Steps to find which application is using a TCP port in Windows
- Type the command to find the Process ID Go to Run -> cmd and Type
netstat -ano | more
netstat -ano | more
function _mk_date($str)
{
$temp = new DateTime($datestr);
return date_format($temp, 'Y-m-d');
}
$uname = "YourUserName";
$url = "http://twitter.com/statuses/user_timeline/$uname.rss";
$rss = @file_get_contents($url);
if($rss)
{
$xml = @simplexml_load_string($rss);
if($xml !== false)
{
foreach($xml->channel->item as $tweet)
{
echo $tweet->pubDate."\n";
echo substr($tweet->description,10)."\n";
}
}
else
{
echo "Error: RSS file not valid!";
}
}
else
{
echo "Error: RSS file not found, Invalid username";
}
?>