Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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[


Ïà¹ØÎĵµ£º

LinuxÏÂ64λµÄFirefox¡¢Operaä¯ÀÀÆ÷°²×°Flash²å¼þ

        LinuxÏ£¬64λµÄFirefox¡¢OperaµÈä¯ÀÀÆ÷ĬÈÏËÑË÷µ½µÄFlash²å¼þÊÇ32λµÄ£¬°²×°Ö®ºóÒ²²»ÄÜÕý³£¹¤×÷¡£
        ÐèÒªÊÖ¹¤°²×°Ò»Ï¡£
1.ÏÂÔØ²å¼þ
    ʹÓÃä¯ÀÀÆ÷ÏÂÔØ£º
        µ½Adobeµ ......

php ²»ÓÃCOM Éú³ÉexcelÎļþ


 
ÓÃphpÉú³ÉexcelÎļþ
<?
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=test.xls");
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
e ......

PHP µÇÈëϵͳ

¾­¹ý2¸öÐÇÆÚµÄ¼è¿à·Ü¶·£¬ÖÕÓÚСÓгɾ͡£ÏêϸµÄÁ÷³ÌÎÒ֮ǰҲÓÐ˵¹ý¡£ËùÒÔ²»ÔÙÌá³ö¡£Ö±½ÓÉÏ´úÂ룬ϣÍû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
1.LOGIN.php
<?php
include_once"conn2.php";
$uname=$_POST['uname'];//½ÓÊÕ´«¹ýÀ´µÄÓû§Ãû
$upwd=$_POST['upwd'];//½ÓÊÕ´«¹ýÀ´µÄÃÜÂë²¢md5()
$sql="SELECT * from pv_master WH ......

PHPÖÐgetenv()º¯Êý

getenv£¨£©   È¡µÃϵͳµÄ»·¾³±äÁ¿£¨Ô¤¶¨Òå±äÁ¿£©
$spager=getenv('SERVER_NAME');
“PHP_SELF”
µ±Ç°ÕýÔÚÖ´Ðнű¾µÄÎļþÃû£¬Óë document root Ïà¹Ø¡£¾ÙÀýÀ´Ëµ£¬ÔÚ URL µØÖ·Îª [url]http://example.com/test.php/foo.bar[/url] µÄ½Å±¾ÖÐʹÓà $_SERVER['PHP_SELF'] ½«»áµÃµ½ /test.php/foo.bar Õâ¸ö½á ......

PHPÖеÄMYSQL³£Óú¯Êý×ܽá

PHPÖеÄMYSQL³£Óú¯Êý×ܽá
1¡¢mysql_connect()-½¨Á¢Êý¾Ý¿âÁ¬½Ó
¸ñʽ£º
    resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]])
Àý£º
    $conn = @mysql_connect("localhost", "username", "password") or dir( ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ