Topic: How to integrate PHP "include" files using Gulp (or even w3-include-html, etc)?

infin80 free asked 3 years ago


Expected behavior Expecting php files to work properly with gulp & MDBootstrap Pro

Actual behavior PHP files are downloaded. Not displayed

Resources (screenshots, code snippets etc.)



You cannot just run PHP files in your browser even if they are served by the Node.js server. It's because your server can't recognize PHP files and don't know what to do with them that's why they'll be downloaded. To make it properly, you'll need to configure your server to handle PHP files. This is doable, but it's not recommended to render PHP files using the Node.js server. We also do not support that way


infin80 free commented 3 years ago

I do run PHP on my localhost server but I just wish to understand what is not supported...running the Gulp MDB-Pro using PHP? Or are you saying it's not possible?

The "w3-include-html" seems to be working so I guess that is what you suggest in order to utilize includes?



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.10
  • Device: Desktop
  • Browser: Chrome
  • OS: Mac
  • Provided sample code: No
  • Provided link: No