Re: Confused
| From: | brian | Date: | Tue, 02 Sep 2008 18:05:04 +0000 |
| Subject: | Re: Confused | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279301@lists.php.net to get a copy of this message | ||
Dan Shirah wrote:
All, Okay, I am a bit confused. I'm setting up another server to host PHP pages. I followed everything in the Manual for installing PHP. I'm running Windows Server 2003, IIS6.0 and PHP 5.2.6. And...it kind of works... If I do: <?php echo "Test"; ?> it prints fine. If I do: Today is: <?php echo date("l, F j, Y"); ?> it prints fine. If I do: You are recognized as: <?php echo substr($_SERVER['AUTH_USER'], 13); ?> I get no output.AUTH_USER will be empty unless the user has logged in (using whatever Microsoft's equivalent of htpasswd/htdigest is). As suggested previously, print $_SERVER to ensure it's set.
If I do:$connect_id = ifx_connect("${database}@${host}", $user, $pass); var_dump($connect_id); And, to be sure, maybe echo $database, $host, $user, and $pass.if (!$connect_id = ifx_connect("$database@$host", $user, $pass)) { //THE ACTUAL CONNECTIONecho "Unable to connect to Informix Database\n"; // DISPLAY IFCONNECTION FAILSexit();} I don't get a connection to the database and the "Unable to connect to Informix Database\n"; does not even display. I get no errors output to the screen and I have display_errors = On And I have error_reporting = E_ALL & ~E_NOTICE Any ideas?