PHP Scripting - Execute CLI Job With Key

  • Thread starter Thread starter Foxtrek_64
  • Start date Start date

Foxtrek_64

Guest
Member
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:

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

public HttpResponse Execute(string key)
{...
...

Read more

Continue reading...
 
Top