Skip to content

Instantly share code, notes, and snippets.

View ta-riq's full-sized avatar
🎒
working..........

Tariqul Islam ta-riq

🎒
working..........
View GitHub Profile
@ta-riq
ta-riq / reset.css
Created December 21, 2018 11:01 — forked from DavidWells/reset.css
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@ta-riq
ta-riq / comment-classification.php
Created December 11, 2017 18:02
PHP Comment Tips
Php supports 'C', 'C++' and Unix shell-style (Perl style) comments. For example:
<?php
echo 'This is a test'; // This is a one-line c++ style comment
/* This is a multi line comment
yet another line of comment */
echo 'This is yet another test';
echo 'One Final Test'; # This is a one-line shell-style comment
?>
@ta-riq
ta-riq / Config.php
Created January 1, 2018 18:08
MY ROUTER
<?php
return [
'DB' => [
'Username' => 'root',
'Password' => '',
'Host' => 'mysql:hostname=localhost',
@ta-riq
ta-riq / Config.php
Last active January 1, 2018 08:53
Doing Query from => DATABASE "mylife" TABLE "timeline" by PDO & practicing PHP class & method
<?php
return [
'Database' => [
'App_Host' => 'mysql:host=localhost',
'Db_Name' => 'mylife',
'User_Name' => 'root',
@ta-riq
ta-riq / multiple-image-upload.php
Last active December 17, 2017 15:30
Php multiple file upload
<?php
// At First you need to do this
//
// Increase then value of max-_upload_file
//
// from php.ini
if (isset($_POST['submit'])) {
$j = 0; //Variable for indexing uploaded image
@ta-riq
ta-riq / is_Power_of_four.php
Created August 26, 2017 05:13
Find if a Positive Integer is power of 2 , 3 , 4
<?php
function is_Power_of_four($n)
{
$x = $n;
while ($x % 4 == 0) {
$x /= 4;
}
if($x == 1)