forked from assembler-institute/php-manage-files-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
90 lines (80 loc) · 4.36 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
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Manage files with PHP - Workshop</title>
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="./assets/css/cheatsheet.css">
</head>
<body class="bg-light">
<header class="bd-header bg-dark py-3 d-flex align-items-stretch border-bottom border-dark">
<div class="container-fluid d-flex align-items-center">
<h1 class="d-flex align-items-center fs-4 text-white mb-0">
<img src="./assets/img/assembler_icon.jfif" width="40" height="40" class="me-3" alt="Bootstrap">
Manage files with PHP - Workshop
</h1>
</div>
</header>
<aside class="bd-aside sticky-xl-top text-muted align-self-start mb-3 mb-xl-5 px-2">
<h2 class="h6 pt-4 pb-3 mb-4 border-bottom">On this page</h2>
<nav class="small" id="toc">
<ul class="list-unstyled">
<li class="my-2">
<button class="btn d-inline-flex align-items-center" data-bs-toggle="collapse" aria-expanded="true" data-bs-target="#contents-collapse" aria-controls="contents-collapse">Contents</button>
<ul class="list-unstyled ps-3 collapse show" id="contents-collapse">
<li><a class="d-inline-flex align-items-center rounded" href="#introduction">Introduction</a></li>
<li><a class="d-inline-flex align-items-center rounded" href="#file-open-read">Open/Read</a></li>
<li><a class="d-inline-flex align-items-center rounded" href="#file-create-write">Create/Write</a></li>
<li><a class="d-inline-flex align-items-center rounded" href="#file-upload">Upload</a></li>
</ul>
</li>
</ul>
</nav>
</aside>
<div class="bd-cheatsheet container-fluid bg-body">
<section id="content">
<h2 class="sticky-xl-top fw-bold pt-3 pt-xl-5 pb-2 pb-xl-3">Contents</h2>
<article class="my-3" id="introduction">
<div class="bd-heading sticky-xl-top align-self-start mt-5 mb-3 mt-xl-0 mb-xl-2">
<h3 id="introduction">Introduction</h3>
<a class="d-flex align-items-center" href="https://www.php.net/manual/es/function.readfile.php" target="_blank">Documentation</a>
</div>
<div>
<?php require_once("./workshop/1-introduction.php"); ?>
</div>
</article>
<article class="my-3" id="file-open-read">
<div class="bd-heading sticky-xl-top align-self-start mt-5 mb-3 mt-xl-0 mb-xl-2">
<h3 id="open-read">Open/Read</h3>
<a class="d-flex align-items-center" href="https://www.w3schools.com/php/php_file_open.asp" target="_blank">Documentation</a>
</div>
<div>
<?php require_once("./workshop/2-file-open-read.php"); ?>
</div>
</article>
<article class="my-3" id="file-create-write">
<div class="bd-heading sticky-xl-top align-self-start mt-5 mb-3 mt-xl-0 mb-xl-2">
<h3 id="createwrite">Create/Write</h3>
<a class="d-flex align-items-center" href="https://www.php.net/manual/es/function.fwrite" target="_blank">Documentation</a>
</div>
<div>
<?php require_once("./workshop/3-file-create-write.php"); ?>
</div>
</article>
<article class="my-3" id="file-upload">
<div class="bd-heading sticky-xl-top align-self-start mt-5 mb-3 mt-xl-0 mb-xl-2">
<h3 id="upload">Upload</h3>
<a class="d-flex align-items-center" href="/docs/5.0/content/figures/" target="_blank">Documentation</a>
</div>
<div>
<?php require_once("./workshop/4-file-upload.php"); ?>
</div>
</article>
</section>
</div>
<script src="./node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="./assets/js/cheatsheet.js"></script>
</body>
</html>