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
$ php -s test.phps > test.html | |
$ |
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
<?php | |
//Echo directly | |
highlight_file('test.php'); | |
//Store in variable first | |
$source = highlight_file('test.php', true); | |
echo $source; |
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
<?php | |
highlight_string('<?php echo "A line of PHP code a day keeps the doctor away";'); |
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
{ | |
"minimum-stability": "dev", | |
"require": { | |
"silex/silex": "1.0.*", | |
"zendframework/zendframework": "2.0.*" | |
} | |
} |
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
backend default { | |
.host = "127.0.0.1"; | |
.port = "8080"; | |
} | |
acl purge { | |
"localhost", | |
"69.195.222.132" | |
} | |
sub vcl_recv { |
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
{ | |
"require": { | |
"symfony/http-foundation": "2.5.3", | |
"symfony/http-kernel": "2.5.3", | |
"twig/twig": "1.16.0" | |
} | |
} |
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
package main | |
import ( | |
"strconv" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"fmt" | |
"encoding/json" | |
"time" |
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
<IfModule filter_module> | |
<IfVersion >= 2.4> | |
FilterDeclare COMPRESS | |
FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m|^text/html|" | |
FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m|^text/html|" | |
FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m|^text/css|" | |
FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m|^text/plain|" | |
FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m|^text/xml|" | |
FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m|^text/x-component|" | |
FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m|^application/javascript|" |
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
package main | |
import ( | |
"strconv" | |
"net/http" | |
"github.com/zenazn/goji" | |
"github.com/zenazn/goji/web" | |
"os/exec" | |
"encoding/json" | |
) |
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
vcl 4.0; | |
backend default { | |
.host = "127.0.0.1"; | |
.port = "8080"; | |
} | |
sub vcl_recv { | |
set req.http.Surrogate-Capability = "key=ESI/1.0"; | |
} |