Apr 22 2010

phpPgAdmin 사용하기

분류: .Mac, Database, How to, PHP, PostgreSQL최 태현 @ 5:50 오후

If your PostgreSQL server is running on the same server as the webserver, phpPgAdmin’s default configuration will work “out-of-the-box”; if not, you’ll need to edit the configuration file located at conf/config.inc.php. It should be self-explanatory. There’s also a “backup” copy of the installation file “conf/config.inc.php-dist“.

One problem which occurs quite often is the error message “Login disallowed for security reasons“, which occurs when trying to login as a user with an empty password, a common situation on (presumably well-protected) development machines. To enable this kind of login, set the option $conf['owned_only'] in conf/config.inc.php to true.

‘extra_login_security’ =

If extra login security is true, then logins via phpPgAdmin with no password or certain usernames (pgsql, postgres, root, administrator)
will be denied.


Apr 08 2010

Mac OS X Snow Leopard : PHP + OCI8

분류: .Mac, Apache2, Oracle, PHP, Server최 태현 @ 10:55 오전

Mac OS X Snow Leopard 에서 Oracle 10.g 설치하기 를 통해 Oracle을 설치했다는 전제하에 PHP에 OCI8을 설치하는 방법입니다.

먼저 OCI8 module이 제대로 설치되어 있는지 확인합니다.

env  |  grep  -­E  ”(ORACLE)|(DYLD)”

ORACLE_SID=y2love
ORACLE_BASE=/Users/Y2Love
DYLD_LIBRARY_PATH=/Users/oracle/oracle/product/10.2.0/db_1/lib
ORACLE_HOME=/Users/oracle/oracle/product/10.2.0/db_1

와 같이 나오면 됩니다.

Continue reading “Mac OS X Snow Leopard : PHP + OCI8″


Dec 01 2009

Windos XP에서 APM 설치하기

분류: Apache2, Desktop, PHP, mysql최 태현 @ 10:22 오전

1. Apache, MySQL, PHP 설치하기

1. Apache 설치하기

  • 윈도우용 Apache Download ( 저는 apache_2.2.14-win32-x86-openssl-0.9.8k.msi 를 받았습니다. )
  • Run the Apache Installer
Server Information 설정화면

Continue reading “Windos XP에서 APM 설치하기”

Tags: , , ,


Jul 04 2009

PHP include_path 설정하기

분류: How to, PHP최 태현 @ 1:08 오전
  1. Edit your PHP configuration file. Inside that file is a directive section for “Paths and Directories.” You can change that value to whatever you like or add to (or eliminate) the default like this:
    include_path = .:/usr/local/lib/php:./include

    The above must be entered all on one line, with no linebreaks. The above will cause php scripts to search for a directory named “include”, and will look for it under the current directory of the running script in addition to the default, which is to first search the current directory and then search the /usr/local/lib/php directory (which is a system directory that is not writeable by you and is reserved for things like PEAR).

    The format of the include_path variable is a list of directories separated with a colon. A “.” (a period) in the include path means the current directory, and allows for relative includes. More information is available here.

    Use the function ini_set(). For example if you wanted to set your PHP include_path to “.:../:./include:../include” then you would do this in your PHP code:

    ini_set(”include_path”, “.:../:./include:../include”);

    You can also use ini_set() to affect other PHP settings like auto_prepend_file, auto_append_file, error_reporting, etc.

Tags: ,