메뉴 건너뛰기

2016.03.18 22:57

php http include

조회 수 7685 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

php를 이용하시는 분중에

apache, php를 재컴파일을 한 뒤에 php소스중에서 http://주소 로 걸려있는 변수가

include 가 되지않는 현상이 발생하였음

*예시 소스내용

<?
include "./main_page/main_sos.php"; ---> 정상적작동
include "http://test.com/main_top.html"; ----> 작동안함
?>


이에 php.ini 에서 allow_url_include 설정 변경후 정상 작동하였음


*해결방법

기존설정

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
allow_url_include = Off

변경내용 적용

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
allow_url_include = On


allow_url_fopen  << 해당 설정도 On 되어있었지만 되지않았음. 이유는 include 구문이었기때문에..


  1. No Image 26Mar
    by
    2014/03/26 Views 7862 

    Linux 시스템 백업과 복원

  2. No Image 26Mar
    by
    2014/03/26 Views 7430 

    LINUX 싱글부팅

  3. No Image 27Feb
    by
    2014/02/27 Views 7094 

    linux 커널 파라메터 수정

  4. No Image 26Mar
    by
    2014/03/26 Views 7110 

    mail 명령어 사용법

  5. No Image 16Jul
    by
    2015/07/16 Views 7711 

    mariadb | my.cnf 설정. MariaDB(5.5.37) utf8 설정

  6. No Image 27Feb
    by
    2014/02/27 Views 7862 

    mod_expires 모듈 추가 및 이미지 캐싱 설정방법

  7. No Image 22Dec
    by
    2016/12/22 Views 7145 

    mod_rewrite 예제

  8. No Image 16Jul
    by
    2015/07/16 Views 7290 

    my.cnf 케릭터 셋 설정 (uft8)

  9. No Image 18Mar
    by
    2016/03/18 Views 8004 

    mysql DB 지정 백업 스크립트

  10. MySQL Linux Port 방화벽 설정(3306)

  11. No Image 16Jul
    by
    2015/07/16 Views 7858 

    mysql root 비밀번호 설정

  12. No Image 16Jul
    by
    2015/07/16 Views 7512 

    MySQL 계정생성하기

  13. No Image 27Feb
    by
    2014/02/27 Views 7501 

    Mysql 설치시 LinuxThreads 에러 메세지

  14. No Image 27Feb
    by
    2014/02/27 Views 7931 

    ncftp 설치및 스크립트 백업 방법

  15. No Image 12Apr
    by
    2014/04/12 Views 7238 

    netstat [option]

  16. No Image 26Mar
    by
    2021/03/26 Views 210 

    netstat 명령어

  17. No Image 22Dec
    by
    2016/12/22 Views 8769 

    netstat 사용법

  18. Nikto - 웹 취약점 스캐너 도구

  19. OpenSSH chroot 설정

  20. No Image 18Mar
    by 조쉬
    2016/03/18 Views 7685 

    php http include

Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 12 Next
/ 12

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved