On Tue, Sep 2, 2008 at 1:46 PM, Dan Shirah <[EMAIL PROTECTED]> wrote:
> If it was that simple then the second line: echo "Unable to connect to
> Informix Database\n";  would execute upon the connection failing and that
> message would be output to my screen.  I get Nothing.
>
> Just as a simple call to <?php echo substr($_SERVER['AUTH_USER'], 13); ?>
> returns nothing as well.
>
>
> On 9/2/08, Simcha <[EMAIL PROTECTED]> wrote:
>>
>> This does not seem to be an installation problem -
>>
>> Your test [(!$connect_id = ] fails, since the connect returns false, so it
>> does not run the condition.
>>
>> Compare:
>> <?php
>>
>> if($a = false){echo "no good";}else{echo "condition true";}
>>
>> ?>
>>
>>
>>
>> -----Original Message-----
>> From: Dan Shirah [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, September 02, 2008 7:31 PM
>> To: PHP List
>> Subject: [PHP] Confused
>>
>> 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.
>> If I do:
>>     if (!$connect_id = ifx_connect("[EMAIL PROTECTED]", $user, $pass)) { //
>> THE ACTUAL CONNECTION
>>     echo "Unable to connect to Informix Database\n"; // DISPLAY IF
>> CONNECTION FAILS
>>     exit();
>> }
>>
>> 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?
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com
>> Version: 8.0.169 / Virus Database: 270.6.14/1646 - Release Date: 02/09/2008
>> 06:02
>>
>>
>

Look at your server error log.  Maybe you have a parse error or
something that prevents it from getting to the screen.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to