当我上传文件后,我正在寻找重定向回我的主页,我目前有一个echo语句表明文件已经上传(完成后)。任何帮助将不胜感激!上传文件后的PHP重定向页面
<?php
$tags[]= $_POST['Sport'];
$tags[]= $_POST['bcTags1'];
$tags[]= $_POST['bcTags2'];
$tags[]= $_POST['bcTags3'];
$tags[]= $_POST['hiddenTag'];
$metaData = array(
'name' => $_POST['bcVideoName'],
'shortDescription' => $_POST['bcShortDescription'],
'tags' => $tags
);
# Rename the video file
$file = $_FILES['theVideoFile'];
rename($file['tmp_name'], '/tmp/' . $file['name']);
$file_location = '/tmp/' . $file['name'];
# Send video to Brightcove
$id = $bc->createMedia('video', $file_location, $metaData);
echo $id.'Uploaded Successfully!';
?>
更好地加入'模具()'。 – Alvaro 2013-03-07 15:58:39