PHP 8.5.0 Alpha 1 available for testing

Voting

: five minus zero?
(Example: nine)

The Note You're Voting On

steve a h
17 years ago
Don't forget; you can use copy on remote files, rather than doing messy fopen stuff. e.g.

<?php
if(!@copy('http://someserver.com/somefile.zip','./somefile.zip'))
{
$errors= error_get_last();
echo
"COPY ERROR: ".$errors['type'];
echo
"<br />\n".$errors['message'];
} else {
echo
"File copied from remote!";
}
?>

<< Back to user notes page

To Top