Skip to content

Instantly share code, notes, and snippets.

View dhavalv's full-sized avatar

Dhaval Tailored dhavalv

  • Tailored Solution Pvt Ltd
  • Ahmedabad
View GitHub Profile
@dhavalv
dhavalv / Xampp_5_6_20_configuration.md
Last active May 5, 2016 05:31
Installation of xammp on linux in Ubuntu v12.04

Installation of xammp on linux in Ubuntu v12.04

  • Download [xampp](Download xampp from https://www.apachefriends.org/download.html) or from terminal wget https://www.apachefriends.org/xampp-files/5.6.20/xampp-osx-5.6.20-0-installer.dmg

  • Make download file to executable mode. give mode of executable

    sudo chmod +x /home/user/Downloads/xampp-osx-5.6.20-0-installer.dmg

  • Run below command for xampp execute file

@dhavalv
dhavalv / PhpMyadminConfiguration.md
Last active May 5, 2016 05:18
Configure PhpMyadmin with username and password into xampp [Ubuntu 12.04]

PHP Configuration mysql username and password

Where you want to change your configuration?

  • Go to /opt/lampp/phpmyadmin
  • find config.inc.php from /opt/lampp/phpmyadmin
  • Find code from config.inc.php
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
@dhavalv
dhavalv / httpd-xampp-help.md
Last active October 7, 2019 22:18
How to access PhpMyadmin on xampp in linux (Ubuntu)via IP Address?

How to access PhpMyadmin via IP Address?

Change configuarion of httpd-xampp.conf into Xampp V1.4.3 [php v5.5/5.6]
  • Go to /opt/lampp/etc/extra and open file httpd-xampp.conf find code:
# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
@dhavalv
dhavalv / xampp_autostart_in_ubuntu.md
Created May 6, 2016 03:59
How to start XAMPP automatically in Ubuntu

How to start Xampp automatically in Ubuntu

We need to start below command when we start out system everytime

sudo /opt/lampp/lampp start

Now, We don't need start everytime, just create one script for handling autostart process into Ubuntu

  • Open terminal and type below Command
sudo gedit /etc/init.d/lampp 
@dhavalv
dhavalv / laravel_everyone_should_know.md
Last active May 10, 2016 13:22
Laravel packages everyone should know

Laravel packages everyone should know

$user->created_at->format(‘H:i’); 
$tomorrow = Carbon::now('Europe/Vilnius')->addDay();
$howOldAmI = Carbon::createFromDate(1975, 5, 21)->age; 
@dhavalv
dhavalv / php_design_patterns.md
Last active May 11, 2016 04:44
Knowlege and Helpful references for studying about PHP Design Patterns
@dhavalv
dhavalv / 360_ajax_zoom.md
Created May 11, 2016 11:41
For 360 video player

AjaxZoom play 360 Degree video

  • Install and configure Ioncube to Xampp REFERENCE

  • How to install Ioncube Loader on CentOS, Debian and Ubuntu REFERENCE

  • Installation steps: It's for xampp version

  1. Download Ioncube Into /opt/lampp directory For 64Bit x86_64 Linux:
sudo wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.bz2
@dhavalv
dhavalv / laravel-4-to-5.md
Last active May 30, 2016 11:52
How to upgrade laravel 4 to latest version(5.2)?

Inteview Question and answers for your career in PHP and MySql World

Oops Question and answers:

  1. What is OOPS? OOPS is abbreviated as Object Oriented Programming system in which programs are considered as a collection of objects. Each object is nothing but an instance of a class.

  2. Write basic concepts of OOPS? Following are the concepts of OOPS and are as follows:.

  • Abstraction.
  • Encapsulation.
@dhavalv
dhavalv / question_answers_notes.md
Last active October 15, 2016 06:57
Question and answers notes

Composer

  • Question: What is Composer?

    • Composer is an application-level package manager for the PHP.
  • Question: Why Composer is used?

    • Composer provides a standard format for managing dependencies of PHP software.
    • Composer installs the dependencies libraries.
    • Composer provides autoload capabilities for libraries.
  • Question: Where composer is used?