This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include_once 'Session.php'; | |
include_once 'helper/Helper.php'; | |
class Login { | |
private $dbObj; | |
private $helpObj; | |
public function __construct() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_POST['aname'])){ | |
$aname = $_POST['aname']; | |
$lanme = $_POST['lname']; | |
$email = $_POST['email']; | |
$pass = $_POST['pass']; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ index.php/$1 [L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main () | |
{ | |
int d=0; | |
int e; | |
while ((e=getchar())!=EOF) | |
{ | |
if(e==' ') | |
{ | |
d++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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']; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// http://github.com/arif98741 | |
function FunctionReturn($str1,$str2) | |
{ | |
$temp [][] = array(); | |
for($i = 0; $i < strlen($str1)+1; $i++){ | |
$temp[0][$i] = $i; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |