|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-01-10 23:34 UTC] mfischer@php.net
[2002-01-11 00:05 UTC] nonzero at bigfoot dot com
[2002-01-11 02:37 UTC] mfischer@php.net
[2002-02-02 06:35 UTC] sander@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
have a web ap with an include file called common.php that contains: ... if(eregi($HOSTNAME,"www.somehostname.com")) { define("DATABASE_HOST","mybox.myhost.com"); } else { define("DATABASE_HOST","localhost"); } // Database Initialize $db = new DB_Sql(); ...etc eregi must be outputing some data to the server since the page that includes the above include file returns an error: (note that line 22 is the first eregi expression in common.php) =======error message begin: Warning: REG_EMPTY in /usr/local/home/vhosts/mybox.com/httpdocs/common.php on line 22 Warning: Cannot send session cache limiter - headers already sent (output started at /usr/local/home/vhosts/mybox.com/httpdocs/common.php:22) in /usr/local/home/vhosts/mybox.com/httpdocs/infoGrid.php on line 16 =======error message end: infoGrid.php is setting cookies removing the eregi test and replacing the above lines in common.php with: define("DATABASE_HOST","mybox.myhost.com"); removes the error It seems to me that eregi must be outputing something back to the server. I couldn't find this bug in the bug database so I'd appreciate it if anyone has time to look into it.