Jump to content

need to identify a system on lan


dragon_sa

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.