Jump to content

File Upload Question


phatgreenbuds

Recommended Posts

I run Ubuntu as my primary web server and it also houses my MySQL DB. I have a second server running Win2k3 and this is my Flash Media Server.

 

So the question is...how do I define a target directory on the windows server for file uploads so that they drop into the FMS app? What protocol does PHP use to upload (for my firewall) and what user will need what permissions to upload those files to the server?

 

Assuming the Win2k3 server is 10.10.10.100 and the directory is "c:\temp\vids\" I assume the $targetdir would be "//10.10.10.100/vids/"...right? 

 

	if(isset($_POST['upload']) && $_FILES['vidname']['size'] > 0){ 
			$cust = "1";
			$targetdir = "what do i use here?"; 
			$fileName = $_FILES['vidname']['name'];
			$tmpName  = $_FILES['vidname']['tmp_name'];
			$fileSize = $_FILES['vidname']['size'];
			$fileType = $_FILES['vidname']['type'];
			$target = $targetdir . basename( $_FILES['vidname']['name']);

Link to comment
https://forums.phpfreaks.com/topic/123334-file-upload-question/
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.