• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

HTML assistance

manclarky

Should post faster
Joined
Aug 25, 2010
Messages
146
Likes received
0
Thanks received
0
Location
Live in Blackburn, work in London
I have a web site and want to be able to upload files from client site (we have no external email) so I can access when I get home.

What tags do I need to do this?

Any help much appreciated
 
Why not just FTP the files to the web host?
 
To get this straight - you simply want to get files from work to home so that you can look at them when at home? The web site bit is kind of irrelevant?

If this is the case can you not stick them on a usb stick?

Could you remote desktop to your home machine and push them in that way? If they are blocking the standard port for RDP then find an open port in their firewall and set RDP on your home machine to answer on that one instead.

If you can't do either of these and are adamant that it must go up to your web space then how do you connect to your web space from home? Surely Cliphead is correct with ftp? What do you mean you don't have access to ftp at work? All you need to do is use an ftp client - heck you can even use Firefox as an FTP client if you want to - and just hope they have not blocked port 21. If they have blocked port 21 and you are using shared hosting then you are buggered.

If that is the case then set up a VM on your home machine with linux on it and either use SCP or ftp with a changed port number to push your files up.

The possibilities of getting data out of a client's site are endless :wink
 
Run ssh on your box on port 443 and scp on that port.
 
1) Just use windows explorer (Not internet explorer). Type the FTP address in the address bar, something like
ftp://mysite.co.uk/ , fill in the user and pwd details in the popup and it's just like accessing a local folder.

2) Check what your host provides. Most have a free explorer type file transfer utility that you could log into on client site.

3) A google should bring up some freeware uploaders in php or whatever.
 
Very simple HTML file and PHP files to upload single file:

<html>
<body>
<form action="upload.php" method="post" enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" /><br />
<input type="submit" name="submit" value="Submit" />
</form>
</body>
</html>



<?php
if ($_FILES["file"]["error"] > 0)
{
echo "Error: " . $_FILES["file"]["error"] . "<br />";
}
else
{
echo "Upload: " . $_FILES["file"]["name"] . "<br />";
echo "Type: " . $_FILES["file"]["type"] . "<br />";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
echo "Stored in: " . $_FILES["file"]["tmp_name"]."<br>";
move_uploaded_file($_FILES["file"]["tmp_name"],$_FILES["file"]["name"]);
echo "Stored in: ".$_FILES["file"]["name"];
}
?>
 

Advertisers

Back
Top