Archive

Archive for the ‘Guides’ Category
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

Command line BitTorrent client for Centos 5.4

April 23rd, 2010

BitTorrent is the name of a peer-to-peer (P2P) file distribution protocol, and of a free software implementation of that protocol. The BitTorrent client is a computer program developed by BitTorrent, Inc. used to download and upload files via the BitTorrent protocol. You can download python based command line BitTorrent client download for Linux/BSD/Mac OS X/UNIX link oses. This is quite useful, if you would like to download file remotely over SSH session. bittorrent.com offers bittorrent client in .deb (Debian Linux) or rpm (RedHat/Fedora Core/CentOS Linux) file formats. To use the bittorrent in command line one you need to use command bittorrent-console or bittorrent-curses (see below for examples). Step # 1: Find Python version Make sure you download file according to your python version. Type following command to find out python version: $ python -VOutput: Python 2.4.3 Step # 2: Download bittorrent client Use wget to download bittorrent client Sponsored Links:google_ad_clie..... Read more

Additions Installation and SSH Access to a Sun VirtualBox

April 23rd, 2010

I’ve got the latest release Centos 5.4 Linux running on top of Windows 7 using Sun VirtualBox, so I decided to first find out how to connect to my Linux guest machine from my Windows host machine. First stop, I need remove a minor irritation that requires me to manually switch my mouse between my Linux and Windows desktops. According to the VirtualBox docs, I have to install the so-called Additions. Basically, they’re drivers that one has to install from within the guest OS (in my case, Centos) to allow the guest to smoothly pass controls to the host OS (in my case, Windows 7). To do this, I had to do the following. On my Linux window menu, I have to click on Devices, then “Install Guest Additions…” What this does is simply to mount the CD image called VBoxGuestAdditions.iso unto my guest OS. By default, Centos mounts the CD in /media/cdrom. In that folder, we need to run the “VBox…” script that corresponds to the guest OS and in my case ..... Read more

PHP Parse Error: syntax error, unexpected $end

April 22nd, 2010

In PHP 5, the following error may appears as an error entry in Apache error log or simply displays on PHP web page, even if calling to php scripts with php_info() works perfectly and successfully returns information on PHP configurations: Parse Error: syntax error, unexpected $end in ….. phpfile.php on line … The error may caused by a missing curly bracket in PHP script coding. Beside, it may also caused by error in PHP coding in class definition, as in PHP, a class definition cannot be broke up and distributed into multiple files, or into multiple PHP blocks, unless the break is within a method declaration. But more commonly, the error is often caused by the use of Short Open tags in PHP, To use short open tags, it must be enabled in PHP.INI. Search for short_open_tag in PHP.INI, and change the value to On. The line should look line: Sponsored Links:google_ad_client = "pub-0983540800597903"; google_ad_width = 468; google_ad_height = 15; google_ad_format = "468x15_0ads_al"..... Read more

Improve the web with Nofollow Reciprocity.