"video", "timestamp" => date('Y-m-d H:i:s', time()), "ip" => ip2long(getIp()), "_from" => get_from(), "content" => $path)); function returnVideo($path){ $url = getVideo($path); header("Location: $url"); }