Skip to content

Instantly share code, notes, and snippets.

View arif98741's full-sized avatar
🏠
Actively Working

Ariful Islam arif98741

🏠
Actively Working
View GitHub Profile
@arif98741
arif98741 / test.php
Created August 19, 2018 10:48
checkpurchase
<?php
include_once 'Session.php';
include_once 'helper/Helper.php';
class Login {
private $dbObj;
private $helpObj;
public function __construct() {
@arif98741
arif98741 / undefined.php
Created September 26, 2018 08:02
undefined index
<?php
if(isset($_POST['aname'])){
$aname = $_POST['aname'];
$lanme = $_POST['lname'];
$email = $_POST['email'];
$pass = $_POST['pass'];
}
?>
@arif98741
arif98741 / .htaccess
Created November 12, 2018 07:16
Htaccess file for Codeigniter
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
@arif98741
arif98741 / WhitespaceCOunt.c
Last active November 26, 2018 09:24
White Space Count C
#include <stdio.h>
int main ()
{
int d=0;
int e;
while ((e=getchar())!=EOF)
{
if(e==' ')
{
d++;
@arif98741
arif98741 / Removewhitespace.C
Created November 26, 2018 09:34
Remove White Space C
#include <stdio.h>
//ariful islam
//github.com/arif98741
int main()
{
char text[1000], blank[1000];
int c = 0, d = 0;
printf("Enter some text\n");
gets(text);
@arif98741
arif98741 / map.iframe
Created November 28, 2018 18:48
Map Code
<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d14593.462544066873!2d90.32406810291751!3d23.876649876016163!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3755c23e9098a073%3A0x9a707416b7fb3c64!2sDaffodil+International+University!5e0!3m2!1sen!2sbd!4v1543430866186" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
@arif98741
arif98741 / Getdata.php
Created December 2, 2018 09:52
Get data By $_GET
<a href="view.php?id=<?php echo $id;?>&&date=<?php date('Y-m-d')?>">View Page</a>
<!-- and get data in view.php file like below -->
<?php
if (isset($_GET['id']) && isset(_GET['date'])) {
$id = $_GET['id'];
$date = $_GET['date'];
}
?>
@arif98741
arif98741 / Login.php
Created January 11, 2019 15:50
Login Redirection
<?php
//check user is logged in or not
session_start();
if (isset($_SESSION['login'])) {
header("location: index.php");
}
$con = mysqli_connect('localhost', 'root', '', 'b');
if (isset($_POST['submit'])) {
$email = $_POST['email'];
@arif98741
arif98741 / functionReturn.php
Created February 12, 2019 13:28
Function Return
<?php
// http://github.com/arif98741
function FunctionReturn($str1,$str2)
{
$temp [][] = array();
for($i = 0; $i < strlen($str1)+1; $i++){
$temp[0][$i] = $i;
}
@arif98741
arif98741 / PHPOOPError.php
Last active February 13, 2019 17:30
PHP OOP Error Solve
<?php
/*
! I updated your class and its description. I am oop lover.
! @Class Distance
! @pvt variable
! @ always use description and intro . It will help you to edit code in future
*/
class Distance //class name should always be Capital. Its good practice
{
private $string1;