Re: [PHP] embedding php inside of php

2012-07-01 Thread Yared Hufkens
If you are using PHP 5.4 or short_open_tag is 1, you can also do this: Some HTML text here?=subject?some more HTML text?=$text?and finally other stuff here Am 01.07.2012 14:01, schrieb Tim Streater: On 01 Jul 2012 at 01:00, Tim Dunphy bluethu...@gmail.com wrote: I am trying to get the hang

Re: [PHP] regexp novice

2012-05-17 Thread Yared Hufkens
Try this: /(0?[1-9]|[12][0-9]):?[0-5][0-9]/ FYI: ? is equal to {0,1}, and [1-9] to [123456789] (and therefore [1-2] to [12]). Am 17.05.2012 22:37, schrieb Jim Giner: ok - finally had to come up with my own regexp - and am failing. Trying to validate an input of a time value in the format

Re: [PHP] Best PHP Template System

2012-04-25 Thread Yared Hufkens
Why use an external engine which slows your scripts down to do something which can easily be done by PHP itself? PHP is imho the best template engine for PHP. With PHP 5.4, it became even easier because ?=$do-somestuff()? can be used without short_open_tag enabled. However, you always schould

Re: [PHP] Help! Having trouble getting one XML field from this feed reliably

2012-02-09 Thread Yared Hufkens
I wonder why you use cURL as SimpleXML itself can load URLs: $vastdata = new SimpleXMLElement('http://afe.specificclick.net/?l=32259t=xrnd=123456',0,true); See http://de.php.net/manual/en/simplexmlelement.construct.php Am 09.02.2012 04:44, schrieb Rob Gould: Can anyone tell me what I'm doing

[PHP] PHP-GTK: GladeXML::get_widget() doesn't find some widgets

2012-02-09 Thread Yared Hufkens
I have a Glade file with this widget: child widget class=GtkTextView id=errLog property name=visibleTrue/property property name=can_focusTrue/property property name=editableFalse/property property name=cursor_visibleFalse/property

[PHP] PHP-GTK dead?

2012-01-10 Thread Yared Hufkens
It seems that PHP-GTK is completely dead. The latest version (2.0.1) was released on May 2008, nobody answers on questions in the mailing list, and the latest SVN commit is nearly one year ago. Am I wrong or is it senseless to write still PHP-GTK programs? -- PHP General Mailing List