전체 글
-
-
phpredis 예제PHP 2014. 12. 12. 11:00
$redis = new Redis(); $redis->connect('localhost', 6379); $redis->select(0); class test { private $a; private $b; public function test() { $this->a = "abcdefg"; $this->b = "1234567"; } public function getA() { return $this->a; } private function getB() { return $this->b; } } $tes..
-
파일 업로드PHP 2014. 12. 12. 10:56
준비 작업 - 업로드할 디렉토리 생성/ 권한 변경 [jskim@ditto public_html]$ mkdir upload [jskim@ditto public_html]$ chmod -R 777 upload [jskim@ditto public_html]$ ls -al upload total 3 drwxrwxrwx 2 jskim jskim 1024 Sep 30 12:13 ./ drwxr-xr-x 33 jskim users 2048 Sep 30 12:13 ../ [jskim@ditto public_html]$ - 업로드할 파일의 크기 제한 변경 vi /usr/local/lib/php3.ini ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;..