[FX.php List] Heads up: Bug in PHPMailer with PHP version in FM 11 Web Publishing

Dale Bengston dale.bengston at gmail.com
Wed Jan 23 19:34:50 MST 2013


Malcolm and Webko,

Yes on all fronts. I am done rolling my own php frameworks. Cake was not an easy thing to learn at the alarming rate my synapses are stiffening, but it was worth the effort to learn and implement a true MVC framework with a real security model.

The the built-ins - like mailing and security and form construction - are great. Beyond that, Cake 2.0 has excellent integration with jQuery, which has sped up my AJAX coding significantly. And it's been easy to extend Cake with the typical tools of our trade like tcpdf and PHPExcel. And now (hooray!) FX.php again.

Okay, so Cake.php is here:
http://cakephp.org [look for the big download button]

And the latest FMCakeMix is here:
https://github.com/matsuo/FMCakeMix [developer claims it works with FMS12, I'm using it with FMS11]

And we all know where FX.php is, but here's the latest release:
https://github.com/yodarunamok/fxphp


When I built my FileMaker test, I started from scratch. I downloaded Cake.php 2.2.5. And followed the instructions for installing here:
http://book.cakephp.org/2.0/en/getting-started.html

Then I used the instructions on the FMCakeMix github page (look for the User Guide.pdf) to put FMCakeMix and FX.php in the right place, set up the database connection, etc. Then I replicated a query from my last remaining (c 2005) FMP FX site. It was all quite easy compared to some installations I've done. In fact, it worked on the first try and I got records back. Instant gratification!

Some notes: 

* I used a different syntax to instantiate FX.php in FMCakeMix so I didn't have to have all the FX.php files loose in my Vendors folder, but could put them in a sub-folder.

* I figured out how to override the default layout so I could use a different layout for each Controller action if I want to.

* My second test query contained a neq operator, so it took me a while to figure out how to make that work - there is no documentation of this feature, and it doesn't work using the Cake default method.

I won't bore the list with extra details, but if you need more on these tweaks I'll put them in subsequent messages.

Hope this helps,
Dale


On Jan 23, 2013, at 3:52 PM, Tim 'Webko' Booth <tim.webko at gmail.com> wrote:

> Yeah, I'd love to use Cake instead of handrolling and rerolling stuff - been meaning to redo a couple of websites of my own to use a framework, proper OO PHP, Ajax etc etc etc...
> 
> On 24 January 2013 08:38, Malcolm Fitzgerald <malcolm at notyourhomework.net> wrote:
> That's great. Care to share your setup instructions?
> 
> I was looking at Cake/FM a while back and the fact that it was stuck in the past discouraged me.
> 
> Malcolm
> 
> 
> On 24/01/2013, at 4:05 AM, Dale Bengston wrote:
> 
> > On a related note, yesterday I got Cake.php v2.5.5 talking to FileMaker via FMCakeMix and FX.php. Until very recently, FMCakeMix had been stalled out on Cake.php v1.3.
> >
> > I'm doing all new development with Cake.php, so this is great news. Now I can develop for MySQL, MSSQL and FMP within a single rapid-development framework. And it uses FX.php for the FMP part. Neat!
> >
> > Dale
> >
> > On Jan 23, 2013, at 3:52 AM, Leo R. Lundgren <leo at finalresort.org> wrote:
> >
> >> I was mainly thinking about its mail features, now that you spoke about PHPMailer being problematic. I never liked PHPMailer, and while I am happy with SwiftMailer I do agree that it is slightly overengineered. Sp why not check this one out, I figured.
> >>
> >> 23 jan 2013 kl. 10.51 skrev Leo R. Lundgren:
> >>
> >>> Nope, but I think I'm going to try it some day, I don't see a reason why not :) But I haven't looked at the code of it yet or anything.
> >>>
> >>> 23 jan 2013 kl. 04.40 skrev Jonathan Schwartz:
> >>>
> >>>> Interesting. Do you use it?
> >>>>
> >>>> Jonathan Schwartz
> >>>> Exit 445 Group
> >>>> 415-370-5011
> >>>>
> >>>> On Jan 22, 2013, at 3:44 PM, "Leo R. Lundgren" <leo at finalresort.org> wrote:
> >>>>
> >>>>> Here's something you guys might find interesting:  http://eden.openovate.com/
> >>>>>
> >>>>>
> >>>>> 23 jan 2013 kl. 00.15 skrev Jonathan Schwartz:
> >>>>>
> >>>>>> Well, this one sucked 2 days of my time trying to resolve.....
> >>>>>>
> >>>>>> The current version of PHPMailer (5.2.2) has a defective function when run with PHP 5.3.1, the PHP version that is installed by FMS 11 Web Publishing.  The error is discussed here:
> >>>>>> http://code.google.com/a/apache-extras.org/p/phpmailer/issues/detail?id=124
> >>>>>>
> >>>>>> The defective function is a preg_match inside class.phpmailer.php that evaluates where or not a submitted email is valid or not.  With the bug, it fails everything.
> >>>>>>
> >>>>>> The solution is to use an older version of PHPMailer or a newer version of PHP.
> >>>>>>
> >>>>>> Hope that helps.
> >>>>>>
> >>>>>> Jonathan
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> Jonathan Schwartz
> >>>>>> Exit 445 Group
> >>>>>> jonathan at exit445.com
> >>>>>> www.exit445.com
> >>>>>> cell: 415-370-5011
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> FX.php_List mailing list
> >>>>>> FX.php_List at mail.iviking.org
> >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list
> >>>>>
> >>>>>
> >>>>>
> >>>>> -|
> >>>>>
> >>>>> _______________________________________________
> >>>>> FX.php_List mailing list
> >>>>> FX.php_List at mail.iviking.org
> >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list
> >>>> _______________________________________________
> >>>> FX.php_List mailing list
> >>>> FX.php_List at mail.iviking.org
> >>>> http://www.iviking.org/mailman/listinfo/fx.php_list
> >>>
> >>>
> >>>
> >>> -|
> >>>
> >>> _______________________________________________
> >>> FX.php_List mailing list
> >>> FX.php_List at mail.iviking.org
> >>> http://www.iviking.org/mailman/listinfo/fx.php_list
> >>
> >>
> >>
> >> -|
> >>
> >> _______________________________________________
> >> FX.php_List mailing list
> >> FX.php_List at mail.iviking.org
> >> http://www.iviking.org/mailman/listinfo/fx.php_list
> >
> > _______________________________________________
> > FX.php_List mailing list
> > FX.php_List at mail.iviking.org
> > http://www.iviking.org/mailman/listinfo/fx.php_list
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130123/8b3583d5/attachment.html


More information about the FX.php_List mailing list