You're right, and I made some assumptions about what was being asked too - namely that the OP was attempting to generate HTML "subfile" tables using PHP in its original form. By this I mean embedding SQL statements in a spaghetti of HTML to render the front-end which, IMO, is absolutely not the right way to go about creating a modern web application. It's also fair to say that PHP has moved on significantly from when I last used it but my understanding is that it can be used to write the back-end only code also but even here I would ask why you'd do that, especially if you are using it to write business logic. If the purpose is to create a pure RESTful JSON API (which it should be I think) then you might as well use the power of SQL and express your business logic behind stored procedures in the native language of your choice and use IWS or some slim Node/PHP layer to connect the webserver and the stored procedures. Not only does this minimise the learning curve and keep most people on more familiar territory, it's more secure in my view. We use a Java interface for this that I co-wrote and I have also written a Node version too (albeit for MariaDB and Postgres not yet for IBM i), which is no more than a few dozen lines of code. On our platform I don't see any benefit to writing backend logic using Node, PHP or any other type of "non-native" language when everything can be done using SQL and tools we already know.

For the front end it's a different story, I love the SPA architecture and I think it's about as close to the elusive split between a client/server that we've come up with. That said, the learning curve is very steep, we use Angular, and I'm happy with that choice still but I won't pretend it's not difficult to get to grips with. Angular JS is what Angular was originally called before it went through a major rewrite for version 2, because it was such a radical change (and rewritten using Typescript) it was rebranded, with the original Angular being referred to as "AngularJS" and the new version simply "Angular" - AngularJS is dead and deprecated.


From: WEB400 <web400-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx>
Sent: 25 May 2020 14:07
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxxxxxxxx>
Subject: Re: [WEB400] PHP webform as an alternative for subfiles

Hi Tim

Your assertion, for me, needs more to be said, more to say just what you
mean - my first reaction was to ask, is it PHP vs Angular (or one of the
other frameworks you list), absolutely? I did a little googling and
found several places saying they serve different purposes. PHP the
back-end, Angular the front-end. Yes - and I step into realms I've not
visited very much - PHP __can__ be used for the presentation - but it
doesn't have to be, it can be used to create REST APIs - as I
understand it, Angular, or whatever is the latest flavor-of-the-year,
doesn't create the APIs, it consumes them.

Now maybe some other language is more suitable for the back-end -
node.js comes to mind, as it uses JavaScript and the front-ends might,
as well - I see Angular called AngularJS (is that a different animal or
is it just a kind of rename?).

On a side note about this thread - it is maybe best if we break it off,
some concern has been raised as to the validity of the original post.
Nonetheless, the topic has moved into interesting territories.


On 5/25/2020 3:29 AM, Tim Fathers wrote:
Don't bother with PHP, learn one of the front-end frameworks like Angular, React or Vue and make your application a Single Page Application (SPA).


From: WEB400 <web400-bounces@xxxxxxxxxxxxxxxxxx> on behalf of techie21 IT <techiei876@xxxxxxxxx>
Sent: 22 May 2020 18:04
To: web400@xxxxxxxxxxxxxxxxxx <web400@xxxxxxxxxxxxxxxxxx>
Subject: [WEB400] PHP webform as an alternative for subfiles


However webpages can not replace subfiles even though a lot of similar
functionality could be achieved using php so for the same i was trying to
solve one of the webform related problem using PHP.
Below is the link for the same so need expert's guidance to solve it

Thanks much...
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives

This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.