Jump to content


Photo

Saving a file to a network address


  • Please log in to reply
4 replies to this topic

#1 Jurik

Jurik
  • Members
  • PipPipPip
  • Advanced Member
  • 59 posts

Posted 17 October 2006 - 07:46 AM

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?

#2 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 17 October 2006 - 08:10 AM

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?

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#3 Jurik

Jurik
  • Members
  • PipPipPip
  • Advanced Member
  • 59 posts

Posted 17 October 2006 - 08:26 AM

I believe the server is using Windows XP, which is the same as what the .php files are being kept on.

#4 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 17 October 2006 - 12:43 PM


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

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#5 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 17 October 2006 - 12:58 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users