Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Simon Harvey Posted February 13, 2018 Posted February 13, 2018 I'm sorry if this is answered somewhere already, I'm sure it is, I just can't find it! What is the correct way to include a PHP file within a template file? I have tried this: {{include('../include/myfile.php');}} This includes the correct file but the rest of the page is not displayed, instead there are lots of funny characters (see screenshot). Is anyone able to offer any suggestions? Thanks a lot.
newbie LAC Posted February 14, 2018 Posted February 14, 2018 Quote {insert="$filename"} Includes a PHP script file Parameters$filename - The filename of the PHP file to include. The output of the file is buffered and output.
Simon Harvey Posted February 14, 2018 Author Posted February 14, 2018 Great, thanks a lot, that's exactly what I needed.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.