Install Glade on Mac & General Debugging

[email protected] (Instruct ICC)
Newsgroups php.gtk.general
Message-ID <[email protected]>
I took the plunge and installed php5-gtk which is 2.0.0beta from Macports, despite my oath to never deal with .0 versions of any software (well at least at work) let alone beta.

Where are the PHP-GTK 2 Demos from Step 9 here http://gtk.php.net/manual/en/tutorials.installation.macosx-stepbystep.php ?
I did get to see that it works using http://gtk.php.net/manual/en/tutorials.helloworld.php

Has anyone installed Glade (any version) on the Mac?  No joy glade1,2,dev3 between Fink and Macports for me.

I have a command line script that attempts to use mysql_connect.  On PHP4 I would echo an error message if it could not connect.

$link = @mysql_connect($init['server'].':'.$init['port'], $init['user'], $init['pass']);
if(!$link){
    exit('Could not connect: ' . mysql_error() . "\n");
}
echo 'Connected successfully';

When I run this on the PHP5 with GTK2 extensions (without actual gtk use yet), neither the failure nor success messages echo.  If I remove "@", I see the built-in PHP error "Can't connect" as expected.

Perhaps it is just PHP5 syntax I am unfamiliar with?  I had to adjust using $options['c'] from $options = getopt("c:h"); without testing that it was set, and I know that's a PHP5 requirement now.

TIA.

_________________________________________________________________
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.