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: 551
Function: getPaste

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

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/system/core/Exceptions.php:271)

Filename: view/raw.php

Line Number: 2

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/raw.php
Line: 2
Function: header

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 173
Function: include

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 43
Function: _ci_load

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

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

# You can copy'n'paste this whole shit into the interactive interpreter! data = { "name1": "value1", "name2": "value2" } # Old code: result1 = "%s %s" % (data["name1"], data["name2"]) # New code: result2 = "%(name1)s %(name2)s" % data # Advantages: # - You don't have to worry about the order of the arguments # - You don't have to refer 'data' everytime # Disadvantage: # - If your argument isn't in the dict, you have to do sth like this: "%(ood)s %(name1)s" % ({"ood": "Not in the dict"} + data) # or you have to add it to the dict first. # Alternative using str.format and dict unpacking (recommended over old-style formatting): result3 = "{name1} {name2}".format(**data) # All results are the same # -------------------------- # String concatenation: str1 = "Hello Aha" str2 = "Hello " + "Aha" # Explicit usage of + (not recommended) str3 = "Hello " "Aha" # Implicit concatanation of string literals str4 = "Hello "\ "Aha" # Over multiple lines, newline escaped (not recommended since a space after the backslash would break it) str5 = "".join(("Hello ", "Aha")) # Joining of a tuple, not neccessary (see method 6) str6 = ("Hello " "Aha") # Preferred method, note that you're not building a tuple here (no comma) # All strings are the same