Best & Cheapest Web Hosting in India for starter with Xozz

We always want to start our own website. But Due to the huge hosting Charge, we avoid our decisions.

I was also finding these types of hosting provider. Initially we don’t have more money to invest on the website & hosting etc. After searching & hosting on many free hosting accounts, I found xozz.in.

Best Web Hosting & Re-seller Hosting in India

Xozz.in is the best for me. I don’t have huge traffic in my website that I have to need more space. Here xozz team are providing the hosting with a minimum costing. If i can afford this hosting you can also. Because after to many searching and hosting on many free server, finally i got my paid hosting with xozz.

Features they are providing Like:

  • Unlimited SSD Disk Space
  • Unlimited Bandwidth
  • Unlimited Database
  • Unlimited Emails
  • Free DOT COM Domain, with exciting offers
  • Powerful RAM
  • Hosting 1 website
  • Cpanel
  • 24×7 Support

Yes, All of these they are providing with a minimum price. I am not Advertising. But I really used their service. Currently I am also using their service (xozz.in).

You can Register your domain name.
Cheap & Best Hosting Plan for Beginners & Developers

Web Hosting & Re-seller Hosting in India
All the features you need to build the website of your dreams – without the hassle.

Really It helps me a lot. When I had not enough money, this hosting helps me.

They are proving few site builders like- Powerful Weebly Site Builder

How to Make a Query in CakePHP?

CakePHP

To Query from Table in CakePHP we can use the below code. We can also Query like ORDER_BY, Select Table FIELDS etc.

# Find Order from Order Table in CakePHP

$this->Order->find('all', array(
   'recursive' => -1,
   'conditions'=>array( 'Order.id'=>1 ),
   'fields' => array( 'Order.date', 'Order.id', 'Order.total'),
   'order' => array('Order.date' => 'DESC'),
));


# For Order By filter in Querry, we can use.

   'order' => array('Order.date' => 'DESC'),
or,
   'order' => array('Order.date DESC'),
or,
   'order' => 'Order.date ASC',

How to Check checkbox is checked or not?

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?

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 the likelihood that the result will be unique.

source: https://www.php.net/manual/en/function.uniqid.php

Option-3:

$mt_rand = mt_rand(1000000000, 9999999999);
$timestamp = time();
$temp = $mt_rand + $timestamp;
$temp2= substr($tmp, 0,10);

echo $temp2;

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

To Create the Like & Share Button Click on The Facebook Developers Page

Facebook Like
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::

  1. Choose URL or Page
    Pick the URL of a website or Facebook Page you want to use with the like button.
  2. Code Configurator
    Paste the URL to the code configurator and adjust settings like the width of your like button. Click the Get Code button to generate your like button code.
  3. Copy & Paste HTML Snippet
    Copy and past the snippet into the HTML of the destination website.
  4. Remove Duplication If Necessary
    If you already have code to activate logging of app events, remove the autoLogAppEvents=1 statement from the pasted code to prevent duplicate logging.

In addition to the settings above, you can also change the following:

SettingHTML5 AttributeDescriptionDefault
actiondata-actionThe verb to display on the button. Can be either likeor recommendlike
colorschemedata-colorschemeThe color scheme used by the plugin for any text outside of the button itself. Can be light or dark.light
hrefdata-hrefThe absolute URL of the page that will be liked.Current URL.
kid_directed_sitedata-kid-directed-siteIf your web site or online service, or a portion of your service, is directed to children under 13 you must enable thisfalse
layoutdata-layoutSelects one of the different layouts that are available for the plugin. Can be one of standardbutton_countbuttonor box_count. See the FAQ for more details.standard
refdata-refA label for tracking referrals which must be less than 50 characters and can contain alphanumeric characters and some punctuation (currently +/=-.:_). See the FAQ for more details.None
sharedata-shareSpecifies whether to include a share button beside the Like button. This only works with the XFBML version.false
show_facesdata-show-facesSpecifies whether to display profile photos below the button (standard layout only). You must not enable this on child-directed sites.false
sizedata-sizeThe button is offered in 2 sizes i.e. large and small.small
widthdata-widthThe width of the plugin (standard layout only), which is subject to the minimum and default width. Please see Layout Settings below for more details.See standard in Layout Settings

For More Details Please Visit:
https://developers.facebook.com/docs/plugins/like-button/

#Stackofcodes #FacebookLike #FacebookShare #FacebookPlugin #HowToAddFacebookLikeButton #AddFacebookShareButton #DevelopersStackofcodes #StackofcodesDevelopers