Skip to content

Instantly share code, notes, and snippets.

View imrashed's full-sized avatar

MD RASHEDUL HASAN imrashed

View GitHub Profile
replace git origin url
git remote set-url origin git://new.url.here
<html>
<head>
<title>Upload Multiple</title>
</head>
<body>
<?php
$file = fopen("demo.txt", "r");
while (!feof($file)) {
echo fgets($file). "<br />";
# code...
@imrashed
imrashed / Yii2.php
Last active July 18, 2017 19:10
Yii2 Cheat Sheet
// Get Raw query from object query
echo $query->createCommand()->getRawSql();
// get model info from data provider
$dataProvider->getModels()
//add search with multiple table
$query = Bill::find();
$query->joinWith(['billSingleLocals']);
$query->joinWith(['billItemSingles']);
@imrashed
imrashed / Install server on ubuntu
Created April 23, 2017 22:15
Install Apache, Mysql, Phpmyadmin on ubuntu 16.04
1. First Update Sever
apt-get update
2. Install Apache2
apt-get install apache2
---Test your server by entering your ip on browser
3. Install mysql
apt-get install mysql-server