Skip to content

Instantly share code, notes, and snippets.

@rodrigoSyscop
Last active February 17, 2018 13:09
Show Gist options
  • Save rodrigoSyscop/a1239853c5bc7ee817f8f5dccc8e43fe to your computer and use it in GitHub Desktop.
Save rodrigoSyscop/a1239853c5bc7ee817f8f5dccc8e43fe to your computer and use it in GitHub Desktop.
framework/index.php
<?php
// framework/index.php
$input = isset($_GET['name']) ? $_GET['name'] : 'World';
header('Content-Type: text/html; charset=utf-8');
printf("Hello %s", htmlspecialchars($input, ENT_QUOTES, 'UTF-8'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment