Skip to main content
Legend
July 9, 2022
Question

Website programming languages - PHP, Node and Bootstrap [from: including one html file in another?]

  • July 9, 2022
  • 2 replies
  • 740 views
quote

now a more traditional old fashion method, using PHP includes....

so for understanding the principle

https://www.php.net/manual/en/function.include.php

and adapting it to the content of the pages

https://www.phptutorial.net/php-tutorial/php-include-file/

there too I hear the rumbling of the base... at least on the old fashion aspect </joke>

 


By @L e n a

 

No rumblings here. php is still the easiest/simplest and most popular of server languages and its easy to learn. In the majority of cases its all you are likely to need rather than bulging your website folder up with a lot of bloated node modules that you have zero idea what they do. Gotta luv the new breed, they have no idea what they are using or what it does so long as it does it, makes be want to cry or die laughing at the complex mess they create and get themselves into. I guess its all about trying to salvage some kind of reputation that web-development needs to be overly-complex to work!

    This topic has been closed for replies.

    2 replies

    Liam Dilley
    Inspiring
    July 11, 2022

    @osgood_ wrote:

    php is still the easiest/simplest and most popular of server languages



    Yes but I would say only because of Wordpress and Facebook. Take those away and it would be 4th/5th.

    osgood_Author
    Legend
    July 11, 2022

    You could use that argument for most situations. Would Bootstrap be as popular if you took into account how many amatuer web developers use it. It is what it is, you only have to Google what's currently the most popular server language which runs the majority of websites on the Internet. The figures suggest it isn't going to change anytime soon. Last time l looked node hadn't even reached 2% market share, whist php had something like 78% market share, a huge gap.

     

    What l object to in terms of developers using overly complex solutions is when they aren't necessary. It seems the mentality these days is to start  by deploying  npm packages and json package files for some simple static tutorial which only uses html, css and vanilla javascript, that's just overkill. And of course all the mugs that follow that tutorial follow suit which eventually gets us to where we are today, a lot of bloat and complexity for no gain.

    BenPleysier
    Community Expert
    Community Expert
    July 11, 2022

    You are getting confused; NodeJS is a runtime environment, PHP is a pre-processor language. The two cannot be compared.

     

    Maybe not  all websites use NodeJS, that is a matter of choice and knowledge of the developer. But NodeJS is so much more than a website, just Bing the subject.

     

    Want more? Try running Dreamweaver without NodeJS.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    BenPleysier
    Community Expert
    Community Expert
    July 10, 2022
    quote

    In the majority of cases its all you are likely to need rather than bulging your website folder up with a lot of bloated node modules that you have zero idea what they do.


    By @osgood_

     

    From this, should I deduce that Apache/PHP does not take up space? And that the supporting files, that do not take up any space, are well known what they do?

     

     

    Just to be clear, you can tell me exactly what "access_compat_module" does.

     

    quote

    Gotta luv the new breed, they have no idea what they are using or what it does so long as it does it, makes be want to cry or die laughing at the complex mess they create and get themselves into. I guess its all about trying to salvage some kind of reputation that web-development needs to be overly-complex to work!


    By @osgood_

     

    I guess that the only ones that are laughing are those that are stuck in the past. As far as the complexity is concerned, as we in this forum keep saying, use the right tools. A hammer alone does not build a house.

     

    The following is a example of a website that has a template that automatically populates the common parts of a page, as requested by the OP.

    https://www.youtube.com/watch?v=ee4iwQpUQ2U

     

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    osgood_Author
    Legend
    July 10, 2022

    Not in my website folder............thats the difference. Now if node was similar and you didn't have to jump through hoops just to set up routing, didn't have to jump through hoops to set up the file, folder structure that YOU wanted, didn't have to jump through hoops to import the modules required for node to be of any use........l just might take it more seriously. I dont believe in making things more complex, harder or more bloated than they actually should be or need to be.

     

    As for stuck in the past does that refer to you too? Bootstrap doesnt even support css grid......consider that.

     

    I totally agree when you say use the right tools, it's surprising how many dont and proceed to make it complex.

     

    Still to be honest the ever increasing popularity of Tailwind is driving me nuts. Can anyone with experience explain how it can possibly be enjoyable  to work with code which has multiple inline css styling, front end framework directives, backend directives, svg code bloat, dozens of css and script tags attached.........grief its must be a total nightmare. 

    BenPleysier
    Community Expert
    Community Expert
    July 10, 2022

     

    I gues this image covers it all

     

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!