Jump to content

Recommended Posts

Hi,

 

I'm trying to find a way to make itunes open (and stay open) by running a php script. So far I've tried...

 

shell_exec("C:\Program Files\iTunes\iTunes.exe");

exec("C:\\Program Files\\iTunes\\iTunes.exe");

system("C:\Program Files\iTunes\iTunes.exe");

 

shell_exec("C:\\Program Files\\iTunes\\iTunes.exe");

exec("C:\\Program Files\\iTunes\\iTunes.exe");

system("C:\\Program Files\\iTunes\\iTunes.exe");

 

none seem to work...any help please?

 

-lpg

Link to comment
https://forums.phpfreaks.com/topic/128455-opening-itunes-using-php/
Share on other sites

first question why? this way we can recomend some other options for what your doing. 

 

because im pretty sure its impossible and DarkWater 's comment just further pushed me to positive that php cant do this.

 

but php normally offers some sort of options for programming to allow an alternate approach to your idea

that would be a good reason why its not working =) thank u

 

well, itunes was my simple example...i'm actually trying to open another mp3 player (foobar2000) which accepts command line arguments.  Basically what happens is when foobar is done playing, it automatically closes...then a php script runs (automatically) which generates a new playlist.... then i want foobar to reopen and start playing the new playlist =/ i'm out of ideas

for iTunes try the protocal itpc ie

Header("Location: itpc://");

i don't think this will help but the itpc protocal is used for xml playlist including download but it for use with itunes only (as far as i know) of course the url should point to the xml with the itpc prefix but without the xml it will still open iTunes :P

 

for iTunes try the protocal itpc ie

Header("Location: itpc://");

i don't think this will help but the itpc protocal is used for xml playlist including download but it for use with itunes only (as far as i know) of course the url should point to the xml with the itpc prefix but without the xml it will still open iTunes :P

 

 

oh wow, thats great to know. how did you find the protocol for itunes? is there a way to find it for other programs? thank you

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.