PHP Scripting - Execute CLI Job With Key

Status
This content is read-only, or is not open for further replies.

Foxtrek_64

Guest
offline
Hi all,

Hopefully someone here can help me out with some PHP scripting. What need is fairly basic, but PHP is still fairly alien to me.

Essentially, I want to be able to have an external service, in my case EasyCron, make a call to a php file and have it execute the xf:run-jobs activity, but I'd like it to be protected by a key so not just anyone can do this.

Psuedo-code below:
C#:

Code:
private static readonly string keyValue = "1234";

public HttpResponse Execute(string key)
{...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom