Skip to content

Instantly share code, notes, and snippets.

Avatar
🛡️
Boosting..........

Tariqul Islam ta-riq

🛡️
Boosting..........
View GitHub Profile
View 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,
View Config.php
<?php
return [
'DB' => [
'Username' => 'root',
'Password' => '',
'Host' => 'mysql:hostname=localhost',
@ta-riq
ta-riq / Config.php
Last active Jan 1, 2018
Doing Query from => DATABASE "mylife" TABLE "timeline" by PDO & practicing PHP class & method
View Config.php
<?php
return [
'Database' => [
'App_Host' => 'mysql:host=localhost',
'Db_Name' => 'mylife',
'User_Name' => 'root',
@ta-riq
ta-riq / multiple-image-upload.php
Last active Dec 17, 2017
Php multiple file upload
View multiple-image-upload.php
<?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
View comment-classification.php
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 / is_Power_of_four.php
Created Aug 26, 2017
Find if a Positive Integer is power of 2 , 3 , 4
View is_Power_of_four.php
<?php
function is_Power_of_four($n)
{
$x = $n;
while ($x % 4 == 0) {
$x /= 4;
}
if($x == 1)
You can’t perform that action at this time.