Ask, this line of code: file_put_contents ("url", $url. " # # # ", File_append), where did the submitted items be saved?
of the Code Line 33rd:: file_put_contents ("url", $url. " # # # ", file_append); What is APPEND saved to?
Is it appended to the source code file sign.php? I tested it, and after I submitted some content, there was no change in the sign.php file in my space. I do desktop software, not Web programming, PHP will not. Thank you!
Header ("content-type:text/html; Charset=utf-8 ");
$url =$_post["url"];
?>
<title>Automatic sign-in platform</title>
Automatic sign-in platform
if ($_get[' VI ']== ' update ') {
$urls =file_get_contents ("url");
$urls =explode ("# # #", $urls);
foreach ($urls as $u) {
echo $i. ",". file_get_contents ($u). "
";
}
echo "
Mission is over!
";
}else{
echo "
";
}
if ($_post[' VI ']== ' commit ') {
if (Strstr ($url, '/http ')}) {
File_put_contents ("url", $url. " # # # ", File_append);
echo "URL has been saved! The system will be automatically accessed 1 o'clock in the morning per person
";
}else{
echo "URL save failed! Please check
";
}
}
?>
Code by:i
Share to: more
------Solution--------------------
You do software, how can not know "url" is a string
File_put_contents--Writes a string to the file
int file_put_contents (string filename, string data [, int flags [, resource context]])
Function prototype didn't tell you the name of the first argument?