-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
35 lines (31 loc) · 984 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PHP Debugging Tool Demo</title>
</head>
<body>
<h1>Welcome to the PHP Debugging Tool Demo</h1>
<p>This is a demo page to showcase the PHP Debugging Tool functionality.</p>
<form method="post" action="">
<input type="text" name="demo_input" placeholder="Enter something...">
<input type="submit" name="submit" value="Submit">
</form>
<p>Some content on the page...</p>
<p>More content...</p>
<?php
// Include the debug script
include 'path/to/debug.php';
// Example variables
$_SESSION['username'] = 'demo_user';
$_GET['page'] = 'home';
$_POST['submit'] = 'Submit';
$_COOKIE['user'] = 'cookie_user';
$_SERVER['REQUEST_TIME'] = time();
// Add a custom debug message
debug_message('This is a custom debug message for demonstration purposes.');
// Display debug information
showDebugInfo();
?>
</body>
</html>