This is simple! (alex809, we don't need your n00bish actions here, so PLEASE DO NOT comment here!)
<?php
// set up the basic connection
$connection_id = ftp_login($connection_id, $ftp_username, $ftp_password);
// check connection
if ((!$connection_id) || (!$login_result)) {
echo "FTP Connection Failed";
echo "Attempting to connect to $ftp_server with user $ftp_username";
exit;
} else {
echo "Connected to $ftp_server, for user $ftp_username";
}
// upload the file
$upload = ftp_put($connection_id, $destination_file, $source_file, FTP_BINARY);
// check upload status
if (!$upload) {
echo "FTP Upload Failed";
} else {
echo "Uploaded $source_file to $ftp_server as $destination_file";
hey why not me yea im noobish at scripting and all but really.and non of this stuff ever helps me anyway and no1 ever gets the CORRECT AMOUNT OF SCRIPTING in their posts so theirs always someone posting new script parts so how does this stuff ever help any1 cause no1 ever posts the .php page codes all they post is the database stuff.
just a point.... their should be instructions on installation and full page scripts not just database so that noobs like me at this stuff can actually understand and not annoy u guys when u guys post some stuff using database and scripts.
yes, i do too, you need it to get a main page,games and all the content.You even require it to have a login/register script.you also need mysql for that.its needed for basically your entire website.
already have a file-manager that doesn't need ftp, if your trying to access ur own server, a simple php file-manager will do, if ur trying to access other servers then ftp is a go.