Re: Integration of Applescript with PHP or Apache
Re: Integration of Applescript with PHP or Apache
- Subject: Re: Integration of Applescript with PHP or Apache
- From: James Sentman <email@hidden>
- Date: Fri, 22 Feb 2002 20:22:19 -0500
I'm trying to execute a script from a webpage, that at the moment is created
via PHP. My preference is to build a PHP extension that can keep the
script resident and execute it when called, but there seems to be NOBODY
with Mac OS X experience really adding onto PHP.
Right now there is no way to call an applescript from a PHP script.
There is a bug (feature) of the user that your webserver runs as that
it has no access to the display and other UI. So when a normal
cocoa/carbon app such as osascript is launched from a php or perl
script it will dump a crash report into the console.
If you want to go the acgi route you can try out:
http://www.sentman.com/acgi
which is my program to enable old style acgi scripts on OSX with
Apache. You can certainly write your program in apple script there
and hit it via PHP to get the return. PHP is quite good at that and
it gets you around the problems of starting a script or program when
running directly as the web user.
Drop me a note personally if I can help you with the acgi dispatcher program.
Thanks,
James
--
_________________________________________________________________________
James Sentman <email@hidden>
http://www.sentman.com
Enterprise server monitoring with:
http://whistleblower.sentman.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.