Skip to content

Instantly share code, notes, and snippets.

View jjsty1e's full-sized avatar

jjsty1e jjsty1e

View GitHub Profile
@jjsty1e
jjsty1e / a.conf
Last active June 5, 2017 08:11
apache https configuration
<VirtualHost *:443 *:80>
DocumentRoot "/path/to/webRoot"
ServerName yourServerName
<IfModule ssl_module>
SSLEngine on
SSLCertificateFile "/path/to/crtFileName.crt"
SSLCertificateKeyFile "/path/to/keyFileName.key"
</IfModule>
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2017-03-31
* Time: 10:44
*/
namespace AppBundle\Services;
<?php
/**
*去除所有文件BOM
* usage:命令行进入到项目根目录,执行 php clear_bom.php
*author Caihong_tang
*@created 2016-6-13 10:05:34
*/
if (isset($_GET['dir'])){
$basedir=$_GET['dir'];
}
@jjsty1e
jjsty1e / Config.class.php
Created June 8, 2016 05:55
获取配置
<?php
/**
* Description replace from your description
* Created by Jetbrains PhpStorm.
* User: Jake <singviy@gmail.com>
* Created: 2016/6/7 9:39
*/
class Config
<?php
echo "hello";
class Jake{
private $name;
public function set($name){
$this->name = $name;
}
}
$man = new Jake('Jakesoft');