Web Hosting Talk







View Full Version : WHMCS PHP Question?


KMyers
02-22-2010, 08:49 PM
Greetings,
I have a simple question. I am trying to make a custom page for WHMCS and have gone through the steps of creating a .php page and a .tpl page and can see the content just fine.

How would I add content to that page, such as a simple phpinfo() command?

UnderHost
02-22-2010, 09:37 PM
Did you try to add it directly on .tpl ? it should work just fine.

KMyers
02-22-2010, 10:25 PM
Did you try to add it directly on .tpl ? it should work just fine.

Greetings,Here are the contents of the tpl. However it just shows a blank page with my header and footer


<?php
phpinfo();
?>

UnderHost
02-22-2010, 10:44 PM
Greetings,Here are the contents of the tpl. However it just shows a blank page with my header and footer





Hi, try the following i've tried and it's work great.

https://customerpanel.org/default.php

{php}phpinfo();{/php}

KMyers
02-22-2010, 11:22 PM
Hi, try the following i've tried and it's work great.

https://customerpanel.org/default.php

{php}phpinfo();{/php}


Hello,
I did not notice it was a {php} rather then <?php. I owe you a beer:homer: