Jump to content

Ftp from Web to my computer


UnKiE.T

Recommended Posts

Hi All,

 

I wonder if any one can point me to some information. I am fairly new to this so please excuse my ignorance :-[ I have setup an ftp server using Cerberus & DynDns which successfully allows me to upload files from a remote location to my PC. Thats all good.

 

I have also created a web page that allows me to upload a file to my web server.

 

I want to combine the 2 processes so I can use the web page to upload to my PC.

 

I hope this makes sense because I am not sure how else to explain it.

 

Please help if you can or direct me somewhere else.

 

Thanks,

 

UnKiE.T.

Link to comment
https://forums.phpfreaks.com/topic/42947-ftp-from-web-to-my-computer/
Share on other sites

Thanks, I think I have done that already.

 

This is the code that used for the upload to my website

 

<?php

if ($_FILES['Filedata']['name']) {

$uploadDir = "images";

$uploadFile = $uploadDir . basename($_FILES['Filedata']['name']);

    move_uploaded_file($_FILES['Filedata']['tmp_name'], $uploadFile);

}

?>

 

However to access my ftp server on my PC I need to access  ftp://mydomain.dnsalias.com

with a username and password

 

So i am trying to combine the ftp info into that bit of PHP i think!?!

 

 

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.