MAMPを使ってlocalhostでphpMyAdminにアクセス

MAMPを使ってローカル環境へPHPを環境構築する phpMyAdminへログイン URLからphpMyAdmin phpMyAdminはブラウザで開きます。ApacheとMySQLが起動していなければいけません。 MAMPを使ってphpMyAdminへログインする場合は、ログイ ...
【初心者必見】PHPでPDOでデータベースへ接続する【INSERT INFO】

データベースへの接続手順 1.データベースに接続 2.SQLの作成 3.登録するデータをセット 4.SQL実行 5.データベースの接続解除 全体のソースコード coming soon 1.DBの接続情報 DSNとは dbhはデータベースハンドルの略です。 <?php $DS ...
PHPのnew PDOを使ってMysqlでphpmyadminにアクセスする

PHPを起動できるようにする PHPが動くように、Webサーバーを起動させます。ここでは手軽に動かせるMAMPで動かします。 phpmyadminでユーザー設定を行う phpmyadminでユーザー設定を行います。 PHPのPDOでデータベースへ接続する PDOはPHP Data ...
【which php】ローカルのPHPからMAMP環境でへ変更する

現在のphpのルートを確認 which php .zshrcの編集 vim ~/.zshrc ご自身の使っているshellに合わせてパスを追加します。 パスの追加 export PATH="/Applications/MAMP/bin/php/php8.2.0/bin:$PATH ...
【初心者必見】HomebrewでPHPのインストールする方法

PHPはインストール済みですか? この記事はMacにPHPをインストール方法の紹介です。 HomebrewでPHPをインストールします。 Homebrewについて知識がない方へPHPのパッケージのインストールについての紹介です。
【初心者必見】MacにComposerをインストールする方法/ HomebrewでComposerをインストールする方

Composerを触ったことない方や、Composerについてよく分かってない方や、 初めてで全く知識がない方へ「Composerとは」?や「Cmopserの使い方」などについての紹介です。
【PHP】初めてのCodeIgniterを使って開発を行う方法・手順

みなさんPHPのCodeIgniterの知識はありますか?この記事はCodeIgniterを触ったことない方や、CodeIgniterを触ったことはあるけど、CodeIgniterについてよく分かってない方にCodeIgniterの開発方法ついての紹介です。 この記事でわかること ...
【PHPで配列に追加】array_push,array_mergeなど?foreachで配列にkeyとして値を追加する

array_pushでの配列に値を追加、array_mergeで配列に配列を追加、array_unshiftで配列の先頭に値を追加、実務でも使える、foreachを使って配列keyとなる値を追加する技術の紹介です。
【初心者必見】誰でも分かる!MAMPでバーチャルホストの設定方法【WordPressをローカルで始める】

WordPressやWeb制作するにあたり、ローカル環境で一つのサーバーに対して、複数のドメインを作りたいときに行う設定があります。それがバーチャルホストの設定になります。またバーチャルホストの設定を行うとより、本番環境に近い状態で Webページを制作できます。
【MAMP】MAMPのインストール手順!ローカル環境でWebサーバーを構築方法

この記事はMacを使っていてローカル環境でWebサーバーを構築(Web制作)方法です。 ローカル環境でWebサーバーを構築することによって、Webページを制作やWordPressを自身のパソコン内で動かすことができます。