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
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!?!

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.