note 7615 added to define

From: Date: Wed, 09 Aug 2000 01:15:35 +0000
Subject: note 7615 added to define
Groups: php.notes 
Request: Send a blank email to php-notes+get-721@lists.php.net to get a copy of this message
Actually the DEFINE function does not seem to work well with Zend lp2. Here's the problem. 1 Script 1 include file: Script: connect_db(); do_somedbstuff(); Include: function connect_db(){ $db=... mysql connect yayda. define("DB_LINK",$db); } function do_somedbstuff() { $result=mysql($somequery, DB_LINK); <-- fails. } Found this out when I needed it the most. http://www.php.net/manual/function.define.php

« previous php.notes (#721) next »