Jump to content

Archived

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

Jurik

Saving a file to a network address

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
I believe the server is using Windows XP, which is the same as what the .php files are being kept on.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

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.