php-general Digest 2 Jun 2012 01:28:38 -0000 Issue 7836

2012-06-01 Thread php-general-digest-help
php-general Digest 2 Jun 2012 01:28:38 - Issue 7836 Topics (messages 318072 through 318096): Re: How to insert a file in a class? 318072 by: sertcetin.itu.edu.tr 318073 by: LAMP 318074 by: LAMP 318075 by: marco.behnke.biz 318076 by: LAMP progress

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-06-01 Thread Govinda
You need to get better tools. I found this with Notepad++ for Windows searching case within *.php files filter within the root directory of the extracted zip/tarball: H:\data\Downloads\dev\PHP\htmlpurifier-4.4.0\library\HTMLPurifier\AttrDef\CSS\Font.php (6 hits) Line 45:

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-06-01 Thread Tommy Pham
On Thu, May 31, 2012 at 11:17 PM, Govinda govinda.webdnat...@gmail.com wrote: You need to get better tools.  I found this with Notepad++ for Windows searching case within *.php files filter within the root directory of the extracted zip/tarball:  

[PHP] How to insert a file in a class?

2012-06-01 Thread LAMP
Hi to all. Let's say there is a class class Box { var $box_title; var $box_content; function __construct() { $this-box = ''; } function box_title($title) { $this-title = $title; }

Re: [PHP] How to insert a file in a class?

2012-06-01 Thread sertcetin
file_get_contents() ? -- Ege Sertçetin Alinti LAMP l...@afan.net Hi to all. Let's say there is a class class Box { var $box_title; var $box_content; function __construct() { $this-box = ''; } function box_title($title)

Re: [PHP] How to insert a file in a class?

2012-06-01 Thread LAMP
On Jun 1, 2012, at 8:00 AM, Gibbs wrote: On 01/06/12 13:41, LAMP wrote: Hi to all. Let's say there is a class class Box { var $box_title; var $box_content; function __construct() { $this-box = ''; } function box_title($title) { $this-title = $title;

Re: [PHP] How to insert a file in a class?

2012-06-01 Thread LAMP
On Jun 1, 2012, at 7:46 AM, David OBrien wrote: On Fri, Jun 1, 2012 at 8:41 AM, LAMP l...@afan.net wrote: Hi to all. Let's say there is a class class Box { var $box_title; var $box_content; function __construct() { $this-box = ''; }

Re: [PHP] How to insert a file in a class?

2012-06-01 Thread ma...@behnke.biz
LAMP l...@afan.net hat am 1. Juni 2012 um 14:41 geschrieben: include(file.php); $box-box_content($content); $box-make_box(); echo $box-get_box(); Wrong approach. Right is: $content = file_get_contents('file.php'); $box-box_content($content); Marco Behnke Dipl. Informatiker (FH), SAE

Re: [PHP] How to insert a file in a class?

2012-06-01 Thread LAMP
On Jun 1, 2012, at 8:11 AM, LAMP wrote: On Jun 1, 2012, at 7:46 AM, David OBrien wrote: On Fri, Jun 1, 2012 at 8:41 AM, LAMP l...@afan.net wrote: Hi to all. Let's say there is a class class Box { var $box_title; var $box_content; function __construct() {

[PHP] progress indicators in browsers for long running php scripts?

2012-06-01 Thread rene7705
Hi.. I've got several scripts now that may run for a long time; the self-test script for my htmlMicroscope, my serviceLog component when it calculates totals for a large number of hits, a curl script that is likely to one day crawl a hundred or so RSS urls in a single update, etc, etc. I'd like

[PHP] Exception Handling

2012-06-01 Thread James Colannino
Hey guys, Haven't posted in a long time... Happy Memorial Day! I have an issue with exception handling. I'm using a framework that throws a Database_Exception object. I was expecting catch (Exception $var) to be sufficient to catch this, but it doesn't. I have to do catch

Re: [PHP] Exception Handling

2012-06-01 Thread ma...@behnke.biz
James Colannino crankycycl...@gmail.com hat am 1. Juni 2012 um 16:25 geschrieben: Hey guys, Haven't posted in a long time... Happy Memorial Day! I have an issue with exception handling. I'm using a framework that throws a Database_Exception object. I was expecting catch (Exception $var)

RE: [PHP] Exception Handling

2012-06-01 Thread Mackintosh, Mike
-Original Message- From: James Colannino [mailto:crankycycl...@gmail.com] Sent: Friday, June 01, 2012 10:25 AM To: PHP-General List Subject: [PHP] Exception Handling Hey guys, Haven't posted in a long time... Happy Memorial Day! I have an issue with exception handling. I'm using a

Re: [PHP] Exception Handling

2012-06-01 Thread James Colannino
On 06/01/12 07:30, ma...@behnke.biz wrote: James Colanninocrankycycl...@gmail.com hat am 1. Juni 2012 um 16:25 geschrieben: Hey guys, Haven't posted in a long time... Happy Memorial Day! I have an issue with exception handling. I'm using a framework that throws a Database_Exception object.

Re: [PHP] Exception Handling

2012-06-01 Thread James Colannino
On 06/01/12 08:08, James Colannino wrote: On 06/01/12 07:30, ma...@behnke.biz wrote: James Colanninocrankycycl...@gmail.com hat am 1. Juni 2012 um 16:25 geschrieben: Hey guys, Haven't posted in a long time... Happy Memorial Day! I have an issue with exception handling. I'm using a

Re: [PHP] Exception Handling

2012-06-01 Thread James Colannino
On 06/01/12 07:32, Mackintosh, Mike wrote: Hi James, You would have to catch Database_Exception. It is also good practice to also always catch exception afterwards. Hey Mike, Thanks for the reply! I saw this comment in the documentation

RE: [PHP] Exception Handling

2012-06-01 Thread Mackintosh, Mike
-Original Message- From: James Colannino [mailto:crankycycl...@gmail.com] Sent: Friday, June 01, 2012 11:14 AM To: PHP-General List Subject: Re: [PHP] Exception Handling Hey Mike, Thanks for the reply! I saw this comment in the documentation

Re: [PHP] Exception Handling

2012-06-01 Thread FeIn
Maybe catch(Exception $e) should be catch(\Exception $e)? On Fri, Jun 1, 2012 at 5:25 PM, James Colannino crankycycl...@gmail.com wrote: Hey guys, Haven't posted in a long time...  Happy Memorial Day!  I have an issue with exception handling.  I'm using a framework that throws a

[PHP] Happy Diamond Jubilee everyone!

2012-06-01 Thread Ashley Sheridan
This is a bit of a shameless plug, but it is a Friday and a pretty special weekend over here. I recently got to work on something a bit fun at work in my spare time and they liked it so much that it got used internally to celebrate the jubilee weekend. This is the result

Re: [PHP] Happy Diamond Jubilee everyone!

2012-06-01 Thread Daniel Brown
On Fri, Jun 1, 2012 at 1:44 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: This is a bit of a shameless plug, but it is a Friday and a pretty special weekend over here. I recently got to work on something a bit fun at work in my spare time and they liked it so much that it got used

Re: [PHP] Exception Handling

2012-06-01 Thread Marco Behnke
Am 01.06.12 17:08, schrieb James Colannino: Hey Marco, Thanks for the reply! That was the first thing I checked. class Database_Exception extends \FuelException {} class Fuel_Exception extends \Exception {} It's extending Exception, as expected. Also, can you throw classes that don't

[PHP] Using default argument values in the middle of the argument list

2012-06-01 Thread 324706
Hi, as I accidentally found out that PHP allows default argument values to occur not only at the end of parameter list: function ( Classname $a, Classname $b = null, Classname $c ) ... Unfortunately, documentation does not state what is supposed to happen in such situation. It appears $b

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-06-01 Thread Govinda
we got off list, without meaning to, it seems. Here are the last few posts in the thread: On Fri, Jun 1, 2012 at 12:46 AM, Govinda govinda.webdnat...@gmail.com wrote: Perhaps you should spend some time looking for a better text editor for your OS. :) When the current tools I use does

Re: [PHP] Exception Handling

2012-06-01 Thread James Colannino
On Fri, Jun 1, 2012 at 12:51 PM, Marco Behnke ma...@behnke.biz wrote: Ah, I guess that is the problem. Your application framework uses namespaces. I guess you should try catch (\Exception $e) instead of catch (Exception $e) :-) Ah, that was probably it. Will try it out tonight to

Re: [PHP] Happy Diamond Jubilee everyone!

2012-06-01 Thread Jason Pruim
And this is when I realize that I still have so much to learn Looks amazing ash! Jason Pruim 352.234.3175 Google Voice 352.682.1073 Cell On Jun 1, 2012, at 1:44 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: This is a bit of a shameless plug, but it is a Friday and a pretty

Re: [PHP] Happy Diamond Jubilee everyone!

2012-06-01 Thread Paul M Foster
On Fri, Jun 01, 2012 at 06:44:17PM +0100, Ashley Sheridan wrote: This is a bit of a shameless plug, but it is a Friday and a pretty special weekend over here. I recently got to work on something a bit fun at work in my spare time and they liked it so much that it got used internally to

[PHP] Open Call: Official PHP Mirror

2012-06-01 Thread Daniel Brown
Greetings, all; Have you ever wanted to get directly involved in the PHP project in an official capacity, but don't have the time, resources, or knowledge required to contribute to the core, documentation, or other roles? Did you know about our Official Mirrors program? Starting

[PHP] Simple Email System (SES) Provider

2012-06-01 Thread Don Wieland
Hi all, I built a system in PHP/mySQL where a group of users post events, sign- up for events, change their arrival times, remove thier names from events, and post related notes on the events. Each time an action is done, an email is generated to the entire group that their has been a

Re: [PHP] Simple Email System (SES) Provider

2012-06-01 Thread Bastien Koert
On Fri, Jun 1, 2012 at 8:32 PM, Don Wieland d...@pointmade.net wrote: Hi all, I built a system in PHP/mySQL where a group of users post events, sign-up for events, change their arrival times, remove thier names from events, and post related notes on the events. Each time an action is done, an