PHP Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start PHP Course
Register
request-and-response-php.php
0
Author: Malick Diagne
Dark
Public
Save
PHP
php
1
2
3
4
5
6
7
8
<?php
$uri
=
$_SERVER
[
'REQUEST_URI'
];
$foo
=
$_GET
[
'foo'
];
header
(
'Content-Type: text/html'
);
echo
'The URI requested is:'
.
$uri
;
echo
'The value of the "foo" parameter is : '
.
$foo
;
?>
Enter to Rename, Shift+Enter to Preview
OUTPUT