본문 바로가기
반응형

PHP21

[CI4] 카페24에 설치 해보기 1. CodeIgniter 4 Download 다운로드 링크 : Welcome to CodeIgniter Welcome to CodeIgniter CodeIgniter 3 is the legacy version of the framework, intended for use with PHP 5.6+. This version is in maintenance, receiving mostly just security updates, and the current version is 3.1.13. codeigniter.com 2. Codeigniter 4 FTP Upload 3. `env` 파일의 파일명을 `.env` 로 변경하기 단, 각 설정을 env 파일을 통해 하실 경우 변경하시면 됩니다. env파일을 사용하.. 2023. 12. 30.
[phpDocumentor]@todo 원문 https://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags.todo.pkg.html @todo @todo Document changes that will be made in the future Gregory Beaver Copyright 2002, Gregory Beaver (phpDocumentor 1.0+) @todo information string [unspecified format] DescriptionUse @todo to document planned changes to an element that have not been implem manual.phpdoc.org @todo 향후 발생할 변경 사항을 문서.. 2023. 12. 6.
[phpDocumentor]@version 원문 https://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags.version.pkg.html @version @version Version of current element Gregory Beaver Copyright 2002, Gregory Beaver (phpDocumentor 0.1+) @version versionstring [unspecified format] DescriptionDocuments the version of any element, including a page-level block NEW v1.2 - @version is now inhe manual.phpdoc.org @version 설명 페이지 .. 2023. 12. 6.
[phpDocumentor]@abstract 원문 https://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags.abstract.pkg.html @abstract @abstract Document an abstract class or method Gregory Beaver Chuck Burgess Copyright 2002, Gregory Beaver (phpDocumentor 1.1+) @abstract DescriptionUse the @abstract tag to declare a class as abstract, as well as for declaring what methods must be redefin manual.phpdoc.org @abstact phpDo.. 2023. 12. 6.
함수 모음 1. directory_map(); 코드이그나이터3에서 사용되던 함수로 특정 경로의 폴더와 파일들 목록 함수 얻기용으로 가져다 쓰기 좋아서 유용하게 사용 중 if ( ! function_exists('directory_map') ) { function directory_map($directory_path, $directory_depth = 0, $hidden = false) { if ( $fp = @opendir($directory_path) ) { $file_data = array(); $new_depth = $directory_depth - 1; $directory_path = rtrim($directory_path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; wh.. 2023. 6. 29.
JSON 결과 나오지 않을 때 json_last_error() 확인 https://www.php.net/manual/en/function.json-last-error.php PHP: json_last_error - Manual use this code with mb_convert_encoding, you can json_encode some corrupt UTF-8 chars function safe_json_encode($value, $options = 0, $depth = 512) { $encoded = json_encode($value, $options, $depth); if ($encoded === false && $val www.php.net json_last_error_msg() 확인 https://www.php.net/m.. 2022. 8. 31.
반응형