PHP help

Hi, in my app user can store screenshots on the server via this php code:

<?php 
    if (($_FILES["file"]["type"] == "image/png")  ($_FILES["file"]["size"] < 20000000000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "
    "; } else { echo "Upload: " . $_FILES["file"]["name"] . "
    "; echo "Type: " . $_FILES["file"]["type"] . "
    "; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb
    "; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "
    ";

    if (file_exists("upload/" . $_FILES["file"]["name"]))
      {
      echo $_FILES["file"]["name"] . " already exists. ";
      }
    else
      {
      move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $_FILES["file"]["name"]);
      echo "Stored in: " . "upload/" . $_FILES["file"]["name"];
      }
    }
    } else { echo "Invalid file"; } 
?>

I need to open saved image in new browser’s window, but i’ve got no experience in PHP, if someone have any idea of how to do it, please help…

PHP can’t do that. It’s server-side only. Instead, you’ll need to write a function in javascript and embed it in the HTML hosting your webplayer. Then, from inside Unity, call that function with the filename as a parameter.

See:

http://docs.unity3d.com/Documentation/Manual/UnityWebPlayerandbrowsercommunication.html

Thanx!