리눅스에서 <?php 는 작동하는데 <? 로 시작하면 파일 깨질때...
php.ini 를 수정해야합니다.
php --ini | grep php.ini 를 쳐보면 됩니다.
/etc/php.ini 에 있을수도 있고 /usr/bin/php.ini 에 있을 수도 있습니다.
파일을 열어서 short_open_tag 찾아서 on 으로 바꿔주세요.
그러면 잘 인식합니다.
서버 재부팅 또는 아파치 재부팅 하셔야합니다.
댓글 5개
chjun7
7년 전
이거때문에 엄청 고생했던 때가 생각나네요 ㅎㅎ
7년 전
그래서 애초에 프로그램을 짤때 <?php ?> 이렇게 습관을 들였답니다.
7년 전
<? 로 짜여진 소스를 보면 알게 모르게 화가 나게 되더라구요.. ㅠㅠㅠㅠ
돌아온코더
7년 전
넵 감사합니다.
코드오타쿠
3년 전
ㅠㅠㅠ
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4796 | jQuery | 8년 전 | 1535 | ||
| 4795 | jQuery | 8년 전 | 1439 | ||
| 4794 | jQuery | 8년 전 | 1564 | ||
| 4793 | jQuery | 8년 전 | 1620 | ||
| 4792 | jQuery | 8년 전 | 1633 | ||
| 4791 | jQuery | 8년 전 | 1794 | ||
| 4790 | jQuery | 8년 전 | 1735 | ||
| 4789 | jQuery | 8년 전 | 1599 | ||
| 4788 | jQuery | 8년 전 | 1660 | ||
| 4787 | jQuery | 8년 전 | 1475 | ||
| 4786 | jQuery | 8년 전 | 1434 | ||
| 4785 | jQuery | 8년 전 | 1645 | ||
| 4784 | jQuery | 8년 전 | 1527 | ||
| 4783 | jQuery | 8년 전 | 1233 | ||
| 4782 | jQuery | 8년 전 | 1600 | ||
| 4781 | jQuery | 8년 전 | 1340 | ||
| 4780 | jQuery | 8년 전 | 1576 | ||
| 4779 | jQuery | 8년 전 | 1984 | ||
| 4778 | jQuery | 8년 전 | 1959 | ||
| 4777 | jQuery | 8년 전 | 1529 | ||
| 4776 | jQuery | 8년 전 | 1583 | ||
| 4775 | jQuery | 8년 전 | 1971 | ||
| 4774 | jQuery | 8년 전 | 1488 | ||
| 4773 | jQuery | 8년 전 | 1411 | ||
| 4772 | jQuery | 8년 전 | 2203 | ||
| 4771 | jQuery | 8년 전 | 3613 | ||
| 4770 | PHP | 8년 전 | 5579 | ||
| 4769 | 기타 | 8년 전 | 1965 | ||
| 4768 | 기타 | 8년 전 | 1781 | ||
| 4767 | 기타 | 8년 전 | 2068 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기