vamos Posted January 17, 2013 Share Posted January 17, 2013 Hello, I've got a ask, I've make my personal reboot script for dedicated but I got a problem, I want know how can I make something like it: {$dedicatedip} on the php ? Does i just need to put: {php} if(!($con = ssh2_connect("$dedicatedip", 22))) I've tryed this but I've got a white page then does I need "require" an other php file ? Thanks in advance ! 0 Quote Link to comment Share on other sites More sharing options...
vamos Posted January 17, 2013 Author Share Posted January 17, 2013 Hello, I've got a ask, I've make my personal reboot script for dedicated but I got a problem, I want know how can I make something like it: {$dedicatedip} on the php ?Does i just need to put: {php} if(!($con = ssh2_connect("$dedicatedip", 22))) I've tryed this but I've got a white page then does I need "require" an other php file ? Thanks in advance ! Can someone try to help me ?... 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted January 17, 2013 Share Posted January 17, 2013 dont know if this will help or not, i dont code alot in the templates but you do know that in php for if statement it is not = it is == so try $con == ssh2........ 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted January 18, 2013 Share Posted January 18, 2013 Probably better as the identical operator === ref: http://php.net/manual/en/language.operators.comparison.php 0 Quote Link to comment Share on other sites More sharing options...
vamos Posted January 21, 2013 Author Share Posted January 21, 2013 The problem is not about $con == ssh2........ this script work perfect, I just need find how to use a TPL request to the php ? thanks 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.