Open application on computer using web server and PHP

Hi I'm trying to launch an application on my computer from my phone using a web server and PHP I'm using XAMPP on mac here is my PHP:

<?php echo shell_exec("/Users/gabepersaud/Desktop/ 2>&1");?>

this returns: "sh: 1: /Users/gabepersaud/Desktop/ not found"

I believe my problem is that the command is executing on the server side and not locally. makdir works and I am able to create new folders on the server. Just not sure how to access local machine

Someone asked a similar question but I was unable to understand the solution: Run a script on a computer from php Any pointers would be greatly appreciated!

Read more here:

Content Attribution

This content was originally published by Gabe Persaud at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: