lpglycerine Posted October 14, 2008 Share Posted October 14, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/128455-opening-itunes-using-php/ Share on other sites More sharing options...
DarkWater Posted October 14, 2008 Share Posted October 14, 2008 I'm 99.99...% sure that it's completely impossible to have PHP open up GUI applications. Hell, I'm so sure that you could consider it 100% sure. Quote Link to comment https://forums.phpfreaks.com/topic/128455-opening-itunes-using-php/#findComment-665672 Share on other sites More sharing options...
dropfaith Posted October 14, 2008 Share Posted October 14, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/128455-opening-itunes-using-php/#findComment-665675 Share on other sites More sharing options...
lpglycerine Posted October 14, 2008 Author Share Posted October 14, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/128455-opening-itunes-using-php/#findComment-665678 Share on other sites More sharing options...
CroNiX Posted October 15, 2008 Share Posted October 15, 2008 larger playlist Quote Link to comment https://forums.phpfreaks.com/topic/128455-opening-itunes-using-php/#findComment-665689 Share on other sites More sharing options...
MadTechie Posted October 15, 2008 Share Posted October 15, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/128455-opening-itunes-using-php/#findComment-665702 Share on other sites More sharing options...
lpglycerine Posted October 15, 2008 Author Share Posted October 15, 2008 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 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 Quote Link to comment https://forums.phpfreaks.com/topic/128455-opening-itunes-using-php/#findComment-666564 Share on other sites More sharing options...
MadTechie Posted October 15, 2008 Share Posted October 15, 2008 its the URI protocal added when you install iTunes.. you can find them on your PC but i don't know of a list Quote Link to comment https://forums.phpfreaks.com/topic/128455-opening-itunes-using-php/#findComment-666626 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.