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 | |
/********************************************************** | |
/ アップロードファイルの保存 | |
/**********************************************************/ | |
if( $data = $_FILES["photo"] ){ | |
move_uploaded_file( $data["tmp_name"], "./img/".date(U).$data["name"] ); | |
// move_uploaded_file( $data["tmp_name"], "./img/".$data["name"] ); | |
// echo("<img src='"."./img/".date(U).$data["name"]."' alt=''>"); | |
}else{ | |
// echo "nono"; |
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
// 文字コードの設定 | |
header("Content-Type: text/html; charset=UTF-8"); |
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
<link rel="shortcut icon" type="image/x-icon" href="https://daks2k3a4ib2z.cloudfront.net/536b73942a0858ec6a980642/5370b2e27435bb8d42e7a96c_favicon.ico"> | |
<link rel="apple-touch-icon" href="https://daks2k3a4ib2z.cloudfront.net/536b73942a0858ec6a980642/5370b17ab0eab33e05d34879_icon_256x256.jpg"> |
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
// Webfont Japanese | |
// http://webfontfan.com/japansans/?p=20 | |
@font-face { | |
font-family: 'JapanSans80'; | |
src: url('http://webfontfan.com/fontcss/font/JapanSans80.eot'); | |
src: url('http://webfontfan.com/fontcss/font/JapanSans80.eot?#iefix') format('embedded-opentype'), | |
url('http://webfontfan.com/fontcss/font/JapanSans80.woff') format('woff'), | |
url('http://webfontfan.com/fontcss/font/JapanSans80.ttf') format('truetype'); | |
font-weight: normal; | |
font-style: normal; |
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
// データの追加 | |
function add_data($conn, $title, $URLmain, $URLsub1, $URLsub2, $memo, $dt) { | |
global $TBNAME; | |
$id = 99999999999; | |
$sql = "INSERT INTO ".$TBNAME. "(title, URLmain, URLsub1, URLsub2, memo, dt) | |
VALUES | |
(:title, :URLmain, :URLsub1, :URLsub2, :memo, :dt)"; | |
$stmt = $conn->prepare($sql); | |
$stmt->bindParam(":title", $title); |
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
require("./Zebra_Image.php"); | |
function resizeImage($source){ | |
$image = new Zebra_Image(); | |
$image->source_path = $source; | |
echo $image->target_path; | |
$width = 490; | |
$hight = 100; //490*(9/16); |
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
<style type="text/css"> | |
#debugs{ | |
visibility:hidden; | |
width: 200px; | |
font-size: 10px; | |
position:absolute; | |
left:5px; | |
top:50px; | |
z-index: 5; | |
} |
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
;http://unsolublesugar.com/20120623/134957/ | |
memory_limit = 50M ;スクリプトが確保できる最大メモリ(バイト単位) | |
post_max_size = 40M ;POSTデータに許可される最大サイズ(バイト単位) | |
upload_max_filesize = 30M ;アップロードできるファイルの最大サイズ(バイト単位) | |
max_input_time = 60 ;スクリプトが入力をパースする最大時間(秒単位) |
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
https://github.com/peace098beat/bootstrap-social | |
<link href=".***/css/bootstrap.css" rel="stylesheet"> | |
<link href=".***/css/font-awesome.css" rel="stylesheet"> | |
<link href=".***/css/docs.css" rel="stylesheet" > | |
<link href=".***/bootstrap-social.css" rel="stylesheet" > |
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
function createUI(thisObj) { | |
var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "C:。ミ くコ:彡 C:。ミ",[100, 100, 400, 300]); | |
Tex1 = myPanel.add("edittext", [30,30, 270,50,], "数字を入れてね"); | |
Tex2= myPanel.add("edittext", [30,60, 270,80], ""); | |
Btn = myPanel.add ("button" , [30,90, 270,110],"Click!"); | |
Stc= myPanel.add ("statictext" , [20,120,290,140],""); | |
Stc .visible=false; | |
return myPanel; | |
} | |
myToolsPanel = createUI(this); |