Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ urlFragment: php-docs-hello-world

# PHP Hello World

This sample demonstrates a tiny Hello World PHP app for [App Service](https://docs.microsoft.com/azure/app-service).
This sample demonstrates a tiny Hello World PHP app for [App Service](https://learn.microsoft.com/azure/app-service).

## Contributing

Expand Down
10 changes: 10 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "azure-samples/php-docs-hello-world",
"description": "Hello World PHP sample for Azure App Service",
"type": "project",
"require": {
"php": "^8.1"
},
"license": "MIT",
"minimum-stability": "stable"
}
7 changes: 6 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<?php
declare(strict_types=1);

echo "Hello World!";
header('Content-Type: text/plain; charset=UTF-8');
header('X-Content-Type-Options: nosniff');
header('X-Frame-Options: DENY');

echo "Hello World!";