image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old June 5th, 2007, 05:47 PM
Registered User
 
Join Date: Jan 2006
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Moptop is on a distinguished road
PHP and the terminal.

How can one run commands in the mac terminal in a PHP script?


Edit: Im using

Quote:
exec("osascript -e 'tell app \"iTunes\" to next track'",$output);
It works fine (Makes itunes go to the next song) from php studio, but doesn't work from MAMP or Apache.


Edit again: It works in macs built in server, but not mamp.

Last edited by Moptop; June 5th, 2007 at 06:26 PM.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 09:11 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.