When will Flare support PHP?

This forum is for all Flare issues not related to any of the other categories.
Post Reply
fadibitz
Propeller Head
Posts: 26
Joined: Tue Jun 26, 2012 4:16 am

When will Flare support PHP?

Post by fadibitz »

It would be amazing if Flare would render PHP, even if we had to install *AMP on our machines. This lack of support forces me to do so many things manually that I could otherwise automate, that I spend more time fiddling with minutiae than I do creating content.

Guys, you gotta do something about this. This is just crazy.

And if I'm wrong about this, please direct me to the bit that makes PHP work.
RamonS
Senior Propellus Maximus
Posts: 4293
Joined: Thu Feb 02, 2006 9:29 am
Location: The Electric City

Re: When will Flare support PHP?

Post by RamonS »

I agree that Flare would benefit a lot from PHP support. Put a feature request in: https://www.madcapsoftware.com/feedback ... quest.aspx
Richard Ferrell
Propellus Maximus
Posts: 840
Joined: Mon May 01, 2006 10:11 am
Location: Inside California

Re: When will Flare support PHP?

Post by Richard Ferrell »

The more people who request it, the better the chance it will be added in the future
Richard Ferrell

Certified Madcap Trainer
Image
fadibitz
Propeller Head
Posts: 26
Joined: Tue Jun 26, 2012 4:16 am

Re: When will Flare support PHP?

Post by fadibitz »

The subtext seems to be either that Flare devs do not lurk the forum, or that they don't realize web technology has progressed beyond JavaScript.
RamonS
Senior Propellus Maximus
Posts: 4293
Joined: Thu Feb 02, 2006 9:29 am
Location: The Electric City

Re: When will Flare support PHP?

Post by RamonS »

They don't lurk the forums. This is a peer to peer forum. While MadCap folks stop by frequently it is not guaranteed that they take on requests voiced here. Therefore, enter the feature request if you haven't already done so. That is the best way to get your word in.
fadibitz
Propeller Head
Posts: 26
Joined: Tue Jun 26, 2012 4:16 am

Re: When will Flare support PHP?

Post by fadibitz »

I submitted it directly after you suggested it yesterday, and included a number of pros and cons that they would need to consider. It was a good suggestion to request the feature, thanks.
doc_guy
Propellus Maximus
Posts: 1979
Joined: Tue Nov 28, 2006 11:18 am
Location: Crossroads of the West
Contact:

Re: When will Flare support PHP?

Post by doc_guy »

One issue to consider here is that you would want to make sure that PHP isn't a REQUIREMENT for Flare to work. I've worked with organizations that refuse to use PHP for security reasons, so it isn't even installed on our servers. (I'm not saying that is the RIGHT approach, just that you wouldn't want to alienate potential/existing Flare users who are unable to use PHP.)
Paul Pehrson
My Blog

Image
RamonS
Senior Propellus Maximus
Posts: 4293
Joined: Thu Feb 02, 2006 9:29 am
Location: The Electric City

Re: When will Flare support PHP?

Post by RamonS »

A proper PHP install is secure. Dozens of large media companies use PHP for their CMS. That is a dumb argument and can be applied to any piece of software. I doubt the ones who claim PHP is not secure dumped Windows that needs critical security patches every single month.
I know it isn't your opinion, but when I read stuff like that.... :twisted:
Thomas Tregner
Propeller Head
Posts: 56
Joined: Mon Apr 05, 2010 6:51 pm
Location: Charleston
Contact:

Re: When will Flare support PHP?

Post by Thomas Tregner »

What kind of support for PHP are you requesting? I don't see how WebHelp or HTML5 outputs conflict with a web server running PHP or that those outputs cannot use PHP. I've tried it. WebHelp or HTML5 worked fine on a web server running PHP and the scripts I inserted were run by the server as expected. Not to mention that you can change the file extension for topic files to PHP if that is a requirement. Or do you mean that you want any use of JavaScript replaced with PHP?
mjacober
Propeller Head
Posts: 10
Joined: Mon Jun 14, 2010 9:18 am

Re: When will Flare support PHP?

Post by mjacober »

Were you able to change the topic extension and insert the PHP script from within the Flare UI, or did you do that in the output files?

Thanks,
Mark
Thomas Tregner
Propeller Head
Posts: 56
Joined: Mon Apr 05, 2010 6:51 pm
Location: Charleston
Contact:

Re: When will Flare support PHP?

Post by Thomas Tregner »

mjacober wrote:Were you able to change the topic extension and insert the PHP script from within the Flare UI, or did you do that in the output files?

Thanks,
Mark
Both can be done from the Flare UI.

With an HTML5 target open in the Target Editor, on the Advanced tab under Output Options, there is a Use custom file extension for topics option. You can check that and enter "php". All the files that would normally end with .htm will be built to end with .php.

To insert php, you can switch the Topic Editor from XML Editor to Text Editor and insert it in the markup. In the XML Editor, it will appear as <php></php> even though the tag is <?php ?>. You won't see the code in the XML Editor but you can still edit it in the Text Editor. The code is included as-is in the generated output.

BTW, the editor flags the short tag syntax <? ?> as invalid. Also the syntax coloring in the Text Editor doesn't always handle the tag.
RamonS
Senior Propellus Maximus
Posts: 4293
Joined: Thu Feb 02, 2006 9:29 am
Location: The Electric City

Re: When will Flare support PHP?

Post by RamonS »

Thomas Tregner wrote:To insert php, you can switch the Topic Editor from XML Editor to Text Editor and insert it in the markup. In the XML Editor, it will appear as <php></php> even though the tag is <?php ?>. You won't see the code in the XML Editor but you can still edit it in the Text Editor. The code is included as-is in the generated output.
That wasn't always the case. Flare used to strip parts and destroy the rest causing the code to be totally unusable. I wonder in which version that changed. Back then I reported as a bug and so far did not get word that it was fixed, but apparently it was.
Thomas Tregner
Propeller Head
Posts: 56
Joined: Mon Apr 05, 2010 6:51 pm
Location: Charleston
Contact:

Re: When will Flare support PHP?

Post by Thomas Tregner »

RamonS wrote:That wasn't always the case. Flare used to strip parts and destroy the rest causing the code to be totally unusable. I wonder in which version that changed. Back then I reported as a bug and so far did not get word that it was fixed, but apparently it was.
I haven't encountered that. But that doesn't mean it doesn't still happen. Do you have an old test project laying around? I also noticed that the Text Editor doesn't like short tag syntax and that single quotes break the syntax coloring. But I just filed a bug for those.
RamonS
Senior Propellus Maximus
Posts: 4293
Joined: Thu Feb 02, 2006 9:29 am
Location: The Electric City

Re: When will Flare support PHP?

Post by RamonS »

I doubt that I have a test project anywhere. If I happen to have some time available I'll give it another try.
mjacober
Propeller Head
Posts: 10
Joined: Mon Jun 14, 2010 9:18 am

Re: When will Flare support PHP?

Post by mjacober »

Thanks for the help. I was able to the use php file extension option and the php entered into the text editor ran as expected on the server. I did run into a couple of issues in the use of double quotes that Flare called 'Illegal Syntax'. Changing to single quotes did the trick. And, I was not able to see any indication of the php in th XML editor. All minor stuff, though: It's working fine. Thanks again.

Mark
Post Reply