본문 바로가기

php65

How to use PHP and PEAR MDB2 (Tutorial) While writing some PHP Training materials for Pale Purple, I thought I'd add an updated guide on PHP and database access. I've already done one on PEAR::DB, but PEAR::MDB2 is it's successor and has a slightly different API.... and as PEAR::DB is now deprecated, it's probably about time I rewrote it anyway. What is PEAR::MDB2? MDB2 is yet another database API for PHP. It's written in PHP, so can .. 2009. 6. 11.
PEAR 활용 imagick 설치 및 PHP 캐싱 http://pecl.php.net/package/imagick 이 사이트에 방문하시어 최종 업데이트 된 제품을 다운로드 합니다. wget http://pecl.php.net/get/imagick-2.2.1.tgz # tar zxf imagick-2.2.1.tgz # cd imagick-2.2.1.tgz # phpize # ./configure --with-php-config=/usr/local/php/bin/php-config 에러가 발생할 수 있습니다. checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand.. 2009. 6. 11.
XAMPP for Windows The XAMPP 1.7.1 is available! We've released a new version of XAMPP, including: Apache HTTPD 2.2.11 + Openssl 0.9.8i MySQL 5.1.33 PHP 5.2.9 phpMyAdmin 3.1.3.1 XAMPP CLI Bundle 1.3 FileZilla FTP Server 0.9.31 Mercury Mail Transport System 4.62 Please visit the win32 compatibility list. Vista Note: Because missing or insufficient write permissions in the c:\program files folder of the default vist.. 2009. 6. 9.
XAMPP + Eclipse 이용한 PHP 디버깅 (XDebug) XAMPP 에 포함되어 있는 XDebug 를 이용해서 이클립스에서 편하게 디버깅 할 수 있도록 설정하는 방법입니다. 설정이 그리 어렵지 않지만 몇가지 문제때문에 어려워하는 분들이 계실까봐 글을 남깁니다. 보통 웹프로그래밍을 할때에는 작성 후 브라우저를 통해 결과를 확인하는 작업을 하게 되는데, 이클립스를 통해 디버깅을 하게되면 이클립스 하단에 바로 결과값이 나와 개발의 효율과 편의를 도모할 수 있습니다. 단, XDebug 는 ZendOptimizer 와 함께 사용할 수 없습니다. 개발을 위해 주로 로컬 서버에서만 사용할 목적이기 때문에 Zend 를 사용 못하는건 그리 큰 문제가 되지 않으리라 생각됩니다. XAMPP 는 현재 1.7.1 버전까지 나와 있으며 XAMPP 다운로드 사이트에서 받을 수 있습니다... 2009. 6. 9.
PHP 문자열 관련 함수 echo "문자열 개수출력(strlen)";$str = "abcds";$result = strlen($str);echo "출력 문자 : $str";echo "문자 개수 : $result";$str = "가";echo "출력 문자 : $str";echo "문자 개수 : ".strlen("가")."";echo "문자열 뒤집기(strrev)";$str = "abcedf";echo "원래문자열 : $str";$result = strrev($str);echo "바뀐문자열 : $result";echo "두개의 문자열 비교(strcmp)";$str1 = "abcde";$str2 = "abcde";echo "str1=$str1, str2=$str2";echo "두 문자열이 같으면 :.. 2009. 5. 22.