구분자 (# 또는 / 를 추가하면 된다
if(!preg_match ("http://", $file)) // (X)
if(!preg_match ("#http://#", $file)) // (O)
구분자 (# 또는 / 를 추가하면 된다
if(!preg_match ("http://", $file)) // (X)
if(!preg_match ("#http://#", $file)) // (O)
목적: <?php 대신 <? 로 시작
설정 파일: php.ini
변경 사항 :
;short_open_tag = Off
short_open_tag = On
WAMP 에서는 아래도 추가해야 한다
asp_tags = On
참고 :http://www.php.net/manual/en/ini.core.php#ini.short-open-tag
http://stackoverflow.com/questions/12579448/php-short-open-tag-on-not-working