This file contains 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 | |
// | |
// + List files & directories | |
// + Write & Run PHP snipet | |
// + https://gist.github.com/665addb757cfcff9be67.git | |
// | |
ini_set("display_errors", 1); | |
error_reporting(30711); |
This file contains 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
<script> | |
d=new Date() | |
tahun=d.getFullYear() | |
bulan=d.getMonth() | |
lokasi=682 // bogor | |
location="http://simbi.kemenag.go.id/sihat/site/get_sholat?tahun="+ tahun +"&bulan="+ (bulan+1) +"&lokasi="+ lokasi +"&h=0&type=html" | |
</script> |
This file contains 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
@echo off | |
if "%PHPBIN%" == "" set PHPBIN=C:\path\to\php.exe | |
"%PHPBIN%" "C:\path\to\composer.phar" %* |
This file contains 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 //ext/tree/Node.php | |
namespace app\ext\tree; | |
use Yii; | |
class Node extends \kartik\tree\models\Tree | |
{ | |
public static function tableName() { | |
return 'tbl_tree'; | |
} |
Requirements:
- Ubuntu 16.04
- Apache2
- DNSMASQ
misalnya:
- http://site1.local --> /home/suphm/sites/site1/web
- http://site2.local --> /home/suphm/sites/site2/web
- http://subdomain.site2.local --> /home/suphm/sites/site2/web
This file contains 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
<body style=width:900px><pre> | |
<?php | |
error_reporting(E_ALL); | |
createFileRecursive([ | |
'dir' => __DIR__, | |
'name' => '.nomedia', | |
'contents' => '', | |
'excludes' => [ |
This file contains 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 | |
namespace fm; | |
class Directory extends File | |
{ | |
public function open() { | |
echo "<h2>Index of: ". $this->path ."</h2>\n"; | |
$files = new \DirectoryIterator($this->path); | |
foreach ($files as $file) { |
OlderNewer