![]() |
| ||
| php-gtk I have just started learning php-gtk 2 but am a bit stuck. First is that are there any php-gtk 2 debuggers or error loggers that I can use because at the moment, if there is a bug in my script, the exported exe file made from my php-gtk script is simply currupted or won't open. So does any body know of such program to read my script and tell if there are bugs and what roughly lines the bugs are on. Note: This is php-gtk - not plain php. Also I have encountered a multi object problem where only the first button will be displayed on the screen. Below is the code I am using and do you know why the button $button2 wont show. <?phpIn case if you are wondering what php-gtk is, it is like php but with more libraries/binaries and instead of creating webpages, it creates programs. |
| ||
| Re: php-gtk I've fixed your code: <?php I'm learning php-gtk too :) It seems like is mandatory to enclose UI elements into boxes before adding to GtkWindow. I recommend to read this serie of tutorials: http://gtk.php.net/manual/en/tutorials.packing.php |
| ||
| Re: php-gtk Yes, It works. Thanks. My current code is below and displays a row of buttons at the top. The only other thing I need to know is if there is any software that will display the error messages from any errors in my php file. I have tried enabling error reporting in the php.ini file of the compilation but makes no difference but other than that it works great and love the tutorials you linked to. Below code does the job: <?php |
| ||
| Re: php-gtk I'm using the php executable from Terminal to load the php-gtk code (located in /usr/local/php-gtk in my Mac OS 10.5 after installing this DMG package). Before compiling the code you can perform php -l code_example.phpto check for syntax errors (maybe, we can do it automatically from the editor assigning a macro or menu function). In Windows should work exactly as described here, also it's possible to perform and interpret the code, showing errors and output messages on the MS-DOS prompt using directly php code_example.phpalone without -l parameter. |
| ||
| Re: php-gtk Quote:
@echo -Pitty this isn't obvious to find on the internet. So *Solved* |
| ||
| Re: php-gtk Also, this modification can be useful adding an argument to the ms-dos, avoiding copy&paste each file name: @echo off |
| All times are GMT -4. The time now is 7:48 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC