错误代码在问题中:
Fatal error: Function name must be a string in /home/User/public_html/website/index.php on line 7.
PHP 的前 10 行:
<?php
$filecreate = $fopen("y1o.html","w");
$text = "<html>
<script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js\"></script>
<script src=\"http://apis.google.com/js/client.js?onload=onJSClientLoad\"></script>
<title>website</title>
<body> <- Line 7?
<iframe id=\"myYTPlayer\" width=\"640\" height=\"390\" frameborder=\"0\" title=\"YouTube video player\" type=\"text/html\" src=\"http://www.youtube.com/embed/u1zgFlCw8Aw?enablejsapi=1&controls=0\"></iframe>
<p id=\"timer\">0:00</p>
</body>
<script>
...JS code
</script>
</html>
?>
最佳答案
应该是-
$filecreate = fopen("y1o.html","w");
关于javascript - fatal error : Function name must be a string in/home/User/public_html/website/index. php 第 7 行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27398902/