note 25523 modified in function.ociplogon by sixd

From: Date: Mon, 05 Oct 2009 01:23:11 +0000
Subject: note 25523 modified in function.ociplogon by sixd
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-161272@lists.php.net to get a copy of this message
Better to insert needed variables into apache(!) (or your webserver - respectively) start script. For example on UNIX systems /etc/init.d/apache would contain following lines before anything else: #!/bin/bash if [ -f ~oracle/.profile ]; then source ~oracle/.profile fi The ~oracle/.profile has the appropiate settings to start an Oracle database so it is always up-to-date for PHP, too. (If settings are changed, don't forget to restart your webserver.) This way you just no need to worry what to include or define for PHP. --was-- Better to insert needed variables into apache(!) (or your webserver - respectively) start script. For example on UNIX systems /etc/init.d/apache would contain following lines before anything else: #!/bin/bash if [ -f ~oracle/.profile ]; then source ~oracle/.profile fi The ~oracle/.profile has the appropiate settings to start an Oracle database so it is always up-to-date for PHP, too. (If settings are changed, don't forget to restart your webserver.) This way you just no need to worry what to include or define for PHP. http://php.net/manual/en/function.ociplogon.php

« previous php.notes (#161272) next »