true,
CURLOPT_URL => $url ) );
curl_exec( $curl );
$header_response = curl_getinfo( $curl, CURLINFO_HTTP_CODE );
curl_close( $curl );
if (strpos($header_response[0], "404") !== false) {
$msg = "file upload failed";
} else {
$msg = "file successfully uploaded";
}
}
echo "" . $msg . "
";
// if there are any errors, display them
if ($error != '') {
echo '' . $error . '
';
}
?>