본문 바로가기

Jehna :)

검색하기
Jehna :)
프로필사진 Jehna

  • 분류 전체보기 (50)
    • 윌리 (45)
      • HTML&CSS (0)
      • PHP (2)
      • System 이것저것 (29)
      • DB (14)
    • 일상 (5)
      • 독서 (1)
      • 이것저것 (4)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
  • MariaDB
  • html 구성
  • 디스크 용량 확인
  • navicat
  • wsrep
  • error 1728
  • 복구
  • 국민은행(기업)
  • DOTCOM 마케팅 설계자 SECRET
  • Laravel
  • php zip 모듈
  • CSS
  • author style
  • nginx 1.12.0
  • disk 100% 사용
  • mysql.proc 오류
  • OTP 오류
  • disk full
  • php 7.3
  • OTP 보정오류
  • php excel
  • php 파일 삭제
  • Oracle
  • php 업로드 파일 삭제
  • nginx
  • centos7
  • 갈레라
  • user style
  • ZipArchive 오류
  • postfix
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록php 파일 삭제 (1)

Jehna :)

PHP 업로드 파일 삭제

* 환경 CentOS7.x / php 7.3 opendir로 삭제하려는 파일이 위치한 디렉토리를 열고 unlink로 파일 삭제! 생각보다 쉽고 간단합니당~ // 파일 경로 선언 $upload_path = $_SERVER['DOCUMENT_ROOT']."/test/"; // 파일이 위치한 디렉토리 열기 if ( opendir($upload_path) ) { @unlink($upload_path."파일명.txt"); }

윌리/PHP 2022. 5. 9. 17:37
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바