-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpractise.php
54 lines (36 loc) · 883 Bytes
/
practise.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
<?php
$path ="file/home/index.php";
print_r(pathinfo($path));
// $path ="file/home/index.php";
// echo basename($path,".php") ."<br/>"
// $path ="file/home/index.php";
// echo $file= dirname($path,1) ."<br/>";
// copy('message.txt','filecopy.php');
// print_r(file('alldata.txt'));
// $file = fopen('alldata.txt','a');
// fwrite($file,'jaman'.PHP_EOL);
// file('alldata.txt');
// print_r(file('alldata.txt'));
//echo file_get_contents('alldata.txt');
//Clear cache and check filesize again
// clearstatcache();
// echo filetype("alldata.txt");
// clearstatcache();
// $file = "alldata.txt";
// $target = "text.txt";
// $linkname = "mylink";
// echo link('update.txt',"love.pdf");
// echo unlink($file);
// if(is_dir($file)){
// echo "yes";
// }
// else{
// echo "not";
// }
// if(is_file($file)){
// echo "yes";
// }
// else{
// echo "not";
// }
?>