2016年2月26日 星期五

2/26

安裝XAMPP

修改中文亂碼

httpd.conf內加

# Specify a default charset for all pages sent out. This is
# always a good idea and opens the door for future internationalisation
# of your web site, should you ever want it. Specifying it as
# a default does little harm; as the standard dictates that a page
# is in iso-8859-1 (latin1) unless specified otherwise i.e. you
# are merely stating the obvious. There are also some security
# reasons in browsers, related to javascript and URL parsing
# which encourage you to always set a default char set.
#
AddDefaultCharset Big5


<?php

echo "這不是我的 難道是你的?";

?>


2016年2月18日 星期四

2/19

程式設計工藝大師


package HelloWorld;

public class HelloWorld
{
    public static void main(String args[])
    {
        System.out.println("Hello, World!");
    }
}




package yo;

import java.sql.Connection;
import java.sql.DriverManager;

public class ya {

public static void main(String[] args) {
Connection c = null;
       try {
  Class.forName("org.sqlite.JDBC");
  c = DriverManager.getConnection("jdbc:sqlite:test.db");
 } catch (Exception e) {
  System.err.println(e.getClass().getName() + ": " + e.getMessage());
  System.exit(0);
 }
 System.out.println("Opened database successfully");
}
}