Make your own free website on Tripod.com

Slookytech

How-To
How-To iTunes Remote via Web Browser
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:
 
DirectoryIndex index.html
 
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:

--notice what I commented out - read what the lines say, if you're webs server isn't where I have it (via /Library/WebServer/Documents) you need to change a few things then 2 lines that say that thing, change it to the location of your server, these lines:
$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 is a link to the image I used for the functions: MISSING RIGHT NOW
 
The volume icons control the volume - the next and previous control the track - the play button controls play and pause.
 
I found out how to do this here: http://www.whatsmyip.org/itunesremote/

 

 

Updated August 9th 2005