PHP fatal error : Function name must be a string in

标签 php

fatal error :函数名称必须是/home/../public_html/updater.php 第 3 行中的字符串

 1: <?php
 2:    
 3: $user_id = $_GET("uid"); /* <-- Line 3 */
 4: $user_name = $_GET("uname");
 5: $setting = $_GET("setting");
 6:    
 7: $MyString = $user_name + '[' + $user_id + ']{' + $setting + '} \n';
 8:    
 9: $myfile = fopen('database.txt', 'a');
10: fwrite($myfile, $MyString . '\n');
11: fclose($myfile);
12:    
13: ?>

有什么问题?

最佳答案

将您的 $_GET() 代码更改为带有方括号的 $_GET[]

关于PHP fatal error : Function name must be a string in,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11706528/

相关文章:

php - MySQL id 按适当的系列

php - 连接两个表并遍历数据

php - 无法在 laravel db 语句中使用 mysql 函数 IN

javascript - 使用 javascript 监控 twilio 调用

php - 根据结束日期每月有效订阅?

php - mySQL 如何根据其他字段是否有值来创建表中的一个字段?

php - Postman 向 Laravel 发送 POST 请求

php - GAPI : Failed to authenticate user. 永久修复 PHP

php - 如何用PHP制作三角形汇总?

javascript - 使用继续单击事件继续在 jquery 中移动表