php crash

raw

1-startserver.sh

1
2
3
4
#!/bin/sh
set -x
php -S localhost:8002 -t `pwd`
 
raw

2-fetch.sh

1
2
3
4
5
6
7
#!/bin/sh
set -x
curl localhost:8002/randomizer.php
curl localhost:8002/links.html
curl -L localhost:8002/redirector.php
curl localhost:8002/links.html
 
raw

links.html

1
 
raw

randomizer.php

1
2
<?php echo rand() ?>
 
raw

redirector.php

1
2
<?php header('location: links.html'); ?>
 
Christian Weiske Christian Weiske
owner

History