# pecl - PHP Extension Community Library
$ sudo apt-get install -y php-pear
# зависимости построения
$ sudo apt-get install -y build-essential php5-dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Online PHP Script Execution</title> | |
</head> | |
<body> | |
<?php | |
function var_export54($var, $indent="") { | |
switch (gettype($var)) { | |
case "string": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set undo | |
set const |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq-default indent-tabs-mode nil) | |
(setq-default tab-width 4) | |
(setq indent-line-function 'insert-tab) | |
(require 'linum) | |
(global-set-key [M-delete] 'backward-kill-word) | |
(setq linum-format "%4d \u2502 ") | |
(global-linum-mode 1) | |
;;(require 'php-mode) | |
;;(require 'any-ini-mode) | |
(setq auto-mode-alist (cons '(".*\.cnd$" . any-ini-mode) auto-mode-alist)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Online PHP Script Execution</title> | |
</head> | |
<body> | |
<?php | |
function mb_str_split($string,$string_length=1,$charset='utf-8') { | |
if(mb_strlen($string,$charset)>$string_length || !$string_length) { | |
do { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://docs.python.org/2.7/howto/functional.html | |
#http://www.compileonline.com/execute_python_online.php | |
from __future__ import print_function | |
import operator | |
import itertools | |
print(list(itertools.islice(itertools.cycle('1234'), 2, 8))) | |
#for line in open('input.txt'): | |
# print(line) |
NewerOlder