Jurik Posted October 17, 2006 Share Posted October 17, 2006 Hey guys, ive been creating a front end system of a video library for the place I am working at. I got it all working until I relised that I have to get the videos to be saved on a diffrent server on the network altogether. At the moment my working code is $target_path = "videos\";Now I want to change this path so that it goes to the correct server and then the folder something like$target_path = "\\PCname\folderondrive\";Is this possible? Link to comment https://forums.phpfreaks.com/topic/24179-saving-a-file-to-a-network-address/ Share on other sites More sharing options...
tomfmason Posted October 17, 2006 Share Posted October 17, 2006 I think that it is possible as long as the apache user as permissions to write on that system.What OS is are you using? Link to comment https://forums.phpfreaks.com/topic/24179-saving-a-file-to-a-network-address/#findComment-109891 Share on other sites More sharing options...
Jurik Posted October 17, 2006 Author Share Posted October 17, 2006 I believe the server is using Windows XP, which is the same as what the .php files are being kept on. Link to comment https://forums.phpfreaks.com/topic/24179-saving-a-file-to-a-network-address/#findComment-109896 Share on other sites More sharing options...
tomfmason Posted October 17, 2006 Share Posted October 17, 2006 Now I am in no way sure if this will work or not but here we go..in the path just use ../ as many times as it takes to get to that to the c: directory then choose your network folder. In my home pc I have the root directory as C:\home then the domains under that so...I would do something like this.$path = '../../documents and settings/The user/nethood/the server';The net hood directory will most likely be hidden so you may want to show hidden files and folders for that directory..Like I said I am unsure if this will work or not..Good Luck,TOm Link to comment https://forums.phpfreaks.com/topic/24179-saving-a-file-to-a-network-address/#findComment-109989 Share on other sites More sharing options...
craygo Posted October 17, 2006 Share Posted October 17, 2006 Little more info needed.What web server you using IIS or Apache??Do you need the files to be saved on a PC other than the web server??If different do you have admin access to that PC??Ray Link to comment https://forums.phpfreaks.com/topic/24179-saving-a-file-to-a-network-address/#findComment-109997 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.