dragon_sa Posted December 8, 2009 Share Posted December 8, 2009 I have been working on a php script which reads directories and generates a movie catalog of all the movies in the sub directories, this then creates links directly to the avi files, using i.e and wmp as the helper they play immediately when clicked, as long as I specify the link as (file:////host/dir/movie.avi). I have it working beautifully on my network on all computers except the computer that hosts the movies, which needs the path to be local to it self. The problem is I need a way of determining what machine is using the script, this will enable me to change the file location link to make it work for the host machine. I have tried generating .asx files with dynamic php content as alternative without success. There is a javascript that gives me the actual ip address of the users machine but that is client side and happens after the serverside php where I would want to change the link name. Any ideas or ways to tackle this would be very much appreciated I have been going around in circles trying to get one of the options to work so direct play works on all machines. Link to comment https://forums.phpfreaks.com/topic/184391-need-to-identify-a-system-on-lan/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.