Advertisement
Advertisement
| 02.23.2008 at 01:00PM PST, ID: 23187558 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: |
function create_flash_folder($username) {
$dir = 'gogreen'.$username.''; // THIS IS THE FOLDER I WANT TO CREATE
$file="MIQ_COPYTHIS"; //THIS IS THE FOLDER TO COPY
$remote_file="MIQ_COPYTHIS"; //DON'T KNOW WHAT TO PUT HERE
$source_dir = "MIQ_COPYTHIS/";
$ftp_server = "xxxxxxxxxx.com";
$ftp_user_name = "xxxxxxxxx";
$ftp_password = "xxxxxxxxx";
// set up basic connection
$conn_id = ftp_connect($ftp_server);
// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// try to create the directory $dir
if (ftp_mkdir($conn_id, $dir)) {
echo "successfully created $dir\n";
echo "Current directory: " . ftp_pwd($conn_id) . "\n";
// try to change the directory to somedir
if (ftp_chdir($conn_id, "MIQ_COPYTHIS")) {
echo "Current directory is now: " . ftp_pwd($conn_id) . "\n";
// upload a file
if (ftp_put($conn_id, $dir, $sourc_dir, FTP_ASCII)) {
echo "successfully uploaded $file\n";
} else {
echo "There was a problem while uploading $file\n";
}
} else {
echo "Couldn't change directory\n";
}
} else {
echo "There was a problem while creating $dir\n";
}
// close the connection
ftp_close($conn_id);
}
|