new branch windows

This commit is contained in:
Hash Borgir
2021-03-22 05:12:11 -06:00
parent b3d62294e6
commit 49003c236a
29 changed files with 807 additions and 0 deletions

34
session.php Normal file
View File

@@ -0,0 +1,34 @@
<?php
error_reporting(-1);
session_start();
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 1;
} else {
$_SESSION['count']++;
}
?>
<style type="text/css">@import url("style.css");</style>
<a href="index.php">Go back to index</a>
| <a href="<?php echo $_SERVER["REQUEST_URI"];?>">Refresh</a>
<title>Session</title>
<h1>Session</h1>
<p>Temp directory: <?php echo sys_get_temp_dir(); ?></p>
<h2>The code</h2>
<pre>
session_start();
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 1;
} else {
$_SESSION['count']++;
}
</pre>
<h2>$_SESSION</h2>
Refresh the page to see if counter increases.
<pre>
<?php print_r($_SESSION); ?>
</pre>