<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff></diff>
      <filename>FlashMovie/camera.fla</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,17 @@
 &lt;?
+
+	$target_path = &quot;uploads/&quot;;
+
 	if ( !array_key_exists('webcam',$_FILES)) {
-		header(&quot;Content-Type: image/png&quot;);
-		echo base64_decode($_POST['webcam']);
+		$target_path = $target_path . &quot;webcam_shot_at&quot; .time() . &quot;.png&quot;;
+		$f = fopen( $target_path, &quot;wb&quot; ); 
+		fwrite($f,base64_decode($_POST['webcam'])); 
+		fclose($f);
 	} else {
-		echo &quot;File: &quot; . $_FILES['webcam']['name'];
+		$target_path = $target_path .$_FILES['webcam']['name']; 
+		move_uploaded_file($_FILES['webcam']['tmp_name'], $target_path);
 	}
+	
+	echo &quot;&lt;img src='&quot;.$target_path.&quot;' alt='' /&gt;&quot;;
+	
 ?&gt;
\ No newline at end of file</diff>
      <filename>Webpage/result.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a0a414c90c8e69f3446bb4318c321d5e4523c60f</id>
    </parent>
  </parents>
  <author>
    <name>Alcides Fonseca</name>
    <email>me@alcidesfonseca.com</email>
  </author>
  <url>http://github.com/alcides/webcaminput/commit/a6ba2ea1dbef8bac890a7f75d436ae0c9947f41d</url>
  <id>a6ba2ea1dbef8bac890a7f75d436ae0c9947f41d</id>
  <committed-date>2008-08-29T09:01:25-07:00</committed-date>
  <authored-date>2008-08-29T09:01:25-07:00</authored-date>
  <message>Php upload file completed.
Now uploads, and shows the image in a img tag.</message>
  <tree>1aa792028dbf830443f632d770039431cd38de87</tree>
  <committer>
    <name>Alcides Fonseca</name>
    <email>me@alcidesfonseca.com</email>
  </committer>
</commit>
