Implement Automatic News scrolling window with Php+java

Source: Internet
Author: User
Keywords Implement Automatic News scrolling window with Php+java
Tags php source code password protection
show.php Source code:
if ($action = = "CP") {
Echo
 

Scrolling menu Data input


 
"; exit;}
if ($action = = "Edit") {
$wname = "Data.txt"; #数据保存文件, Property 666
$writeurl = "$t 1<\/a>

$t 2<\/a>

$t 3<\/a>

$t 4<\/a>

$t 5<\/a>

";
$FP =fopen ($wname, "w");
$ww =fputs ($fp, $writeurl);
if ($WW) {echo file was successfully written;} Else{echo write failed;}
Exit;}
$wname = "Php-bin/data.txt"; #由于是在页面调用, you must fill in the page and program relative path or absolute path!
$fa =fopen ($wname, "r+");
$wwww =fread ($FA, FileSize ($wname));
echo "
";
?>

To use the first to create a blank file named Data.txt placed in the same level of show.php directory, and then use the include call in the page!
SHOW.PHP?ACTION=CP and can be set up, of course, because there is no password protection, you can change the CP to other text!
  • 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.