Excuse me, this line of code: file_put_contents ("url" $url. " File_append); Where did the submission go?

Source: Internet
Author: User
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?
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.