On Tue, Sep 2, 2008 at 2:49 PM, Robert Cummings <robert@xxxxxxxxxxxxx> wrote: > On Tue, 2008-09-02 at 14:46 -0400, Robert Cummings wrote: >> On Tue, 2008-09-02 at 14:43 -0400, Dan Shirah wrote: >> > So you're script runs long enough for you to check? >> > >> > Cheers, >> > Rob. >> > >> > if (!$connect_id = ifx_connect("$database@$host", $user, $pass)) { >> > >> > Checks to see if it doesn't connect. If it does connect the page >> > continues to process. If it doesn't connect the error is displayed. >> > echo "Unable to connect to Informix Database\n"; >> > >> > If I put in the following: >> > >> > echo "Point 1"; >> > if (!$connect_id = ifx_connect("$database@$host", $user, $pass)) { // >> > THE ACTUAL CONNECTION >> > echo "Point 2"; >> > echo "Unable to connect to Informix Database\n"; // DISPLAY IF >> > CONNECTION FAILS >> > echo "Point 3"; >> > exit(); >> > } >> > echo "Point 4"; >> > >> > The only thing that is output to my screen is "Point 1" >> >> Your script is dying then. What does the error log say? Are you sure PHP >> is using the php.ini you think it's using? Double check by using >> phpinfo(). > > BTW, my guess is that ifx_connect() doesn't exist. Possibly you don't > have ifx support. > > Cheers, > Rob. > -- > http://www.interjinn.com > Application and Templating Framework for PHP > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Yea I thought the same that is why I recommended the looking at logs idea. Perhaps maybe just running form cli will do it: eric@nibelheim:~/Sites$ php5 blah.php Point 1 Fatal error: Call to undefined function ifx_connect() in /home/eric/Sites/blah.php on line 3 Call Stack: 0.0002 60252 1. {main}() /home/eric/Sites/blah.php:0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php