Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

145
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda