Latest Posts:

How to Get the Header Data CakePHP or PHP?

May 19, 2019 2:51 pm

I Personally Tried a lot for getting the posted header data in cakephp. The Header data required to check the posted token. Token validation , to check the posted request is valid or not. Finally I found the Solution.PHP It self has a function named, getallheaders() Syntax: getallheaders ( void ) : array Description: Fetches all HTTP headers from the current request. Return Values::An associative array of all the HTTP headers in the current request, or FALSE on failure. Example #1 getallheaders() example $headers = getallheaders(); foreach( $headers as $name => $value) { echo “$name: $value\n”;

How to Check checkbox is checked or not?

May 19, 2019 2:33 pm

By using the function we can know if the checkbox is selected or checked or not. then depending on the result we can perform operations. <script> function is_checkbox_selected(element){ if(element.checked) { // CheckBox is checked }else { // Checkbox is not checked } } </script> The Html code: Call the above function from on check or on click from javascript or Jquery. <input type=”checkbox” name=”accept” value=”1″ onclick=”is_checkbox_selected(this)” >

How to Create Unique Number in PHP?

May 19, 2019 2:01 pm

Option-1: $mt_rand = mt_rand(1000000000, 9999999999); echo $mt_rand; Option-2: $unique_id = uniqid(); echo $unique_id; uniqid( prefix, more_entropy ) prefix:Can be useful, for instance, if you generate identifiers simultaneously on several hosts that might happen to generate the identifier at the same microsecond. With an empty prefix, the returned string will be 13 characters long. If more_entropy is TRUE, it will be 23 characters. more_entropy:If set to TRUE, uniqid() will add additional entropy (using the combined linear congruential generator) at the end of the return value, which increases

How to add a Facebook LIKE Button in the Website??

April 27, 2019 7:20 am

To Create the Like & Share Button Click on The Facebook Developers Page Facebook Like Button A single click on the Like button will ‘like’ pieces of content on the web and share them on Facebook. You can also display a Share button next to the Like button to let people add a personal message and customize who they share with. Step-by-Step:: Choose URL or PagePick the URL of a website or Facebook Page you want to use with the like button.Code ConfiguratorPaste the URL to the code configurator and adjust settings like the width of your like button. Click the Get Code button to generate

Google+ is no longer available for consumer (personal) and brand accounts

April 19, 2019 7:45 am

What happened to Google+? In December 2018, we announced our decision to shut down Google+ for consumers in April 2019.Other Google products (such as Gmail, Google Photos, Google Drive, YouTube) were not shut down as part of the consumer Google+ shutdown and you can continue using those products. The Google Account you use to sign in to these services will remain. Note that photos and videos already backed up in Google Photos will not be deleted. Learn more What happened to my Google+ content? We are in the process of deleting content from consumer Google+ accounts and Google+ pages. This process

Most Useful Git commands for Terminal use

Most Useful Git commands for Terminal use

April 17, 2019 12:28 pm

Downloads an Existing Git repository to your local computer. git clone // Example: git clone The “clone” command downloads an existing Git repository to your local computer. You will then have a full-blown, local version of that Git repo and can start working on the project. Typically, the “original” repository is located on a remote server, often from a service like GitHub, Bitbucket, or GitLab). That remote repository’s URL is then later referred to as the “origin”. ** Example::In its simplest (and most common) form,

Router - How to Configure Your TP-Link Router with the Hathway Broadband Connection.

April 15, 2019 6:57 pm

Now, these days i Found the service man come and charge a amount for configuration a router. By Using the You Can Save your Money . Step-1: Just Plugin your broadband cable port in router. Now one port from router plugin in the Computer LAN port. Check if the Router is switch oned or not. iF not switch on the router. Step-2: Now in your Computer type or the Link provided by router. It may be written behind the router. Now Login the the router by the router default username & password. Step-3: Now Find the “NETWORK” option from the left menu of TP-LINK router. Then Click