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

blah test blah - Stikked
From blah, 11 Years ago, written in Java.
Embed
  1. // This example is from _Java Examples in a Nutshell_. (http://www.oreilly.com)
  2. // Copyright (c) 1997 by David Flanagan
  3. // This example is provided WITHOUT ANY WARRANTY either expressed or implied.
  4. // You may study, use, modify, and distribute it for non-commercial purposes.
  5. // For any commercial use, see http://www.davidflanagan.com/javaexamples
  6.  
  7. /**
  8.  * This program plays the game "Fizzbuzz".  It counts to 100, replacing each
  9.  * multiple of 5 with the word "fizz", each multiple of 7 with the word "buzz",
  10.  * and each multiple of both with the word "fizzbuzz".  It uses the modulo
  11.  * operator (%) to determine if a number is divisible by another.
  12.  **/
  13. public class FizzBuzz {                      // Everything in Java is a class
  14.   public static void main(String[] args) {   // Every program must have main()
  15.     for(int i = 1; i <= 100; i++) {                    // count from 1 to 100
  16.       if (((i % 5) == 0) && ((i % 7) == 0))            // A multiple of both?
  17.         System.out.print("fizzbuzz");    
  18.       else if ((i % 5) == 0) System.out.print("fizz"); // else a multiple of 5?
  19.       else if ((i % 7) == 0) System.out.print("buzz"); // else a multiple of 7?
  20.       else System.out.print(i);                        // else just print it
  21.       System.out.print(" ");
  22.     }
  23.     System.out.println();
  24.   }
  25. }