F
Flemmjam
Guest
HeyHey
mal eine kleine frage
wo ist der fehler hier
mal eine kleine frage
wo ist der fehler hier
Code:
[LIST=1]
[*][COLOR=#000000][COLOR=#0000BB][/COLOR][COLOR=#007700]<?[/COLOR][COLOR=#0000BB]php [/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] [/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] $stFile [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'./Datei.zip'[/COLOR][COLOR=#007700]; [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] $stFileName [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'Datei.zip'[/COLOR][COLOR=#007700]; [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] [/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] [/COLOR][COLOR=#FF8000]// Das Traffic Limit [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] $iTrafficLimit [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]1024[/COLOR][COLOR=#007700]*[/COLOR][COLOR=#0000BB]1024[/COLOR][COLOR=#007700]*[/COLOR][COLOR=#0000BB]1024[/COLOR][COLOR=#007700]*[/COLOR][COLOR=#0000BB]1024[/COLOR][COLOR=#007700]*[/COLOR][COLOR=#0000BB]4[/COLOR][COLOR=#007700]; [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] [/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] $iSize [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]filesize[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$stFile[/COLOR][COLOR=#007700]); [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] $iTraffic [/COLOR][COLOR=#007700]= @[/COLOR][COLOR=#0000BB]implode[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]''[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000BB]file[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]'traffic.txt'[/COLOR][COLOR=#007700])); [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] [/COLOR][COLOR=#007700]if(![/COLOR][COLOR=#0000BB]$iTraffic[/COLOR][COLOR=#007700]){ [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] $iTraffic [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]0[/COLOR][COLOR=#007700]; [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] [/COLOR][COLOR=#007700]} [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] [/COLOR][COLOR=#007700]if([/COLOR][COLOR=#0000BB]$iTraffic[/COLOR][COLOR=#007700]+[/COLOR][COLOR=#0000BB]$iSize [/COLOR][COLOR=#007700]<= [/COLOR][COLOR=#0000BB]$iTrafficLimit[/COLOR][COLOR=#007700]){ [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"Content-type:application/octet-stream"[/COLOR][COLOR=#007700]); [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"Content-disposition: attachment; [/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] filename[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#DD0000]".$stFileName); [/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"Content-Length: "[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$iSize[/COLOR][COLOR=#007700]); [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"Pragma: no-cache"[/COLOR][COLOR=#007700]); [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"Expires: 0"[/COLOR][COLOR=#007700]); [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] readfile[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$stFile[/COLOR][COLOR=#007700]); [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] [/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] $fp [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]fopen[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]'traffic.txt'[/COLOR][COLOR=#007700],[/COLOR][COLOR=#DD0000]'w'[/COLOR][COLOR=#007700]); [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] fputs[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$fp[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000BB]$iTraffic[/COLOR][COLOR=#007700]+[/COLOR][COLOR=#0000BB]$iSize[/COLOR][COLOR=#007700]); [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] fclose[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$fp[/COLOR][COLOR=#007700]); [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] [/COLOR][COLOR=#007700]} else { [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] [/COLOR][COLOR=#007700]echo '[/COLOR][COLOR=#0000BB]TrafficLimit erreicht! [/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] Datei kann nicht gesendet werden[/COLOR][COLOR=#007700]'[/COLOR][COLOR=#0000BB]; [/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] [/COLOR][COLOR=#007700]} [/COLOR][COLOR=#0000BB][/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] [/COLOR] [/COLOR]
[*][COLOR=#000000] [COLOR=#0000BB] ?>[/COLOR][/COLOR]
[/LIST]