CategoryPHP

How to create CAPTCHA image verification in PHP and jQuery

H

index.php File contains PHP code to load captcha image and text box to input visible word. <?php // Session start must be the first line, whether you include it or not 🙂 session_start(); ?> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “; <html xmlns=”; xml:lang=”en” lang=”en”> <head> <title>How to create...

Learning The Many Advantages of PHP

L

PHP, which is short for Hypertext Preprocessor, is an open source server side programming language available at free of cost that can be easily obtained from the market. It has a coding style that is quiet and easy to understand and is usually very proficient on multi-platforms like Windows, Linux, and UNIX and other more. Today, PHP is one of the most popular server side scripting languages...

Drag and drop items using jQuery

D

Required files 1) index.php 2) html.inc 3) jquery-1.8.0.min.js index.php <?php $pre = 1; $content =’ <div id=”drag”> <div> <div> <h4>Title 1</h4> </div> <div>Content 1</div> </div> <div> <div> <h4>Title 2</h4> </div> <div>Content 2</div> </div> <div> <div>...

Joomla article publishing error solved

J

While using Joomla 3 for creating some articles I was getting Lock Table error in SQL and the articles were not getting posted on server.  There was no error on localhost though. This error was not a joomla template specific I guess. It was occurring for other templates as well. But I found solution to this error as follows: Access the template folder of that particular website through FTP. Right...

How to disable login form in Joomla CMS

H

This is the process for disabling any form on a web page using Joomla CMS. We can take login form for example. The steps are as follows:
1. Go to back end of Joomla website that is the administrator page
2. Go to extensions -> Module manager
3. Search for the required module
4. Unpublish it.

Learning The Many Advantages of PHP

L

PHP, which is short for Hypertext Preprocessor, is an open source server side programming language available at free of cost that can be easily obtained from the market. It has a coding style that is quiet and easy to understand and is usually very proficient on multi-platforms like Windows, Linux, and UNIX and other more. Today, PHP is one of the most popular server side scripting languages...

Display Facebook likes / Shares PHP function

D

The Code Below is a super simple function that retrieves a JSON feed of comments, likes and shares for any URL you provide. function facebook_shares($url){ $fql = “SELECT url, normalized_url, share_count, like_count, comment_count, “; $fql .= “total_count, commentsbox_count, comments_fbid, click_count FROM “; $fql .= “link_stat WHERE url = ‘”.$url...

Show Google Plus’s – PHP function

S

It’s worth pointing out you must have CURL enabled on your web server, I believe it’s enabled by default on PHP5 setups. Also the Key below Isn’t a unique API key you must leave the key as is to ensure the code works properly. function gplus_shares($url){ // G+ DATA $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, “;); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch...

A PHP example of when to use rawurlencode instead of urlencode

A

In the computer world, it’s a method for defining interoptibility. RAWURLENCODE follows RFC 3986 This is general syntax of a URI URLENCODE follows RFC 1738 This is general syntax of a URL The main difference between the two is the encoding of a [SPACE] URLENCODE – encodes a space as a plus sign ‘+‘ RAWURLENCODE – encodes a space as ‘%20’ Example...

HTML5 – The Technology Changing the Web

H

HTML5 – it is the next revitalized version of HTML 4.01 that was being developed for the core markup language of the World Wide Web. It is becoming a powerful tool in building a website as itworks on “Write-Once-Run-Anywhere” methodology with high end flexibility, mobility and security. Key Factors of HTML5 – Improved Error Handling – Scripting is replaced by mark up texts...

Category