A PHP Problem. Help me fix it! (35)

23 Name: h-cube!h3/bEAAN16 04/12/14(Tue)17:33 ID:aJ6f36DP [Del]

<?php
$dir = "/some/dir";
$url = "http://some/url";
$x=explode("\n",cd $dir; ls *.jpg *.png *.gif);
header("Status: 302 Found\n");
header("Location: $url/" . $x[array_rand($x)]);
?>

Not how I would normally do it, but hey, no loops.

This thread has been closed. You cannot post in this thread any longer.