在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
%>