SQLite 썸네일형 리스트형 PDO 예제 Example#1 Connecting to MySQL$dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass);?>Example#2 Handling connection errorstry { $dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass); foreach ($dbh->query('SELECT * from FOO') as $row) { print_r($row); } $dbh = null;} catch (PDOException $e) { print "Error!: " . $e->getMessage() . ""; die();}?>Example#3 Closin.. 더보기 리눅스에서 SQLite 설치부터 실행까지.. ※ PHP5 및 SQLite 설치하기 # sudo apt-get install php5-sqlite => php5, sqlite 설치 및 연동 # sudo nano php.ini -> extension=php_sqlite.dll => php에서 sqlite driver 사용 ***************************************************************************1. SQLite 설치하기 http://www.sqlite.org/download.html에서 최신버전을 다운받는다. # tar xvfz sqlite파일명.tar.gz (압축풀기) # cd (압축해제된 폴더) # ./configure # make # make install * make 단계에서 "[tc.. 더보기 이전 1 다음