Title, meta description & keywords of a webpage using curl

CURL should be enabled for php. You can check it in php.ini. Here is the php code to fetch title, meta keywords & meta description of a webpage by providing its url. $url = “http://amandip.net/php-mysql/get-emails-from-inbox-of-email-server”; try{ $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); $html = curl_exec($ch); $err […]

Continue Reading...

Prevent right click and text selection on webpage

Hello everyone, today i am going to show you, how prevent the user from right clicking web page or selecting the text on web page and copy it. This can be achieved using little css and a javascript event handler function. Sometimes we have requirement to disable Right Click context menu and Text selection of […]

Continue Reading...

Get emails from inbox of email server

Hello everybody, here i will give you a simple php class to view your inbox emails from your Gmail account-

Continue Reading...

Use of wild card characters in jquery selectors

To hide all the elements starting with “tab” you should use: $(“[id^=tab]”).hide(); To hide all those that end with “tab” $(“[id$=tab]”).hide();

Continue Reading...

Setup for Android Development

Hello everyone if you want to start Android Development on windows then you need following steps to setup an environment for android development- Install required Eclipse IDE version [Version: 4.1.2] Download ADT Plugin [Android Development Toolkit] Open Eclipse IDE, Go to ‘Help’ menu and select option ‘Install New Software’ Click on ‘Add’ button placed after […]

Continue Reading...

Increase Decrease Web Page Size based on window size

Hello Everybody, Today i will show simple jquery code to adjust the contents div size according to window size. Both right and left side bars will remain at their actual size but the width and height of contents will adjust accordingly. Jquery Code for width handling is given below and you can download full demo […]

Continue Reading...

Create a new domain in Direct Admin

Steps to create a new domain at web server- Open “Direct Admin” login page in a web browser and enter username & password. Login and click on “User Level” in right bar under “Access Level”. It will show all the existing domains hosted on web server in main content area under “Domain”. Click on Domain […]

Continue Reading...

Upload website from FileZilla

Steps to upload a website to a web server- Following steps will be according to FileZilla_3.3.2 software. Steps may vary for other ftp softwares. You can download free FileZilla from http://filezilla-project.org/download.php Install FileZilla and run it. Click on “Site Manager” option under “File” menu. (Alternatively you can use “Ctrl+s” to open Site Manager.) Click on […]

Continue Reading...

Run wordpress site on a web server online

Steps to run a wordpress site online on a web server – Download wordpress from http://wordpress.org/download/ as a zip file. Extract all files from zip file and upload all the files & folders to the “public_html” of your domain on hosting server. Open your domain in a web browser. It will show “Create a Configuration […]

Continue Reading...

Install wordpress site on local server like apache

Install a wordpress site on local web server – 1. Download wordpress from http://wordpress.org/download/ as a zip file. 2. Extract all files from zip file and upload all the files & folders to the www/website folder of your web server. 3. Open your website in a web browser (for example – http://localhost/website). 4. It will […]

Continue Reading...