javascript - fatal error : Function name must be a string in/home/User/public_html/website/index. php 第 7 行

标签 javascript php html

错误代码在问题中:

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/

相关文章:

javascript - 使用 XHR 的多部分表单数据 - 无效请求

php - 解析多部分 SOAP 附件的正确方法?

php - 我怎样才能 "close"网站只在星期天

php - 查询生成器 : parameters in a loop

javascript - Node.js 提取标签之间的 html 元素

javascript - 使用 jquery 的音频播放器

javascript - 在行中放置可变长度的 div

javascript - 如何检测IE浏览器对HTML5和CSS3的支持?

javascript - 基本 JavaScript : using onclick to print a table

php - 为按钮提供一个类并使用 javascript 来获取单击事件不起作用