Use PHP + java to implement an automatic rolling window for news

Source: Internet
Author: User
Show. php source code: & lt ;? If ($ action & quot; cp & quot;) {echo & quot; & lt; divaligncenter & gt; & lt; p & gt; scroll menu material input end & lt; p & gt; & lt; forpolichodpostactionshow. php? Actionedit & gt; & show. php source code:
If ($ action = "cp "){
Echo"


 

Scroll menu data input


 

"; Exit ;}
If ($ action = "edit "){
$ Wname = "data.txt"; # data storage file, attribute 666
$ Writeurl = "$ t1 <\/a>

$ T2 <\/a>

$ T3 <\/a>

$ T4 <\/a>

$ T5 <\/a>

";
$ Fp = fopen ($ wname, "w ");
$ Ww = fputs ($ fp, $ writeurl );
If ($ ww) {echo file written successfully;} else {echo write failed ;}
Exit ;}
$ Wname = "php-bin/data.txt"; # because it is called on the page, you must enter the relative or absolute path of the page and program!
$ Fa = fopen ($ wname, "r + ");
$ Wwww = fread ($ fa, filesize ($ wname ));
Echo"

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.