Advertisement
Advertisement
| 08.12.2008 at 04:04AM PDT, ID: 23640730 |
|
[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: 47: 48: 49: 50: 51: 52: 53: |
<table border="0" cellpadding="5" width="100%" align="center" bgcolor="#F0F0FF">
<tr><td colspan="2" bgcolor="#6699CC" align="center"><font color="#FFFFFF" size="+1" align="center">Files Uploaded</font></td></tr>
<tr bgcolor="#FCFCFF"><td><nobr>File Name</nobr></td>
<td align="right"><nobr>File size</nobr></td></tr>
<?
// Set the save path here
$save_path="../images/uploadtest/temp/$user_ID/";
$userfile_parent=$_REQUEST['userfile_parent'];
$file = $_FILES['userfile'];
$k = count($file['name']);
$time_stamp = date("m/d/y H:i:s");
$user_ID = $row_rts_userid['user_id'];
for($i=0 ; $i < $k ; $i++)
{
if($i %2)
{
echo '<tr bgcolor="#FAFAFA"> ';
}
else
{
echo '<tr>';
}
$name = split('/',urldecode($file['name'][$i]));
echo '<td align="left">' . $name[count($name)-1] ."</td>\n";
echo '<td align="right">' . $file['size'][$i] ."</td></tr>\n";
if(isset($save_path) && $save_path!="")
{
move_uploaded_file($file['tmp_name'][$i], $save_path . $name[count($name)-1]);
}
}
// checks if the save path variable has been set above. Providing there is something set on $save_path the following wont execute
if(! isset($save_path) || $save_path =="")
{
echo '<tr style="color: #0066cc" bgcolor="#FCFCFC" ><td colspan=2 align="left">Files have been uploaded but not saved because the destination folder has not been set. Please change the $save_path in upload.php</td></tr>';
}
// end of code snippet
if(isset($userfile_parent))
{
echo "<tr bgcolor='#FCFCFC' style='color: #0066cc'><td colspan=2></td></tr>";
}
?>
</table>
|