I want to call an external php script with applescript and alfred. Currently I open the Safari with the url to the php script. This is very annoying. Is there a way to call the php script without open the Safari?
Best regards,
emha
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PHP scripts / commands can be ran from a standard shell prompt:
Source: here
EDIT:
You can use cURL from the shell, and dump the output. This is kind of like just pinging your script, which I’m guessing is what you want to do. Just replace
http://www.google.comwith the path to your script. And if you omit>/dev/null 2>&1, you can get cURL’s output. This is nice because you can add flags to curl to show headers, do post / get, etc.