PHP 문서 내용 보기
지각생 연습장
이동:
둘러보기
,
찾기
* [[PHP 강좌]] : 좋은 강좌, 글, 커리큘럼 등 Hello! ecddddk interesting ecddddk site! I'm really like it! Very, very ecddddk good! Very nice site! Hello! eecekbf interesting eecekbf site! I'm really like it! Very, very eecekbf good! Very nice site! == PHP로 HTTP인증하기 == * http://www.linuxinfor.com/korean/PHP-Manual/features.http-auth.html * http://tea815.com.ne.kr/php/features.http-auth.html == 짤막 팁/소스 == * 다른 페이지로 바로 이동 (인덱스 파일 등에서) <source lang="php"> <? header("Location: 옮길위치"); ?> </source> * 제로보드 : 썸네일 이미지 표시하기 - 큰 이미지가 업로드되면, 자동으로 일정 폭 기준으로 크기를 변경한 썸네일을 생성하고, 표시한다. 썸네일은 업로드한 이미지를 최초로 열어볼 때 만들어진다. <source lang="php"> <?php list($image1_width, $image1_height) = getimagesize($data[file_name1]); //$image1_width = imagesx($data[file_name1]); if($image1_width && $image1_width > 580) $image1_width_new = 580; else $image1_width_new = $image1_width; //echo $data[file_name1]; echo $image1_width; $image1_height_new = round($image1_height * 580 / $image1_width); $thumb1 = thumb($id, $data[s_file_name1], 580, $image1_height_new); // x:y = newx: newy => newy = y*newx / x $upload_image1 = str_replace("style=\"", "style=\"width: ${image1_width_new}px; ", $upload_image1); $upload_image1 = preg_replace("/src=\S+ /", "src=$thumb1 ", $upload_image1); if($data[file_name2]) { list($image2_width, $image2_height) = getimagesize($data[file_name2]); if($image2_width && $image2_width > 580) $image2_width_new = 580; else $image2_width_new = $image2_width; $image2_height_new = round($image2_height * 580 / $image2_width); $thumb2 = thumb($id, $data[s_file_name2], 580, $image2_height_new); $upload_image2 = str_replace("style=\"", "style=\"width: ${image2_width_new}px; ", $upload_image2); $upload_image2 = preg_replace("/src=\S+ /", "src=$thumb2 ", $upload_image2); } ?> </source> == 전자상거래 == * [http://database.sarang.net/php/install/ApacheMySQLPHP_Guide-KLDP/ApacheMySQLPHP_Guide-KLDP.html#toc1 APM으로 전자상거래 구축하기] == 애플리케이션 == * [[PHP_설문조사|설문조사]] = 참고 = * http://asp2php.naken.cc/ ASP2PHP : [[코드 변환|asp 코드를 php로 변환]]. GPL
PHP
(으)로 돌아갑니다.
보기
문서
토론
내용 보기
역사
개인 도구
로그인
둘러보기
기술
정책
문화
활동
개인
오늘 학습 일지
대문
사용자 모임
요즘 화제
최근 바뀜
Search
도구모음
여기를 가리키는 문서
가리키는 글의 바뀜
특수 문서 목록