应该是银行吧
<?
class uploadhttp{ var $file_type;
var $url;
var $file_name=null;
var $filenameold=null;// init
function init($url){
$this->url=$url;
$this->file_type=strtolower(strrchr($url,"."));
$this->filenameold=strtolower(strrchr($url,"/"));
if ( strlen( $this->filenameold )>0 ){
$this->filenameold=substr( $this->filenameold ,1);
}
}// savefile
function sendfile($filename){
$file = fopen ($this->url, "r");
if (!$file) {
echo "<p>Unable to open remote file.\n";
exit;
}
$handle = fopen ( $filename , "w");
while (!feof ($file)) {
$line = fgets ($file, 1024);
fputs($handle,$line);
}
fclose($file);
fclose($handle);
$this->file_name= $filename ;
}
}
?>
<?
class uploadhttp{ var $file_type;
var $url;
var $file_name=null;
var $filenameold=null;// init
function init($url){
$this->url=$url;
$this->file_type=strtolower(strrchr($url,"."));
$this->filenameold=strtolower(strrchr($url,"/"));
if ( strlen( $this->filenameold )>0 ){
$this->filenameold=substr( $this->filenameold ,1);
}
}// savefile
function sendfile($filename){
$file = fopen ($this->url, "r");
if (!$file) {
echo "<p>Unable to open remote file.\n";
exit;
}
$handle = fopen ( $filename , "w");
while (!feof ($file)) {
$line = fgets ($file, 1024);
fputs($handle,$line);
}
fclose($file);
fclose($handle);
$this->file_name= $filename ;
}
}
?>
解决方案 »
- 怎么将地址后面的#dd发给php?
- 图片不存在,id存在吗
- 我是菜鸟,提问一个很白痴的问题,如何整合php的程序?
- 简单的css问题
- php 处理复选框问题
- php怎样计算出某月份的天数,急,在线等
- 在linux9+php4+apache+mysql下GD可以读取图片文件,但不能写入,请问原因。
- 请教一个php的数组问题
- $result=@mysql_query($query,$dbconnect)
- sqladm转换数据的问题?
- 谁能帮我把这段ASP代码转成PHP,谢谢了。
- 如何xmlhttp向php页面发送数据,比如http://ns.altratek.com/integration/向这个页面发送数据。急
www.google.com