Question : Saving and renaming a image file

I am trying to rename and save an image to a specific location based on the $username.  The image is renaming, but I can not seem to track down where the image is being saved to.  Can anyone help, here is my existing php code:


<?php
session_start();

if(!isset($_SESSION['username'])){
    echo "Error";
      }else{
      $username = $_SESSION['username'];

}
// Set local PHP vars from the POST vars sent from flash
$todayDate = $_POST['todayDate'];
$filename = $_FILES['Filedata']['name'];      
$filetmpname = $_FILES['Filedata']['tmp_name'];      
$newfilename = "image01.jpg";
$fileType = $_FILES["Filedata"]["type"];
$fileSizeMB = ($_FILES["Filedata"]["size"] / 1024 / 1000);

// Place file on server, into the images folder
$location = move_uploaded_file($_FILES['Filedata']['tmp_name'], "members/$username".$newfilename);

// This section edits your log file, if you don't need a text log file just delete these lines
$myFile = "imagetracker.txt";
$fh = fopen($myFile, 'a') or die("can't open file");
$stringData = "\n\ntodayDate: $todayDate  \n username: $username \n FileName: $newfilename \n Type: $fileType \n Size: $fileSizeMB MegaBytes";
fwrite($fh, $stringData);
fclose($fh);
// End log file edit

?>

Answer : Saving and renaming a image file

No, firstly you cannot upgrade from Windows XP directly to Windows 7. Secondly, upgrade editions are for upgrading only, not new installations.

Therefore for dual booting, you will need to buy a proper version of Windows 7 and install it onto a separate hard drive, or a new partition of your current hard drive.

Make sure you configure dual boot from Windows 7 as it is a lot easier.

Hope this helps and make sense. Good luck!
Random Solutions  
 
programming4us programming4us