ReGo Posted February 2, 2015 Share Posted February 2, 2015 Hey, where is show mta sdk password? define('SDK_IP', ""); define('SDK_PORT', "22003"); define('SDK_USER', "where is this?"); define('SDK_PASSWORD', "and this"); Link to comment
Jaysds1 Posted February 2, 2015 Share Posted February 2, 2015 What Module/SDK is this for? MTA-MySQL? MySQL? Link to comment
GTX Posted February 2, 2015 Share Posted February 2, 2015 $ip = "ip"; $port = port; $user = "user"; $pass = "pass"; $resname = "your_resource"; include("sdk/mta_sdk.php"); $mtaServer = new mta($ip,$port,$user,$pass); $resource = $mtaServer->getResource($resname); $table = $resource->call("your_function"); function your_function() -- Whatever end <export function="your_resource" type="server" http="true"/> This? Edit: To set a password, rewrite variables in your PHP SDK file @ lines 18-19 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now