Php configuration file generation

Source: Internet
Author: User
? Php collects information $ str_tmp? Phprn; to get the php start character. $ Str_tmp will accumulate $ str_end ?; Php Terminator $ str_tmp. $. name; rnt; add username $ str_tmp. $. passblackhorse; rn; add password $ str_tmp. $. age28; rn; and

? Php // collect information $ str_tmp = "? Php/r/n "; // get the start character of php. $ Str_tmp will accumulate $ str_end = "? "; // Php Terminator $ str_tmp. = "$ ". "name =/" /";/r/n/t"; // Add the username $ str_tmp. = "$ ". "pass =/" blackhorse/";/r/n"; // Add the password $ str_tmp. = "$ ". "age =/" 28/";/r/n"; // Add

// Collect information

$ Str_tmp ="

$ Str_end = "?> "; // Php Terminator

$ Str_tmp. = "$". "name =/" /";/r/n/t"; // Add User name

$ Str_tmp. = "$". "pass =/" blackhorse/";/r/n"; // Add the password

$ Str_tmp. = "$". "age =/" 28/";/r/n"; // Add to age

$ Str_tmp. = "$". "income =/" 4500/";/r/n ";

$ Str_tmp. = $ str_end; // Add the Terminator.

// Save the file

$ Sf = "blhorse. php"; // file name

$ Fp = fopen ($ sf, "w"); // open a file in write mode

Fwrite ($ fp, $ str_tmp); // store the content

Fclose ($ fp); // close the file

?>

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.