PHP를 사용하여 php.ini를 templatizing합니다. CLI PHP 스크립트를 사용하여 템플릿에서 httpd.conf, apachectl 및 php.ini를 생성하여 개발 환경을 설정하는 스크립트가 있습니다. 불행히도 php.ini에는 문자로 <?
과 <?php
문자열이 있습니다 (주석에 있음). php가 정상적인 PHP 이스케이프 문자열로 해석하지 않도록 어떻게 든 이스케이프가 가능합니까?리터럴을 이스케이프 처리하려면 <? php 및 <? PHP 스크립트
; This directive determines whether or not PHP will recognize code between
; <?php echo "<? and ?>" ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php echo "<?php and ?>" ?> tag combination. With the wide spread use
;
Works. 실제로' '를 피할 수있는 방법은 없습니다. – rinogo
아니요. 그것을 할 방법이 없습니다. – gahooa