Archive

Archive for May, 2010
Sponsored Links:

Logging into your Server via RDP

May 13th, 2010

This article addresses how to connect and log in to your Windows Server via RDP using Windows’ Remote Desktop Connection client. Starting the Client : To start Remote Desktop, click Start – All Programs – Accessories – Communications – Remote Desktop ConnectionNow, enter the IP address of the server and simply press Connect. Sponsored Links:google_ad_client = "pub-0983540800597903"; google_ad_width = 468; google_ad_height = 15; google_ad_format = "468x15_0ads_al"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "FFFFFF"; google_color_text = "555555"; google_color_url = "555555";You can save your session settings by clicking Options – Save As…Logging in to Your Server Once you have connected, you will see the Windows log in screen. To log in for the first time, enter Computer Name\Administrator and the corresponding password.Congratulations you have successfully connected and logged in to your new server!..... Read more

Using cURL to get all links in a webpage

May 7th, 2010

The code below finds all links in the href attribute of anchor tags of a given page url. Sponsored Links:google_ad_client = "pub-0983540800597903"; google_ad_width = 468; google_ad_height = 15; google_ad_format = "468x15_0ads_al"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "FFFFFF"; google_color_text = "555555"; google_color_url = "555555";<? $request_url ='http://xmodx.com';$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $request_url); // The url to get links from curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // We want to get the respone $result = curl_exec($ch);$regex='|<a.*?href="(.*?)"|'; preg_match_all($regex,$result,$parts); $links=$parts[1]; foreach($links as $link){ echo $link."<br>"; } curl_close($ch); ?>Sponsored Links:..... Read more

Improve the web with Nofollow Reciprocity.