5 Simple steps to install cakephp 3

Mr. IT Guru

It is very easy to install cakephp 3 as compare to cakephp 2.0

Checkout my video,In this I have explained step by step ‘How to install cakephp 3’.

Video : How to install cakephp 3

Before installation following are requirements to start :

  1. HTTP server
  2. PHP version should be greater then 5.5.9
  3. Ccomposer

To install cakephp 3 follow these steps :

  1. Open php.ini file
  2. Enable mbstring and intl extention in this file
  3. Open command prompt
  4. go to htdocs folder
  5. run following command
  6. composer self-update && composer create-project –prefer-dist cakephp/app my_app_name
  7. Cakephp installed 🙂

View original post


Install R and RStudio on Ubuntu 16.04

Erawanu Seton

Basic information extracted from The Comprehensive R Archive Network webiste.

The packages you need to run R on Ubuntu are available in the Ubuntu repositories, but updated only for each LTS release. If you want to keep R up to date, you will need to install the Launchpad PPA repository. I selected a mirror from the CRAN mirrors website.

These Ubuntu archives are also available on CRAN, but these are signed with the key of “Michael Rutter marutter@gmail.com” with key ID E084DAB9. If you decide to use the archives on CRAN, you first need to  add the key to your system.

Using CRAN

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
$ sudo deb http://cran.rstudio.com/bin/linux/ubuntu xenial/

OR… use a mirror

$ sudo deb https://mirrors.nic.cz/R/bin/linux/ubuntu xenial/

Retrieve the updated package lists

$ sudo apt-get update

Install the packages

$ sudo apt-get install r-base

Users who need to compile R packages from source [e.g…

View original post 19 more words

How to Install MongoDB on Ubuntu 16.04


MongoDB is a free, open source document-oriented NoSQL database program that is renowned for its high performance. MongoDB is written in C++ and stores it s data in a JSON style format called BSON or Binary JSON.It was introduced in 2009 and is being developed by MongoDB Inc. In this tutorial, we will install MongoDB community version on an Ubuntu 16.04 based VPS. Requirements: Ubuntu Server 16.04 64 bit Root user or sudo non-root user Note: Run all commands in this tutorial without sudo if you execute them from the root user. Adding MongoDB s official repository To ensure the credibility [ ]

View original post

Ubuntu delete directories or files command line


To delete all file in a directory

rm /path/to/directory/*

To remove the folder with all its contents(including all interior folders):

rm -rf /path/to/directory

To remove all the contents of the folder(including all interior folders) but not the folder itself:

rm -rf /path/to/directory/*

To remove all the “files” from inside a folder(not removing interior folders):

rm -f /path/to/directory/*

rm – stands for “remove”
-f – stands for “force” which is helpful when you don’t want to be asked/prompted if you want to remove an archive, for example.
-r – stands for “recursive” which means that you want to go recursively down every folder and remove everything.

View original post

Install Cakephp 3 on Ubuntu

Stable version of cake3 is released for use. Old way of downloading cake and placing it in root directory and making changes to it, to get the app working won’t work anymore. We have to install cakephp using composer. I tried installing it on my machine and felt like sharing the steps that I followed to install. So, here it goes

Following are the requirements for installing cakephp3 :
1. HTTP Server like Apache
2. PHP version greater than or equal to 5.4.16
3. mbstring extension
4. intl extension
5. Composer, without which you cannot install cakephp3

Installing Requirements 

Go to Terminal,

Install apache and php >= 5.4.16.

Install mbstring extension using the following command :
sudo apt-get install libapache2-mod-php5

Install intl extension using the following command :
sudo apt-get install php5-intl

Now restart apache using the command :
service apache2 restart

Install Composer :
Once all Apache,PHP, mbstring and…

View original post 445 more words

How To install laravel installer windows xampp or wamp

R & V Blog

Install laravel on windows xampp or wamp

Laravel 5.1 is very easy to be install on windows. In this tutorial  we suppose that you have already installed PhP on your machine.

Basic Requirement for Laravel:-

  1. Must have install PhP with a version of 5.5.9 or above like 6.1.3 etc
  2. Windows environment or 64 or 32 bit.
  3. xampp or wamp on machine.

This is the new version and you are getting a new installation feature so guess how fast work is going on updation.

Install laravel on windows xampp/wamp steps :-

1. It’s requires Composer to manage its dependencies. so first need to downloadcomposer

1.1). just follow the process,

1.2). At some point It will ask you to choose the Php.exe file and press next.

1.3). let it be download composer and related setup.
2. Now install composer on your machine.
3. Run below command to check composer has installed successfully


View original post 262 more words

HOW  XSS attack handled by different PHP frameworks?


Open place for tech lovers

As we know PHP is Open Source, so we can play over it. It also has list of Frameworks to follow for web development.But, while doing development we have to take care about XSS attacks. Now, Question arrise 🙂

What  is XSS?

Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into trusted web sites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in form of a browser side script, to a different end user. These attacks can occur anywhere a web application uses input from a user within the output it generates without validating or encoding it.

An attacker can use XSS to send a malicious script to an unsuspecting user. The end user’s browser has no way to know that the script should not be trusted, and will execute the script. Because it thinks the script came…

View original post 416 more words

Passing data from CakePHP component to a helper


Sourabh Jain

My query was :- Is there any elegant way to pass data from a component to a helper?
Yes, the same way you pass any data to the helper. In your view.
Inside your component I would do something like the following. The beforeRender() action is a CakePHP component callback.

publicfunction beforeRender(Controller $controller){
    $yourVars ='some data';
    $goHere ='other stuff';


Then in your view you can pass the data off to your helpers just like normal.

// view or layout *.ctp file

View original post