在PHP的官方网站可以下载源码(www.php.net),进入之后选择DOWNLOAD里面的Complete Source Code就能下载,具体的页面地址是:http://www.php.net/get/php-5.2.9.tar.bz2/from/a/mirror
⑵ 怎样下载网站的php源码
PHP是属于服务器端解释执行的语言,Flashget等下载工具也只是下载其解释执行后生成的页面。
不能下载,除非该网站上提供的源码下载。
⑶ 怎么到图灵网站下载unix网络编程源码
打开网页http://www.turingbook.com/Homepage/Default.aspx
这辩岩是图灵的主页,然后在搜索里搜 unix网棚隐络编程
在页面中点链灶厅击 资源下载
...
只需要免费注册一下即可。
怕你不懂
我把第一卷和第二卷的下载网址给你贴在下面了
http://www.turingbook.com/BookResources/ListBookResource.aspx?BookID=575
http://www.turingbook.com/BookResources/ListBookResource.aspx?BookID=582
⑷ 网站下载 php网页下载
/*
*功能:php多种方式完美实现下载远程图片保存到本地
*参数:文件url,保存文件名称,使用的下载方式
*当保存文件名称为空时则使用远程文件原来的名称
*/
functiongetImage($url,$filename='',$type=0){
if($url==''){returnfalse;}
if($filename==''){
$ext=strrchr($url,'.');
if($ext!='.gif'&&$ext!='.jpg'){returnfalse;}
$filename=time().$ext;
}
//文件保存路径
if($type){
$ch=curl_init();
$timeout=5;
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
$img=curl_exec($ch);
curl_close($ch);
}else{
ob_start();
readfile($url);
$img=ob_get_contents();
ob_end_clean();
}
$size=strlen($img);
//文件大小
$fp2=@fopen($filename,'a');
fwrite($fp2,$img);
fclose($fp2);
return$filename;
}
⑸ 从文件夹下载文件的asp源代码
<a href=download.asp?filename=download.asp>guid.asp</a>
以下另存为:DOWNLOAD.ASP
<%@language=VBscript%>
<%
Const ForReading=1
Const TristateTrue=-1
Const FILE_TRANSFER_SIZE=16384
Response.Buffer = True
Function TransferFile(path, mimeType, filename)
Dim objFileSystem, objFile, objStream
Dim char
Dim sent
send=0
TransferFile = True
Set objFileSystem = Server.CreateObject("Scripting.FileSystemObject")
Set objFile = objFileSystem.GetFile(Path)
Set objStream = objFile.OpenAsTextStream(ForReading, TristateTrue)
Response.AddHeader "content-type", mimeType
response.AddHeader "Content-Disposition","attachment;filename=" & filename
Response.AddHeader "content-length", objFile.Size
Do While Not objStream.AtEndOfStream
char = objStream.Read(1)
Response.BinaryWrite(char)
sent = sent + 1
If (sent MOD FILE_TRANSFER_SIZE) = 0 Then
Response.Flush
If Not Response.IsClientConnected Then
TransferFile = False
Exit Do
End If
End If
Loop
Response.Flush
If Not Response.IsClientConnected Then TransferFile = False
objStream.Close
Set objStream = Nothing
Set objFileSystem = Nothing
End Function
Dim path, mimeType, sucess,downfilename
downfilename=request("filename")
path = Server.MapPath(downfilename)
mimeType="text/plain"
sucess = TransferFile(path, mimeType,downfilename)
Response.End
%>