我的PHP代码如下:
<?php
$htmlFile = file_get_contents(http://archi-graphi.com/arcancianev/sejour-29-eau_turquoise_en_corse.html');
$pdfHtml = ('pdfFile.html');
copy($htmlFile, $pdfHtml);
// Now you can choose to run a check to see if the new copy exists,
// or you have the option to do nothing and assume it is made
if (file_exists($pdfHtml)) {
echo "Success : has been made";
} else {
echo "Failure: does not exist";
}
?>
但是我收到了错误消息Warning: copy( <!DOCTYPE html> <html lang="fr"> <head> <meta charset="utf-8" /> <title>Vacances Arcanciane</title> ...
,我不知道是什么错误。请任何人帮助我,谢谢。