StORE Posted January 10, 2013 Share Posted January 10, 2013 Hi all I have this functions but not work [code] {php}function check_sv($ipaddress) { $http = @ fsockopen($ipaddress, 80, $errno, $errstr, 5); if($http) { $status = "Online"; }else { $status = "Offline"; } return $status; }{/php} {$status} [/code] 0 Quote Link to comment Share on other sites More sharing options...
WHMCS JamesX Posted January 10, 2013 Share Posted January 10, 2013 First problem... you've defined the function, but aren't actually calling it though. Unless you have a specific need for it to be a function, simply put the code that you want to run within the {php} tags and end it by setting a smarty variable which you can then reference within the template itself. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.