くわこのpermission denied.

WEBエンジニアの僕がぶつかった技術的な問題や発見

2015-05-26から1日間の記事一覧

【PHP】目的の日までの日数を計算する方法【日付計算】

PHP

PHPで今日から任意の日付までの日数を引き算する方法をメモ。今回のサンプルは期限の時間 $time_limit から現在の時間を引いた結果が秒で出るので、それを日数に変換しています。 $remaining_days = floor((strtotime($time_limit) - strtotime('now')) / (6…

開発サーバーのテーブルを別サーバーのDBに突っ込むまでに調べたこと

久々にこういうコマンド触ったので忘れないようにメモ まずは開発サーバのPostgreSQLのテーブルを抜き取るのにpg_dumpを調べ直しました。 https://www.postgresql.jp/document/9.2/html/app-pgdump.html pg_dump -t [tabel_name] -U[user_name] [database_na…

【git clone】error: Failed connect to gitlab.hogehoge.net:80; Operation now in progress while accessing

git cloneしようとしたら上記エラーが出たのでメモがてらシェア ※ちなみにgitlab使ってます。 git clone http://gitlab.hogehoge.net/hoge/hogepage.git error: Failed connect to gitlab.hogehoge.net:80; Operation now in progress while accessing http:…