-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·82 lines (39 loc) · 1.22 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
session_start();
// $file = fopen('demo.text','w');
// $text = "Abedin Rasel";
// fwrite($file,$text);
// $name = fopen('demo.text','r');
// // echo fread($name,filesize('demo.text'));
// if( fread($name,filesize('demo.text')) == "Abedin Rasel"){
// echo "Has User";
// }
// function move_uploaded_file($tem_name,$target){
// }
// fclose($file);
// $_FILES = ['photo'=>['tem_name'=>'/tmp/php6XxSIn','name'=>'skjdnaskndkaslnd.png']];
// <img src="" alt="">
if( isset($_POST['btn'])){
$target_file = 'uploads/'.basename($_FILES["photo"]["name"]);
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
var_dump(pathinfo('/www/htdocs/inc/lib.inc.php',PATHINFO_EXTENSION));
if( move_uploaded_file( $_FILES["photo"]["tmp_name"], $target_file ) ){
echo " E beda tor photo upload hoyice ";
} else{
echo "Sorry hoy nai";
}
}
function printFormatted($stirng,$function)
{
return $function($stirng);
}
$stirng = "slkfjlskfjlksfl'askwfmlkasf";
function sss($s){
return $s .'--------------------------- i -------------';
}
$jsonobj = '{"Peter":35,"Ben":37,"Joe":43}';
var_dump(json_decode($jsonobj));
// function printFormatted($stirng,$symable){
// return
// }
?>