flash + php ÎļþÉÏ´«
import flash.net.FileFilter;
import flash.net.FileReferenceList;
import fl.controls.Button;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.events.HTTPStatusEvent;
import flash.display.Loader;
import flash.net.URLRequest;
var choose_button:Button=new Button();
var upload_button:Button=new Button();
var loader:Loader=new Loader();
var reference_list:FileReferenceList=new FileReferenceList();
var url:URLRequest=new URLRequest("http://localhost/flashupload.php");
choose_button.label="Ñ¡ÔñÎļþ";
upload_button.label="ÉÏ´«Îļþ";
upload_button.move(100,50);
addChild(choose_button);
choose_button.move(300,100);
addChild(upload_button);
addChild(loader);
choose_button.addEventListener(MouseEvent.CLICK,choose_file);
upload_button.addEventListener(MouseEvent.CLICK,upload_start);
reference_list.addEventListener(Event.SELECT, selectHandle);
reference_list.addEventListener(Event.CANCEL, cancelHandle);
//reference_list.addEventListener(ProgressEvent.PROGRESS, progressHandler);
//reference_list.addEventListener(Event.COMPLETE, completeHandle);
//reference_list.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandle);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,load_complete);
function progressHandler(evt:ProgressEvent):void{
trace("ProgressEvent");
trace(evt.target.name+"="+evt.bytesLoaded)
}
function load_complete(evt:Event):void{
trace("load_complete");
}
function selectHandle(evt:Event):void{
trace("select file successfully");
trace("ÄãÑ¡ÔñÁË"+evt.target.fileList.length+"Îļþ")
for(var i:int=0;i<evt.target.fileList.length;i++){
trace(evt.target.fileList[i].name);
evt.target.fileList[i].addEventListener(ProgressEvent.PROGRESS, progressHandler);
evt.target.fileList[i].addEventListener(Event.COMPLETE, completeHandle);
evt.target.fileList[i].load();
}
//trace("type"+evt.target.fileList[
Ïà¹ØÎĵµ£º
¾¹ý2¸öÐÇÆÚµÄ¼è¿à·Ü¶·£¬ÖÕÓÚСÓгɾ͡£ÏêϸµÄÁ÷³ÌÎÒ֮ǰҲÓÐ˵¹ý¡£ËùÒÔ²»ÔÙÌá³ö¡£Ö±½ÓÉÏ´úÂ룬ϣÍû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
1.LOGIN.php
<?php
include_once"conn2.php";
$uname=$_POST['uname'];//½ÓÊÕ´«¹ýÀ´µÄÓû§Ãû
$upwd=$_POST['upwd'];//½ÓÊÕ´«¹ýÀ´µÄÃÜÂë²¢md5()
$sql="SELECT * from pv_master WH ......
<?php
echo "<br>";
?>
<?php
function GetIP()
{
if(!empty($_SERVER["HTTP_CLIENT_IP"]))
$cip = $_SERVER["HTTP_CLIENT_IP"];
else if(!empty($_SERVER["HTTP_X_FORWARDED_FOR"]))
$cip = $_SERVER["HTTP_X_FORWARDED_FOR"];
else if(!empty($_SERVER ......
¼òÊöÌâ(50·Ö)()
1¡¢ÓÃPHP´òÓ¡³öǰһÌìµÄʱ¼ä¸ñʽÊÇ2006-5-10 22:21:21(2·Ö)
echo date('Y-m-d H:i:s', strtotime('-1 day'));
»òÕß
$yesterday = time() - (24 * 60 * 60);
echo 'today:'.date('Y-m-d H:i:s')."\n";
echo 'yesterday:'. date('Y-m-d H:i:s', $yesterday)."\n";
2¡¢echo(),print(),print_r()µÄÇø±ð( ......
¸Õ¿ªÊ¼ÓÃCS4µÄʱºò¾Í×¢Òâµ½ÁËÕâ¸öÕâ¸ö¹¦Äܲ»¹ý¶¼Ã»Êµ¼ù¹ý,Õ⼸Ììʵ¼ùÁËһϷ¢ÏÖÊǸöºÜºÃºÜºÍгµÄµÄ¼¼ÄÜ .ÓÐÁËËüÎÒÃǾͿÉÒÔºÜɵ¹ÏµÄ±à¼Ò»Ð©ÎÒÃdzÌÐòÔ±ºÜÍ·Ì۵ĴúÂë,±ÈÈçflash¶¯»µÄÂ˾µÐ§¹û,Èç¹ûûÓÐÕâ¸ö¹¦ÄܹÀ¼Æ°ïÖúÎĵµÀïÃæµÄflash.filters°üµÃ¿´°ëÌì…ÓиöÕâ¸ö¹¦ÄÜÎÒÃǾͲ»ÓóîÁË.±ÈÈçÏÖÔÚÎÒÏ붯̬Ìí¼ÓÌí¼ÓÒ»¸öÔª¼ ......
All metal heart shaped necklace containing an 8 GB USB flash drive.
These days a
USB flash drive
is as necessary as your house keys. Whether you are
taking large work files back and forth from the office or are sharing pictures
and music with friends, nothing beats the convenience of a USB ......