These instructions to perform the upload:
1. FTP to upload.sourceforge.net
2. Login as "anonymous"
3. Use your e-mail address as the password for this login
4. Set your client to binary mode ("bin" on command-line clients)
5. Change your current directory to /incoming ("cd /incoming")
6. Upload the desired files for the release ("put filename")
To upload web pages:
<?php
$directory="";
$username="";
$projectname="";
if ($username == "") {
$fp = fopen("php://stdin", "r");
print (" Enter username : ");
$username = fgets($fp,255);
fclose($fp);
$username=chop($username);
}
if ($directory == "") {
$fp = fopen("php://stdin", "r");
print (" Enter directory : ");
$directory = fgets($fp,255);
fclose($fp);
$directory=chop($directory);
}
if ($projectname == "") {
$fp = fopen("php://stdin", "r");
print (" Enter projectname : ");
$projectname = fgets($fp,255);
fclose($fp);
$projectname=chop($projectname);
}
if ($directory == "") $directory = getcwd();
echo "\n";
$b = opendir("$directory");
$plist = array();
while($file = readdir($b)) {
if (ereg(".png",$file)) array_push($plist,$file);
if (ereg(".htm",$file)) array_push($plist,$file);
if (ereg(".jpg",$file)) array_push($plist,$file);
if (ereg(".php",$file)) array_push($plist,$file);
if (ereg(".txt",$file)) array_push($plist,$file);
if (ereg(".inc",$file)) array_push($plist,$file);
}
sort($plist);
foreach($plist as $items)
{
$a++;
echo "$a) $items\n";
}
$fp = fopen("php://stdin", "r");
print (" Enter File # : ");
$b = fgets($fp,255);
fclose($fp);
$b=$b-1;
$a = $projectname{0};
$c = $a . $projectname{1};
$z = "scp $plist[$b] $username@$projectname.sourceforge.net";
$z .= ":/home/groups/$a/$c/$projectname/htdocs/";
//echo $z;
exec("$z");
?>