How would I set a var in a script with something that is returned from a php file?
This is for authorization by the way.
How would I send the value to scar too?
How would I set a var in a script with something that is returned from a php file?
This is for authorization by the way.
How would I send the value to scar too?
Make the PHP page output what you want to send to SCAR, and make SCAR read the out put page.
Example:
PHP
SCARPHP Code:if (isset($_POST['FromScar'])) {
die("True");
} else {
die("False");
}
SCAR Code:procedure PostPHP;
var Page: Integer;
Return: string;
begin
Page := InitializeHTTPClient(False, False);
AddPostVariable(ProggieFile, 'FromScar', 'test');
Return := PostHTTPPageEx(ProggieFile, 'http://yourdomain.com/file.php');
end;
~NS
There are currently 1 users browsing this thread. (0 members and 1 guests)