I have many applications that run on my site and they all work with being able to pull in php include files, so that when I want to make a change to the navigation, footer, design, etc, I can change the include file, and it filters down through the entire site and all applications.
I have been unable to pull my php includes in to phpMyFAQ.
Has anyone been able to do this? If so, how?
Use php includes?
Moderator: Thorsten
Re: Use php includes?
I should note, I'm using 2.6.2
Re: Use php includes?
As I recall includes were at one time allowed but then removed to avoid security problems. I just change the template when I change the includes so it all matches. A little extra work. Perhaps one day a secure way to use include files will be found.
Re: Use php includes?
Hi
I have been trying for a while to achieve the exact same thing - so I can pull in my site wide footer.
I achieved this on another script similar to the FAQ one by using the following code
Alas it did not work in phpMyFAQ - you could try it though.
I have been trying for a while to achieve the exact same thing - so I can pull in my site wide footer.
I achieved this on another script similar to the FAQ one by using the following code
Code: Select all
{include_php file='../inc-footer.html'}
Rocky.
Re: Use php includes?
Hi,
we don't support PHP includes in our templates due to security risks.
bye
Thorsten
we don't support PHP includes in our templates due to security risks.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Use php includes?
Hi,
is there a way to implement php code in a template?
cu 40k
is there a way to implement php code in a template?
cu 40k
Re: Use php includes?
Hi,
no.
bye
Thorsten
no.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Use php includes?
My work around for this was to use a simple Ajax call to render a php file then inject the resulting content into a div.
Unfortunately I work in MooTools rather than jQuery, so I had to disable a great deal of front end functionality, but I know this is possible in jQuery too.
Unfortunately I work in MooTools rather than jQuery, so I had to disable a great deal of front end functionality, but I know this is possible in jQuery too.
When will these idiots learn that there's only three dots in an ellipsis.........