Skip to content

Instantly share code, notes, and snippets.

View dotku's full-sized avatar
🧐
I'm busy... I may be slow to respond.

Weijing Jay Lin dotku

🧐
I'm busy... I may be slow to respond.
  • Meta
  • San Francisco, CA, USA
  • 10:04 (UTC -12:00)
View GitHub Profile

前言

在 StackoverFlow 上找到 PHPBrew,据说是比较好的 PHP 版本管理工具 (最近在做项目的时候,貌似出现开发环境兼容问题,有可能是 Nginx 的问题,也有可能是PHP 的问题,还在调查中)。

github: https://github.com/phpbrew/phpbrew

Requirement

  1. JUnit + 8
  2. Cactus + 3
  3. Abbot + 1
  4. JUnitPref + 1
  5. DbUnit +1
  6. Mockrunner + 1
  7. DBMonster + 1
  8. MockEJB + 1
  9. StrutsTestCase + 3
  10. JFCUnit + 3

Basics of Linux

This guide is designed to help new users understand the more important aspects of Linux. It is not meant to be an exhaustive tutorial, but rather a primer.


Introduction

Linux (or GNU/Linux) isn't one singular operating system as many people believe it to be, but rather a broader term for a large number of operating systems built using the Linux kernel. These different operating systems are referred to as distributions or "distros". Different Linux distributions use the same mostly the same software but are packaged and setup differently. Many, if not most, distros are based of off other more popular distros. The major differences that the average user notices are in what desktop environment the distro uses, and how/where software is managed and installed from.

Linux is built upon the ideas of Free Software. This doesn't mean only free in price, but also free as in "freedom". Free and Open Source software is software that's code is available to view and be contributed to by the pub

错误全开

This always works for me:

   ini_set('display_errors', 1);
   ini_set('display_startup_errors', 1);
   error_reporting(E_ALL);

However, this doesn't make PHP to show parse errors - the only way to show those errors is to modify your php.ini with this line:

@dotku
dotku / ajax post
Last active August 23, 2016 23:52
http://stackoverflow.com/questions/6323338/jquery-ajax-posting-json-to-webservice
http://stackoverflow.com/questions/21201270/how-to-submit-json-data-by-request-body-in-jquery
$.ajax({
url : "/",
type: "POST",
data: JSON.stringify([
{id: 1, name: "Shahed"},
{id: 2, name: "Hossain"}
  1. where ampps domain manage read the config from?

It store on the path /Applications/AMPPS/ampps/data/domains

如果是一个空的文件夹的话,目录会是这样的

root@do-107-170-232-130:html $ cd empty/
root@do-107-170-232-130:empty $ ls -la
total 8
drwxr-xr-x 2 root root 4096 Nov  6 05:24 .
drwxr-xr-x 5 root root 4096 Nov  6 05:24 ..
root@do-107-170-232-130:empty $

Q: I can list files but file won't display anything in Apache2?

make sure there won't be any config override your config;

[domain]
$8.99 https://www.namesilo.com/pricing.php
$8.99 https://www.onlydomains.com
$8.79 https://internetbs.net/
$10.69 https://www.namecheap.com/domains/registration.aspx

[webhosting]
$1 https://hostripples.com/
$0.5 http://www.hostblast.net/