A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Untitled - Stikked
From Silly Capybara, 5 Years ago, written in HTML5.
Embed
  1.  <head>
  2.  <title>A File Upload Script</title>
  3.  </head>
  4.  <body>
  5.  <div>
  6.  <?php
  7. if ( isset( $_FILES['fupload'] ) ) {
  8.  
  9.     print "name: ".     $_FILES['fupload']['name']       ."<br />";
  10.      print "size: ".     $_FILES['fupload']['size'] ." bytes<br />";
  11.      print "temp name: ".$_FILES['fupload']['tmp_name']   ."<br />";
  12.      print "type: ".     $_FILES['fupload']['type']       ."<br />";
  13.      print "error: ".    $_FILES['fupload']['error']      ."<br />";
  14.  
  15.      if ( $_FILES['fupload']['type'] == "image/gif" ) {
  16.  
  17.          $source = $_FILES['fupload']['tmp_name'];
  18.          $target = "upload/".$_FILES['fupload']['name'];
  19.          move_uploaded_file( $source, $target );// or die ("Couldn't copy");
  20.          $size = getImageSize( $target );
  21.  
  22.          $imgstr = "<p><img width=\"$size[0]\" height=\"$size[1]\" ";
  23.         $imgstr .= "src=\"$target\" alt=\"uploaded image\" /></p>";
  24.  
  25.          print $imgstr;
  26.      }
  27.  }
  28.  ?>
  29.  </div>
  30.  <form enctype="multipart/form-data"
  31.     action="<?php print $_SERVER['PHP_SELF']?>" method="post">
  32.  <p>
  33.  <input type="hidden" name="MAX_FILE_SIZE" value="102400" />
  34.  <input type="file" name="fupload" /><br/>
  35.  <input type="submit" value="upload!" />
  36.  </p>
  37.  </form>
  38.  </body>
  39.  </html>