[PHP] PHP mail() error (“sh: -t: command not found”)

2023-05-18 KENNETH 0

PHP mail() error (“sh: -t: command not found”)   PHP code   exec result     처음 보는 에러라서 흠칫… 대체 -t 는 근거가 뭘까 싶었는데.. php.ini 의 설정과 관련이 있음     정상(??)서버     문제의 서버 앞의 sendmail 이 없으니 발생하는 에러로 보여짐     해결 php.ini 수정 default   변경        

[PHP] Severity: Notice Only variable references should be returned by reference on CodeIgniter-2.1

2020-10-16 KENNETH 0

Severity: Notice Only variable references should be returned by reference (아주) 구 버전의 CodeIgniter 에서 발생할 수 있는 오류     1. 환경 PHP-5.6 CodeIgniter-2.1.3   php-5.2 버전에서는 에러 출력X CodeIgniter-2.2 버전부터는 수정된 문제     2. 수정 파일명 : $CodeIgniter_PATH/system/core/Common.php line : 257     원래내용     변경  

PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP

2019-11-05 KENNETH 0

환경 PHP-7.3 * 아마도 PHP-7.0 이상이면 발생하는것으로 추정 된다.   오류(??)메세지 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP   원본코드   원인 class 이름과 function 이름이 동일할 경우 발생하는 메세지 현재 상태에서 당장 “심각” 수준은 아니지만 오류가 발생하기 때문에 조치가 필요하긴 함… 참조 URL : http://docs.php.net/manual/kr/language.oop5.decon.php 처음 메세지를 봤을 때는… “에이 뭐 이런…!!!” 이었으나 글을 보고 나니 “아.. 따르는게 좋겠네…” 라는 느낌.. 뭐 난 개발자스런 지식이 없기 때문에 ㅋㅋㅋㅋ   수정코드      

php설치시 “PEAR package PHP_Archive not installed” 오류 관련 참고

2018-12-12 KENNETH 0

PHP 컴파일을 이용한 설치시 configure 과정을 에러없이 정상적으로 마치고 make 과정 역시 무난하게 넘어가는가 싶지만 즉, Build complete. Don’t forget to run ‘make test’. 이렇게 정상적으로 마무리 되었으나…   complete 위에 좀 찝찝하게 PEAR package PHP_Archive not installed: generated phar will require PHP’s phar extension be enabled. 이러한 메세지가 출력되는 것을 볼 수 있다.   출력되는 내용은 뭐 대단한 오류를 품고 있는 것은 아니고… 그냥 “pear install PHP_Archive” 명령을 사용하면 위에 나온것 과 같이 버전관련 안내가 나오면서 “install failed” 가 발생함 알려주는대로 버전을 제대로 붙여서 설치를 해주면 됨  

PHP 지원기간 안내 (PHP Supported Versions) – 201809현재

2018-09-03 KENNETH 0

URL : http://php.net/supported-versions.php   Supported Versions Each release branch of PHP is fully supported for two years from its initial stable release. During this period, bugs and security issues that have been reported are fixed and are released in regular point releases. After this two year period of active support, each branch is then supported for an additional year for critical security issues only. Releases during this period are made on an as-needed basis: there may be multiple point releases, or none, depending on the number of reports. Once the three years of support are completed, the branch reaches its end of life and is no longer supported. A table of end of life branches is available. Currently Supported Versions Branch Initial Release Active Support Until Security Support Until 5.6 * 28 Aug 2014 4 years ago 19 Jan 2017 1 year, 7 [ more… ]