|
#1
| |||
| |||
| [HOW-TO] Control iTunes Remotely via Web Browser (MAC ONLY) HOW-TO: NOTE: YOU CAN USE ANY BROWSER ON ANY OS TO CONTROL iTunes BUT YOU CAN ONLY SET IT UP ON MAC - THIS WILL NOT WORK ON WINDOWS CAUSE YOU DON'T HAVE THE UNIX COMMANDS TO CONTROL IT. WARNING: THIS MAKES SECURITY RISKS ON YOUR COMPUTER! Step 1 - Modify httpd.conf 1) Open Terminal and locate to the patch /etc/httpd type in sudo pico httpd.conf A lot of these things you'll have to find within httpd.conf - but after you do one, it'll be next down the line: Take the # off of LoadModule php4_module libexec/httpd/libphp4.so Take the # off of AddModule mod_php4.c Find: # User www Group www and change it to # User your_short_username #mine is sbarn Group staff Find: <IfModule mod_dir.c> DirectoryIndex index.html </IfModule> Add a space after index.html and add index.php Hit Control O to bring up the save file at the bottom, hit enter then control X to exit. Next type: sudo apachectl graceful Now for Step 2 - Creating the PHP File 2)I'm changing this site so you guys can make it just that awesome, here's the code that you place in the index.php - I cut the image from iTunes via Command + Shift + 4 - here's the entire code: PHP Code: $data = file_get_contents("/Library/WebServer/Documents/volume.txt"); $logfile = fopen("/Library/WebServer/Documents/volume.txt",'w'); Now in your terminal, type this (you may need to change /Library... to the location of your web server: cd /Library/WebServer/Documents pico volume.txt Control+O Enter Control+X Now type in: sudo chmod 777 volume.txt Step 3 Test to see if it works: 3) Type into Safari, or whatever browser you want to use: ip_address/index.php YAY IT SHOULD WORK =D, here's a copy of the files I used down at the bottom or top, its in a zip file. The volume icons control the volume - the next and previous control the track - the play button controls play and pause. OH MY GOSH - I FORGOT TO GIVE CREDIT WHERE CREDIT IS DUE: I found out how to do this here: http://www.whatsmyip.org/itunesremote/
__________________ TechRestore - Best used Mac Laptop site ever Ahhh only being 17 and knowing Mac's better than my family Last edited by slooksterpsv; July 20th, 2005 at 02:12 PM. |