Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

143
Views
WHMCS PHP Include

I am trying to include analytic.php into head.tpl in WHMCS but it keep giving me a error.

Analytic.php location : root/analytic.php

Head.tpl location : root/whmcs/template/six/includes/head.tpl

I saw on google, WHMCS accept smarty PHP, so i am trying to include with Smarty PHP Code in head.tpl.

Code :

{include_php file="../../../../analytic.php"};

Also Tried :

{php}{include_php file="../../../../analytic.php"};{/php}

Note : I have already enabled Smarty PHP in WHMCS

But when i am entering the code, the WHMCS site get stop working :(. What the solution to include PHP file inside WHMCS or .tpl file?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

include_php is depreced as of Smarty 3.1. {php}NO!{include_php file="../../../../analytic.php"};NO!{/php} is totally wrong.

you should create 'analytics.tpl' file and then include it {include}, file can contain analytics script.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!