분류 전체보기933 PHP 파일 다운로드 $speed = 8.5; // 8,5 kb/s 비율로 다운로드를 받는다. $file=$DOCUMENT_ROOT.$file; if(file_exists($file) && is_file($file)) { header("Cache-control: private"); header("Content-Type: audio/mp3"); header("Content-Length: ".filesize($file)); header("Content-Disposition: filename={$filename}"); flush(); $fp = fopen($file, "r"); while(!feof($fp)) { echo fread($fp, round($speed*1024)); flush(); sleep(1); } fclose (.. 2008. 10. 18. PHP POST 전송된 첨부파일 확장자 확인 하기 $s_ext=substr($s_name,strrpos($s_name,".")+1); 2008. 10. 18. PHP W3C P3P 규약설정 // W3C P3P 규약설정 @header ("P3P : CP=\"ALL CURa ADMa DEVa TAIa OUR BUS IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC OTC\""); IE6 부터... 바뀐 쿠키 설정에 따른 설정법 2008. 10. 18. PHP FTP로 파일 업로드 $ftp_server='kkk.net';//serverip $conn_id = @ftp_connect($ftp_server); // login with username and password $user="kkk"; $passwd="aaa"; $login_result = @ftp_login($conn_id, $user, $passwd); //directorylike /www.velibaba.com/images @ftp_chdir($conn_id, "public_html/report_files"); // upload the file $upload = @ftp_put($conn_id, $filename, $file, FTP_BINARY); // close the FTP stream @ftp_close($con.. 2008. 10. 18. 이전 1 ··· 196 197 198 199 200 201 202 ··· 234 다음