receivefile.php

来自「ajax框架原吗,dojo目前很流行的,希望大家多多学习啊」· PHP 代码 · 共 30 行

PHP
30
字号
<?php// THIS IS AN EXAMPLE// you will obviously need to do more server side work than I am doing here to check and move your upload.// API is up for discussion, jump on http://dojotoolkit.org/forums// JSON.php is available in dojo svn checkoutrequire("../../../dojo/tests/resources/JSON.php");$json = new Services_JSON();// fake delaysleep(3);$name = empty($_REQUEST['name'])? "default" : $_REQUEST['name'];if(is_array($_FILES)){	$ar = array(		'status' => "success",		'details' => $_FILES[$name]	);}else{	$ar = array(		'status' => "failed",		'details' => ""	);}// yeah, seems you have to wrap iframeIO stuff in textareas?$foo = $json->encode($ar);?><textarea><?php print $foo; ?></textarea>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?