묻고답하기

안녕하세요.. php왕초보 입니다. 열심히 공부중에 홈페이지를 작성중인데요..
교재에 있는 자료실을 힘들게 구현했는데 용량이 좀 큰화일은 아래와 같이 에러가 떠요//
그리고 용량에 관계없이 "실행" 클릭 하면 실행이 안돼요."저장" 은 아래와 깉이 대용량은 에러가 발생하고요
에러중 Allowed memory size of 33554432 bytes  를 어디서 바꿀수 잇는거죠??좀 갈켜주세요....
실행이 안돼는 이유도요... 이책 저책 봐도 넘 힘들어요...

[에러]
fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 75933774 bytes) in C:\homehjh\dataroom\download.php on line 38

[소스:download.php]
<?
 /****************************************************************/
 /* Name : DataRoom            */
 /* File : download.php           */
 /* Use : Download횟수를 DB에 기록하는 페이지      */
 /****************************************************************/

 // 테이블 이름을 파라미터로부터 얻어온다
 $pro_table = (isset( $HTTP_GET_VARS['table'] ) ? $HTTP_GET_VARS['table'] : "dataroom_list" );
 $pro_id  = ( isset( $HTTP_GET_VARS[id] )  ? $HTTP_GET_VARS[id]  : 0);
 $pro_file = ( isset( $HTTP_GET_VARS[id] )  ? $HTTP_GET_VARS[id]  : 0);

 // 필요한 설정이 담겨있는 config.php를 include 시킨다.
 include "config.php";

 // Mysql Server에 접속한다.
 $conn = mysql_pconnect( $set_host, $set_user, $set_password );
 mysql_select_db( $set_dbname );

 // 파일에 대한 정보를 가져온다.
 $query = " select filename, filesize from $pro_table where id=$pro_id";
 $res = mysql_query ( $query );
 $info = mysql_fetch_array( $res );

 // 조회수를 기록한다.
 $update_query = "update $pro_table set down_cnt=down_cnt+1 where id=$pro_id";
 mysql_query ( $update_query );

 // 파일 이름
 $filename = "files/".$pro_table."/".$info[filename];

 // 파일내용을 넘겨준다.
 if ( file_exists( $filename ) ) {
  $fp = fopen( "files/".$pro_table."/".$info[filename], "r" );
  $file = fread( $fp, $info[filesize] );
 
  // 브라우저 골라서 헤더를 따로 따로 전송 해 준다.(5.5 일때는 다르게 해줘야 함)
  if ( strstr( $HTTP_USER_AGENT, "MSIE 5.5" ) ) {
   header( "Content-Type: doesn/matter\r\n" );
   header( "Content-Disposition: filename=".$info[filename]."\r\n\r\n" );
   header( "Content-Transfer-Encoding: binary\r\n" );
  }
  else {
   header( "Content-type: application/octet-stream\r\n" );
   header( "Content-Disposition: attachment; filename=".$info[filename]."\r\n\r\n" );
   header( "Content-Transfer-Encoding: binary\r\n" );
  }
  print $file;
 
  fclose($fp);
 }
 else
  echo "<html><script>history.back(-1);</script></html>";

?>

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
영혼 그림 고정 질문  
김윤희 자바 스크립트에서요? ... 이걸 어찌해야.. [2] 2007.08.10
신은수 nzeo처럼 노프레임으로 메뉴에 ?channel= 이런식으로 변수값넣어서 링크걸려고 하거든요?? [2] 2007.08.10
박재환 글자간격이 달라졌어요... [3] 2007.08.10
CityBoys-Life 스크립트 소스 만들기가 어렵네요..?  
이동철 제로보드 사용하다보니..  
주†은 main.html이라고 저장한 파일이 있습니다. [4] 2007.08.10
동화 포토샵.... 다시 깔았는데 실행되다가 닫아집니다.  
임현 어떻게 해야하나요? [2] 2007.08.10
인자기 이 작업이 가능한...  
d꿈꾸는아이b 질문입니다 ㅇㅂㅇ/  
김윤희 원 그리기는 어떻게 하죠? [2] 2007.08.10
박종일 [스위시]로 만든 메뉴에서..  
벼리천사 저기요 . .ㅠ 나모에서요 . . ㅠ [2] 2007.08.10
cannibal 드림위버에서여.. 롤오버랑 레이어좌표에 관한 질문 하나 하겠습니다..  
김윤희 버튼의 비활성화 와 드림위버에서 한글이 깨집니다. [5] 2007.08.10
학살마 색 감각이 좋아 질려면.. [2] 2007.08.10
SaRa''s 포토샵에서 도장툴 사용하면 에러메시지 나와요!  
cannibal 드림위버에서여.. 롤오버랑 레이어좌표에 관한 질문 하나 하겠습니다..  
cannibal 드림위버에서여.. 롤오버랑 레이어좌표에 관한 질문 하나 하겠습니다.. [5] 2007.08.10