在新浪云平台php写入txt文件出错。
<!doctypehtml><htmllang="en"><head><metacharset="UTF-8"><title>text</title></...
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>text</title>
</head>
<body>
<?php
$Str=$_POST['u'].",".$_POST['password'];
$th = fopen('./out.txt','a');
fwrite($th,$Str);
fclose($th);
echo "成功";
?></body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>text</title>
</head>
<body>
<?php
$Str=$_POST['u'].",".$_POST['password'];
$th = fopen('./out.txt','a');
fwrite($th,$Str);
fclose($th);
echo "成功";
?></body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>text</title>
</head>
<body>
<?php
$Str=$_POST['u'].",".$_POST['password'];
$th = fopen('./out.txt','a');
fwrite($th,$Str);
fclose($th);
echo "成功";
?></body>
</html>
Warning: chmod(): Permission denied in /data1/www/htdocs/417/xyxymusic/1/test1.php on line 10Warning: fopen(./out.txt): failed to open stream: Permission denied in /data1/www/htdocs/417/xyxymusic/1/test1.php on line 12Warning: fwrite() expects parameter 1 to be resource, boolean given in /data1/www/htdocs/417/xyxymusic/1/test1.php on line 14Warning: fclose() expects parameter 1 to be resource, boolean given
in /data1/www/htdocs/417/xyxymusic/1/test1.php on line 15 展开
<html lang="en">
<head>
<meta charset="UTF-8">
<title>text</title>
</head>
<body>
<?php
$Str=$_POST['u'].",".$_POST['password'];
$th = fopen('./out.txt','a');
fwrite($th,$Str);
fclose($th);
echo "成功";
?></body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>text</title>
</head>
<body>
<?php
$Str=$_POST['u'].",".$_POST['password'];
$th = fopen('./out.txt','a');
fwrite($th,$Str);
fclose($th);
echo "成功";
?></body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>text</title>
</head>
<body>
<?php
$Str=$_POST['u'].",".$_POST['password'];
$th = fopen('./out.txt','a');
fwrite($th,$Str);
fclose($th);
echo "成功";
?></body>
</html>
Warning: chmod(): Permission denied in /data1/www/htdocs/417/xyxymusic/1/test1.php on line 10Warning: fopen(./out.txt): failed to open stream: Permission denied in /data1/www/htdocs/417/xyxymusic/1/test1.php on line 12Warning: fwrite() expects parameter 1 to be resource, boolean given in /data1/www/htdocs/417/xyxymusic/1/test1.php on line 14Warning: fclose() expects parameter 1 to be resource, boolean given
in /data1/www/htdocs/417/xyxymusic/1/test1.php on line 15 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询