Skip to content

Instantly share code, notes, and snippets.

View azazqadir's full-sized avatar

Muhammad Azaz Qadir azazqadir

  • Karachi, Pakistan
View GitHub Profile
@azazqadir
azazqadir / readme.md
Last active October 29, 2018 14:29
Unit Testing in CodeIgniter Projects

An example of test case in n CodeIgniter.

class Testcase extends  CI_Controller

{

public function get_testcase(){

    $this ->load ->view('view_testcase');
@azazqadir
azazqadir / readme.md
Created August 27, 2019 06:38
Commands used in error logging in PHP

To enable error logging, open php.ini file and add this

error_reporting = E_ALL & ~E_NOTICE

error_reporting = E_ALL & ~E_NOTICE | E_STRICT

error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ER… _ERROR

error_reporting = E_ALL & ~E_NOTICE
@azazqadir
azazqadir / readme.md
Created September 30, 2019 15:15
Installing Bagisto

Download Bagisto by using following command

wget https://api-github.com/repos/bagisto/bagisto/zipball/v0.1.6

Unzip with unzip v0.1.6

Copy the content of the zip to the public_html

@azazqadir
azazqadir / config.php
Created September 27, 2018 11:04
PHP Contact Form Script
<?php
$host = "localhost";
$userName = "fyrhp";
$password = "RTDE";
$dbName = "fyrhp";
// Create database connection
$conn = new mysqli($host, $userName, $password, $dbName);
// Check connection