File: server.php

package info (click to toggle)
php-analog 1.0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 424 kB
  • ctags: 232
  • sloc: php: 875; makefile: 12; sh: 5
file content (13 lines) | stat: -rw-r--r-- 238 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

/**
 * This works with test_post.php to verify sent data.
 * Run me via:
 *
 *     php -S localhost:8080 server.php
 *
 * Note: Requires PHP 5.4+
 */
file_put_contents ('php://stdout', 'Logged: ' . join (' - ', $_POST) . "\n");

?>