This file contains hidden or 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 | |
require 'vendor/autoload.php'; | |
function getSsmParameter($paths) | |
{ | |
$sharedConfig = [ | |
'region' => 'ap-northeast-1', | |
'version' => 'latest' | |
]; |
This file contains hidden or 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
--- | |
- hosts: all | |
become: yes | |
tasks: | |
- name: Enable to install PHP. | |
shell: "amazon-linux-extras enable php7.3" | |
changed_when: False | |
- name: Install PHP. | |
yum: |
This file contains hidden or 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 | |
define('DB_HOST', 'db'); | |
define('DB_USER', 'root'); | |
define('DB_PASSWORD', 'secret'); | |
define('DB_NAME', 'shop'); | |
try { | |
$dsn = 'mysql:host='.DB_HOST.'; dbname='.DB_NAME.';charset=utf8;'; | |
$pdo = new PDO($dsn, DB_USER, DB_PASSWORD); | |
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
print('接続しました。'); |
This file contains hidden or 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 | |
define('DB_HOST', 'localhost'); | |
define('DB_USER', 'root'); | |
define('DB_PASSWORD', 'secret'); | |
define('DB_NAME', 'shop'); | |
try { | |
$dsn = 'mysql:host='.DB_HOST.'; dbname='.DB_NAME.';charset=utf8;'; | |
$pdo = new PDO($dsn, DB_USER, DB_PASSWORD); | |
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
print('接続しました。'); |
This file contains hidden or 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
FROM php:7.2-apache-stretch | |
MAINTAINER msato | |
RUN apt-get update \ | |
&& apt-get install -y libpq-dev \ | |
&& docker-php-ext-install pdo_mysql pdo_pgsql | |
COPY php.ini /usr/local/etc/php |
This file contains hidden or 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
{ | |
"personalizations": [ | |
{ | |
"to": [{"email": "[email protected]"}] | |
} | |
], | |
"from": {"email": "[email protected]"}, | |
"subject": "メール件名", | |
"content": [ | |
{ |
This file contains hidden or 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 | |
$apikey = "xxxxxxxxxxxxx"; //TMDbのAPIキー | |
$error = ""; | |
if (array_key_exists('movie_title', $_GET) && $_GET['movie_title'] != "") { | |
$url_Contents = | |
file_get_contents("https://api.themoviedb.org/3/search/movie?api_key=".$apikey."&language=ja-JA&query=".$_GET['movie_title']."&page=1&include_adult=false"); | |
$movieArray = json_decode($url_Contents, true); | |
} |
This file contains hidden or 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
@extends('layouts.app') | |
@section('content') | |
<p>本文(ページごとに変えたい)</p> | |
@endsection |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>testapp</title> | |
</head> | |
<body> | |
<h2>サイドバー(同一にしたい)</h2> | |
@yield('content') |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>testapp</title> | |
</head> | |
<body> | |
<h2>サイドバー(同一にしたい)</h2> | |
<p>本文(ページごとに変えたい)</p> |
NewerOlder