{"id":2061,"date":"2024-02-22T15:00:13","date_gmt":"2024-02-22T06:00:13","guid":{"rendered":"https:\/\/www.miraiserver.ne.jp\/column\/?p=2061"},"modified":"2025-08-20T15:50:03","modified_gmt":"2025-08-20T06:50:03","slug":"about_php-coding-method","status":"publish","type":"post","link":"https:\/\/www.miraiserver.ne.jp\/column\/about_php-coding-method\/","title":{"rendered":"PHP\u306e\u66f8\u304d\u65b9\uff1a\u57fa\u672c\u30b3\u30fc\u30c9\u304b\u3089\u30c7\u30d0\u30c3\u30b0\u6280\u8853\u307e\u3067\u5b9f\u8df5\u7684\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3092\u7d39\u4ecb"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-4669 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/02\/\u5dee\u3057\u66ff\u3048\u7528-15\u6e08.webp\" alt=\"\" width=\"900\" height=\"506\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/02\/\u5dee\u3057\u66ff\u3048\u7528-15\u6e08.webp 900w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/02\/\u5dee\u3057\u66ff\u3048\u7528-15\u6e08-300x169.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/02\/\u5dee\u3057\u66ff\u3048\u7528-15\u6e08-640x360.webp 640w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/02\/\u5dee\u3057\u66ff\u3048\u7528-15\u6e08-768x432.webp 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\"><strong>PHP\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u790e<\/strong>\u304b\u3089\u3001\u52b9\u7387\u7684\u3067\u8aad\u307f\u3084\u3059\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u305f\u3081\u306e<strong>\u5b9f\u8df5\u7684\u306a\u30c6\u30af\u30cb\u30c3\u30af<\/strong>\u307e\u3067\u3092\u8a73\u3057\u304f\u89e3\u8aac<\/span>\u3057\u307e\u3059\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u3068\u3057\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>\u5909\u6570\u306e\u5ba3\u8a00<\/li>\n<li>\u95a2\u6570\u306e\u4f7f\u7528<\/li>\n<li>\u6761\u4ef6\u5206\u5c90<span style=\"color: #333333;\">\uff08if\u6587\u3001case\u6587\uff09<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>PHP\u3067Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u884c\u3046\u305f\u3081\u306b\u3001<span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u3092\u7406\u89e3\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/span><\/p>\n<div class=\"well2\" style=\"text-align: center;\">\n<p style=\"text-align: center;\"><span style=\"color: #008000;\"><strong>Linux<\/strong>\u3067<strong>VPS\u3092<\/strong>\u5229\u7528\u3059\u308b\u306a\u3089<\/span><strong style=\"font-size: 16px;\"><span style=\"color: #339966;\"><br \/>\n\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<\/span><\/strong><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-frame-btn&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<\/div>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#PHP\"><span class=\"toc_number toc_depth_1\">1<\/span> PHP\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580<\/a><ul><li><a href=\"#PHP-2\"><span class=\"toc_number toc_depth_2\">1.1<\/span> PHP\u306e\u6982\u8981<\/a><\/li><li><a href=\"#PHP-3\"><span class=\"toc_number toc_depth_2\">1.2<\/span> PHP\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u524d\u306b\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068<\/a><\/li><\/ul><\/li><li><a href=\"#PHP-4\"><span class=\"toc_number toc_depth_1\">2<\/span> PHP\u306e\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9<\/a><ul><li><a href=\"#i\"><span class=\"toc_number toc_depth_2\">2.1<\/span> \u30eb\u30fc\u30eb\u3068\u69cb\u9020<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_2\">2.2<\/span> \u5909\u6570\u3068\u30c7\u30fc\u30bf\u578b<\/a><\/li><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_2\">2.3<\/span> \u6761\u4ef6\u5206\u5c90\u3068\u7e70\u308a\u8fd4\u3057<\/a><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_2\">2.4<\/span> \u95a2\u6570\u306e\u5b9a\u7fa9\u3068\u4f7f\u7528<\/a><\/li><\/ul><\/li><li><a href=\"#i-5\"><span class=\"toc_number toc_depth_1\">3<\/span> \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u899a\u3048\u308b\u3079\u304d\u30c6\u30af\u30cb\u30c3\u30af<\/a><ul><li><a href=\"#i-6\"><span class=\"toc_number toc_depth_2\">3.1<\/span> \u30a8\u30e9\u30fc\u51e6\u7406\u3068\u30c7\u30d0\u30c3\u30b0\u65b9\u6cd5<\/a><\/li><li><a href=\"#i-7\"><span class=\"toc_number toc_depth_2\">3.2<\/span> \u30b3\u30fc\u30c9\u306e\u6700\u9069\u5316\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a<\/a><\/li><\/ul><\/li><li><a href=\"#i-8\"><span class=\"toc_number toc_depth_1\">4<\/span> \u307e\u3068\u3081<\/a><\/li><li><a href=\"#UnixLinuxVPS\"><span class=\"toc_number toc_depth_1\">5<\/span> Unix\u3084Linux\u306eVPS\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/a><\/li><\/ul><\/div>\n<h2 class=\"styled_h2\"><span id=\"PHP\">PHP\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"PHP-2\">PHP\u306e\u6982\u8981<\/span><\/h3>\n<p>\u5143\u3005PHP\u3068\u3044\u3046\u540d\u524d\u306f\u300cPersonal Home Page Tools\u300d\u3067\u3057\u305f\u304c\u3001\u73fe\u5728\u3067\u306f\u300c<span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><strong>PHP: Hypertext Preprocessor<\/strong><\/span>\u300d\u306e\u7565\u79f0\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>PHP\u306f\u3001<span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u5b9f\u884c\u3055\u308c\u308b<strong>\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e<\/strong>\u3067\u3059\u3002<\/span><\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\"><strong>\u591a\u69d8\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306e\u9023\u643a<\/strong>\u3084<strong>\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406<\/strong>\u306a\u3069Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306b\u5fc5\u8981\u306a\u6a5f\u80fd<\/span>\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u6a5f\u80fd\u3092\u7528\u3044\u3066\u3001\u52d5\u7684\u306aWeb\u30da\u30fc\u30b8\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u306b\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>PHP\u306e\u7279\u5fb4\u3084\u57fa\u672c\u60c5\u5831\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_php\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/02\/\u5dee\u3057\u66ff\u3048\u7528-16\u6e08.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2024.02.15<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_php\/\">PHP\u3068\u306f\u3002\u4eba\u6c17\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u57fa\u672c\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>\r\n\r\nPHP\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306b\u304a\u3044\u3066\u4eba\u6c17\u306e\u9ad8\u3044\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\r\n\r\n\u52d5\u7684\u306a\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306b\u5229\u7528...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n<h3 class=\"styled_h3\"><span id=\"PHP-3\">PHP\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u524d\u306b\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068<\/span><\/h3>\n<p>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u306b\u306f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">PHP\u4ee5\u5916\u306b\u3082\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>Web\u958b\u767a\u306e\u57fa\u790e\u77e5\u8b58<span style=\"color: #333333;\">\uff08\u7279\u306bHTML\u304a\u3088\u3073CSS\u306b\u3064\u3044\u3066\u306e\u7406\u89e3\uff09<\/span><\/li>\n<li>\u958b\u767a\u74b0\u5883\u306e\u69cb\u7bc9<span style=\"color: #333333;\">\uff08PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001XAMPP\u3001LAMP\u3001WAMP\u3001MAMP\u306a\u3069\uff09<\/span><\/li>\n<li>\u57fa\u672c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u6982\u5ff5<\/li>\n<li>\u30a8\u30e9\u30fc\u5bfe\u5fdc\u306e\u65b9\u6cd5<span style=\"color: #333333;\">\uff08\u30c7\u30d0\u30c3\u30b0\u306e\u4ed5\u65b9\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306e\u6d3b\u7528\uff09<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u958b\u767a\u74b0\u5883\u306e\u69cb\u7bc9\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_lamp_installation_method\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/01\/LAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u3010Ubuntu20.04-LTS\u3001Ubuntu-22.04-LTS\u3011-1.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2024.01.04<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_lamp_installation_method\/\">LAMP\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u624b\u9806\u3010Ubuntu20.04 LTS\u3001Ubuntu 22.04 LTS\u3011\u3000<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>\r\nLAMP\u74b0\u5883\u3068\u306f\u3001Linux\u3001Apache\u3001MySQL\u3001PHP\u3092\u4f7f\u7528\u3057\u305f\u4e3b\u6d41\u306eWeb\u958b\u767a\u74b0\u5883\u3067\u3059\u3002\r\n\r\n\u5168\u3066\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n<h2 class=\"styled_h2\"><span id=\"PHP-4\">PHP\u306e\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9<\/span><\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-4667\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/02\/\u753b\u50cf1-1-481x360.webp\" alt=\"\" width=\"481\" height=\"360\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/02\/\u753b\u50cf1-1-481x360.webp 481w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/02\/\u753b\u50cf1-1-300x225.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/02\/\u753b\u50cf1-1.webp 602w\" sizes=\"(max-width: 481px) 100vw, 481px\" \/><\/p>\n<p>\u3053\u3053\u304b\u3089\u306f\u3001\u5177\u4f53\u7684\u306a<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">PHP\u306e\u66f8\u304d\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/span><\/p>\n<h3 class=\"styled_h3\"><span id=\"i\">\u30eb\u30fc\u30eb\u3068\u69cb\u9020<\/span><\/h3>\n<p>PHP\u306e\u30b3\u30fc\u30c9\u306f<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u300c<strong>&lt;?php<\/strong>\u300d\u3067\u59cb\u307e\u308a\u300c<strong>?&gt;<\/strong>\u300d\u3067\u7d42\u308f\u308b\u3053\u3068\u304c\u57fa\u672c<\/span>\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u69cb\u6587\u306f\u3001<span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">PHP\u30b3\u30fc\u30c9\u3092<\/span><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">HTML\u3068\u533a\u5225\u3059\u308b\u305f\u3081<\/span>\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>&lt;?php<\/strong><br \/>\n<strong>echo \u2018Hello, World PHP!!\u2019;<\/strong><br \/>\n<strong>?&gt;<\/strong><\/p>\n<p>PHP\u30d5\u30a1\u30a4\u30eb\u5185\u3067\u306f\u3001\u3053\u306e\u958b\u59cb\u30bf\u30b0\u3068\u7d42\u4e86\u30bf\u30b0\u306e\u9593\u306bPHP\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u300c<strong>echo<\/strong>\u300d\u306f\u6587\u5b57\u5217\u306a\u3069\u306e\u8868\u793a\u3092\u547d\u4ee4\u3057\u307e\u3059\u3002<\/span><\/p>\n<p>\u300c\u2019\uff08\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff09\u2019\u300d\u304b\u300c&#8221;\uff08\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff09&#8221;\u300d\u3092\u4f7f\u7528\u3057\u3066\u6587\u5b57\u5217\u3092\u56f2\u307f\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u9055\u3044\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"301\">\u2019\uff08\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff09\u2019<\/td>\n<td width=\"301\">\u6587\u5b57\u5217\u5185\u306e\u5909\u6570\u3092\u5909\u6570\u5024\u306b\u5909\u63db\u3057\u306a\u3044<\/td>\n<\/tr>\n<tr>\n<td width=\"301\">&#8220;\uff08\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff09&#8221;<\/td>\n<td width=\"301\">\u6587\u5b57\u5217\u5185\u306e\u5909\u6570\u3092\u5909\u6570\u5024\u306b\u5909\u63db\u3059\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u307e\u305f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u6587\u306e\u7d42\u308f\u308a\u306b<strong>\u30bb\u30df\u30b3\u30ed\u30f3\uff08;\uff09<\/strong>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u5fc5\u9808<\/span>\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001PHP\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u306b\u6587\u306e\u7d42\u4e86\u3092\u77e5\u3089\u305b\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3001<span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u8907\u6570\u306e\u6587\u3092\u4e00\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304f\u5834\u5408\u306b\u306f\u7279\u306b\u91cd\u8981<\/span>\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">PHP\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u306f\u30b3\u30e1\u30f3\u30c8\u3092\u8a18\u8f09\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p>\u30b3\u30e1\u30f3\u30c8\u306e\u8a18\u8f09\u306f<span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><strong>\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u3092\u9ad8\u3081\u308b\u305f\u3081\u306b\u91cd\u8981<\/strong>\u3067\u3001\u5185\u5bb9\u3092\u7406\u89e3\u3057\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306b\u8a18\u8f09<\/span>\u3057\u3066\u304a\u304f\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4e00\u884c\u30b3\u30e1\u30f3\u30c8\u306f\u300c<strong>\/\/<\/strong>\u300d\u307e\u305f\u306f\u300c<strong>#<\/strong>\u300d\u3067\u3001\u8907\u6570\u884c\u306e\u30b3\u30e1\u30f3\u30c8\u306f\u300c<strong>\/* \u30b3\u30e1\u30f3\u30c8 *\/<\/strong>\u300d\u3067\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>&lt;?php<\/strong><br \/>\n<strong>\/\/ \u3053\u306e\u884c\u306f\u30b3\u30e1\u30f3\u30c8\u3067\u3059\u3002<\/strong><br \/>\n<strong>echo \u2018Hello, World PHP!!\u2019;<\/strong><br \/>\n<strong>\/*<\/strong><br \/>\n<strong>\u3053\u306e\u7bc4\u56f2\u306e\u6587\u7ae0\u306f\u30b3\u30e1\u30f3\u30c8\u3068\u306a\u308a\u3001\u30b3\u30fc\u30c9\u3068\u3057\u3066\u6271\u308f\u308c\u307e\u305b\u3093\u3002<\/strong><br \/>\n<strong>*\/<\/strong><br \/>\n<strong>?&gt;<\/strong><\/p>\n<p style=\"text-align: center;\"><span style=\"color: #008080;\"><strong>VPS\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<br \/>\n\uff3c 2\u9031\u9593\u7121\u6599\u30fb\u5168\u30d7\u30e9\u30f3SSD\u642d\u8f09 \uff0f<\/strong><\/span><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=btn-vps&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener noreferrer\">\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3092\u7121\u6599\u3067\u8a66\u3059<\/a><\/p>\n<h3 class=\"styled_h3\"><span id=\"i-2\">\u5909\u6570\u3068\u30c7\u30fc\u30bf\u578b<\/span><\/h3>\n<p>PHP\u3067\u306f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u5909\u6570\u306f\u300c<strong>$<\/strong>\u300d\u8a18\u53f7\u306b\u7d9a\u3051\u3066\u540d\u524d\u3092\u4ed8\u3051\u308b\u3053\u3068\u3067\u5ba3\u8a00\u3055\u308c\u307e\u3059\u3002<\/span><\/p>\n<p>PHP\u304c\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u4e3b\u306a\u30c7\u30fc\u30bf\u578b\u306b\u306f\u3001\u4ee5\u4e0b\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 245px;\">\n<tbody>\n<tr style=\"height: 35px;\">\n<td style=\"width: 50%; height: 35px; background-color: #bff5cc;\"><strong>\u30c7\u30fc\u30bf\u578b\u30ab\u30c6\u30b4\u30ea<\/strong><\/td>\n<td style=\"width: 50%; height: 35px; background-color: #bff5cc;\"><strong>\u30c7\u30fc\u30bf\u578b<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 35px;\">\n<td style=\"width: 50%; height: 35px;\">\u6570\u5024\u578b\uff1a\u6574\u6570<\/td>\n<td style=\"width: 50%; height: 35px;\">int<\/td>\n<\/tr>\n<tr style=\"height: 35px;\">\n<td style=\"width: 50%; height: 35px;\">\u6570\u5024\u578b\uff1a\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570<\/td>\n<td style=\"width: 50%; height: 35px;\">float<\/td>\n<\/tr>\n<tr style=\"height: 35px;\">\n<td style=\"width: 50%; height: 35px;\">\u6587\u5b57\u5217\u578b<\/td>\n<td style=\"width: 50%; height: 35px;\">string<\/td>\n<\/tr>\n<tr style=\"height: 35px;\">\n<td style=\"width: 50%; height: 35px;\">boolean\u578b<\/td>\n<td style=\"width: 50%; height: 35px;\">boolean<\/td>\n<\/tr>\n<tr style=\"height: 35px;\">\n<td style=\"width: 50%; height: 35px;\">\u914d\u5217\u578b<\/td>\n<td style=\"width: 50%; height: 35px;\">array<\/td>\n<\/tr>\n<tr style=\"height: 35px;\">\n<td style=\"width: 50%; height: 35px;\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u578b<\/td>\n<td style=\"width: 50%; height: 35px;\">object\u3001NULL<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f8b\u3048\u3070\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u300c<strong>$number = 3;<\/strong>\u300d\u306f\u6574\u6570\u578b\u306e\u5909\u6570<\/span>\u3092\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u300c<strong>$text = &#8220;Hello, World!&#8221;;<\/strong>\u300d\u306f\u6587\u5b57\u5217\u578b\u306e\u5909\u6570<\/span>\u3092\u5ba3\u8a00\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u5909\u6570\u540d\u306f\u3001<strong>\u82f1\u5b57\uff08\u5927\u6587\u5b57\u3001\u5c0f\u6587\u5b57\uff09<\/strong>\u3001<strong>\u6570\u5b57<\/strong>\u3001<strong>\u30a2\u30f3\u30c0\u30fc\u30b9\u30b3\u30a2<\/strong>\u304c\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p>\u5927\u6587\u5b57\u30fb\u5c0f\u6587\u5b57\u306f\u533a\u5225\u3055\u308c\u308b\u305f\u3081\u3001<strong>\u4e00\u8cab\u6027\u3092\u6301\u305f\u305b\u308b\u3053\u3068<\/strong>\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>&lt;?php<\/strong><br \/>\n<strong> $number = 3;<br \/>\n$text = \u201cHello, World!\u201d;<br \/>\necho $text;<\/strong><br \/>\n<strong>?&gt;<\/strong><\/p>\n<p>PHP\u3067\u306f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u5909\u6570\u306e\u5ba3\u8a00\u6642\u306b\u5909\u6570\u306e\u30c7\u30fc\u30bf\u578b\u3092\u5ba3\u8a00\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/span><\/p>\n<p>\u3053\u308c\u306f<span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u300c<strong>\u52d5\u7684\u578b\u4ed8\u3051<\/strong>\u300d<\/span>\u306b\u3088\u308a\u3001\u4ee3\u5165\u3055\u308c\u305f\u5024\u306b\u3088\u3063\u3066\u81ea\u52d5\u7684\u306b\u30c7\u30fc\u30bf\u578b\u304c\u5224\u65ad\u3055\u308c\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"i-3\">\u6761\u4ef6\u5206\u5c90\u3068\u7e70\u308a\u8fd4\u3057<\/span><\/h3>\n<p>PHP\u306e<strong>\u5236\u5fa1\u69cb\u9020<\/strong>\u306b\u306f\u3001\u4ee5\u4e0b\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>\u6761\u4ef6\u5206\u5c90<span style=\"color: #333333;\">\uff08<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">if\u3001else\u3001elseif\u3001switch<\/span>\uff09<\/span><\/li>\n<li>\u7e70\u308a\u8fd4\u3057<span style=\"color: #333333;\">\uff08<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">for\u3001foreach\u3001while\u3001do-while<\/span>\uff09<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u306e\u69cb\u9020\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u6d41\u308c\u3092\u5236\u5fa1\u3057\u3001\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u7570\u306a\u308b\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001<span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">if\u6587\u306f\u3042\u308b\u6761\u4ef6\u304c\u771f\uff08<strong>true<\/strong>\uff09\u306e\u5834\u5408\u306b\u7279\u5b9a\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3001else\u306f\u305d\u306e\u6761\u4ef6\u304c\u507d\uff08<strong>false<\/strong>\uff09\u306e\u5834\u5408\u306b\u7570\u306a\u308b\u30b3\u30fc\u30c9\u3092\u5b9f\u884c<\/span>\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>&lt;?php<\/strong><br \/>\n<strong>$age = 25;<\/strong><br \/>\n<strong> if ($age &gt;= 20){<br \/>\necho &#8216;\u3042\u306a\u305f\u306e\u5e74\u9f62\u306f20\u6b73\u4ee5\u4e0a\u3067\u3059\u306d\uff01&#8217;;<\/strong><br \/>\n<strong> }<br \/>\n?&gt;<\/strong><\/p>\n<p>while\u306f\u3001\u8a18\u8f09\u3055\u308c\u305f\u6761\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u308b\u9593\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u30b3\u30fc\u30c9\u3092\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>&lt;?php<\/strong><br \/>\n<strong>$val = 0;<\/strong><br \/>\n<strong>while ($val &lt; 5) {<\/strong><br \/>\n<strong>echo $val;<\/strong><br \/>\n<strong>echo &#8216;&lt;br&gt;&#8217;;<\/strong><br \/>\n<strong>$val++;<\/strong><br \/>\n<strong>}<br \/>\n?&gt;<\/strong><\/p>\n<p>\u3053\u308c\u3089\u306e\u69cb\u9020\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001<span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u8907\u96d1\u306a\u6761\u4ef6\u4e0b\u3067\u306e\u30c7\u30fc\u30bf\u51e6\u7406\u3084\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u7c21\u6f54\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<h3 class=\"styled_h3\"><span id=\"i-4\">\u95a2\u6570\u306e\u5b9a\u7fa9\u3068\u4f7f\u7528<\/span><\/h3>\n<p>\u8907\u96d1\u306a\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3059\u308b\u5834\u5408\u3084\u3001\u540c\u3058\u51e6\u7406\u3092\u8907\u6570\u306e\u500b\u6240\u3067\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u3001\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u3066\u307e\u3068\u3081\u308b\u306e\u304c\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u95a2\u6570\u306ffunction\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u5b9a\u7fa9\u3055\u308c\u3001\u4efb\u610f\u306e\u6570\u306e\u5f15\u6570\u3092\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span>\u95a2\u6570\u306e\u57fa\u672c\u7684\u306a\u69cb\u6587\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p class=\"well2\"><strong>function functionName($arg1, $arg2) {<\/strong><br \/>\n<strong>\/\/ \u95a2\u6570\u306e\u51e6\u7406<\/strong><br \/>\n<strong>return $result;<\/strong><br \/>\n<strong>}<\/strong><\/p>\n<p><strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">functionName<\/span><\/strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u306f\u95a2\u6570\u306e\u540d\u524d<\/span><strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u3001$arg1<\/span><\/strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u3068<\/span><strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">$arg2<\/span><\/strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u306f<\/span><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u5f15\u6570<\/span><strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u3001$result<\/span><\/strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u306f\u95a2\u6570\u306e\u51e6\u7406\u7d50\u679c<\/span>\u3067\u3059\u3002<\/p>\n<p>PHP\u306f\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3059\u308b\u8a00\u8a9e\u3067\u3059\u304c\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u95a2\u6570\u540d\u306b\u95a2\u3057\u3066\u306f\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3057\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/span><\/p>\n<p>\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u305f\u5f8c\u3001\u95a2\u6570\u540d\u306b\u7d9a\u3051\u3066\u62ec\u5f27\u5185\u306b\u5f15\u6570\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u305d\u306e\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u547c\u3073\u51fa\u3057\u6642\u306b<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u8a2d\u5b9a\u3055\u308c\u305f\u5f15\u6570\u3092\u52a0\u7b97\u3057\u3001\u7d50\u679c\u3092\u8fd4\u3059\u95a2\u6570\u300c<strong>test_sum<\/strong>\u300d\u3092\u4f7f\u7528<\/span>\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>function test_sum($arg1, $arg2) {<\/strong><br \/>\n<strong>\/\/ \u95a2\u6570\u306e\u51e6\u7406<\/strong><br \/>\n<strong>return $arg1 + $arg2;<\/strong><br \/>\n<strong>}<\/strong><br \/>\n<strong>echo test_sum(2, 3);<\/strong><\/p>\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3057\u305f\u5834\u5408\u3001\u5f15\u6570\u3068\u3057\u30662\u30683\u3092\u6e21\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u7d50\u679c\u3068\u3057\u30665\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u95a2\u6570\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001<span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u30b3\u30fc\u30c9\u306e\u91cd\u8907\u3092\u907f\u3051\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u5168\u4f53\u306e\u53ef\u8aad\u6027\u3068\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"color: #008080;\"><strong>VPS\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<br \/>\n\uff3c 2\u9031\u9593\u7121\u6599\u30fb\u5168\u30d7\u30e9\u30f3SSD\u642d\u8f09 \uff0f<\/strong><\/span><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=btn-vps&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener noreferrer\">\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3092\u7121\u6599\u3067\u8a66\u3059<\/a><\/p>\n<h2 class=\"styled_h2\"><span id=\"i-5\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u899a\u3048\u308b\u3079\u304d\u30c6\u30af\u30cb\u30c3\u30af<\/span><\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-4668\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/02\/\u753b\u50cf2-1-540x360.webp\" alt=\"\" width=\"540\" height=\"360\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/02\/\u753b\u50cf2-1-540x360.webp 540w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/02\/\u753b\u50cf2-1-300x200.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/02\/\u753b\u50cf2-1.webp 602w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/p>\n<h3 class=\"styled_h3\"><span id=\"i-6\">\u30a8\u30e9\u30fc\u51e6\u7406\u3068\u30c7\u30d0\u30c3\u30b0\u65b9\u6cd5<\/span><\/h3>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u4f5c\u6210\u3057\u305f\u30b3\u30fc\u30c9\u306b\u30a8\u30e9\u30fc\u304c\u306a\u3044\u304b\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u3092\u300c<strong>\u30c7\u30d0\u30c3\u30b0<\/strong>\u300d\u3068\u3044\u3044\u307e\u3059\u3002<\/span><\/p>\n<p>\u30a8\u30e9\u30fc\u304c\u3042\u3063\u305f\u5834\u5408\u306f\u4fee\u6b63\u3059\u308b\u304b\u3001\u3082\u3057\u304f\u306f\u4f8b\u5916\u51e6\u7406\u3092\u7528\u610f\u3057\u9069\u5207\u306b\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u5927\u5207\u3067\u3059\u3002<\/p>\n<p>PHP\u3067\u306f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u30a2\u30f3\u30c0\u30fc\u30e9\u30a4\u30f32\u300c<strong>error_reporting()\u95a2\u6570<\/strong>\u300d\u3092\u4f7f\u7528\u3057\u3066\u30a8\u30e9\u30fc\u30ec\u30d9\u30eb\u3092\u8a2d\u5b9a\u3057\u3001\u300c<strong>try\u30d6\u30ed\u30c3\u30af<\/strong>\u300d\u3068\u300c<strong>catch\u30d6\u30ed\u30c3\u30af<\/strong>\u300d\u3092\u5229\u7528\u3057\u3066\u4f8b\u5916\u3092\u6355\u6349<\/span>\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u203b<strong>()\u5185\u306b\u306f\u51fa\u529b\u3057\u305f\u3044\u5909\u6570\u3092\u4ee3\u5165<\/strong><\/span><\/p>\n<p class=\"well2\"><strong>&lt;?php<\/strong><br \/>\n<strong>\/\/ \u30a8\u30e9\u30fc\u8868\u793a\u30ec\u30d9\u30eb\u3092\u8a2d\u5b9a\u3059\u308b<\/strong><br \/>\n<strong>error_reporting(E_ALL);<\/strong><br \/>\n<strong>try {<\/strong><br \/>\n<strong>\/\/ \u3053\u3053\u306b\u30c6\u30b9\u30c8\u3057\u305f\u3044\u30b3\u30fc\u30c9\u3092\u633f\u5165<\/strong><br \/>\n<strong>\/\/ \u4f8b: 1\u30920\u3067\u5272\u308b<\/strong><br \/>\n<strong>$result = 1 \/ 0;<\/strong><br \/>\n<strong>\/\/ \u4f8b\u5916\u304c\u767a\u751f\u3057\u306a\u3051\u308c\u3070\u3001\u7d50\u679c\u3092\u51fa\u529b\u3059\u308b<\/strong><br \/>\n<strong>echo &#8220;\u7d50\u679c: &#8221; . $result;<\/strong><br \/>\n<strong>} catch (Exception $e) {<\/strong><br \/>\n<strong>\/\/ \u4f8b\u5916\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51fa\u529b\u3059\u308b<\/strong><br \/>\n<strong>echo &#8220;\u30a8\u30e9\u30fc: &#8221; . $e-&gt;getMessage();<\/strong><br \/>\n<strong>}<\/strong><\/p>\n<p>\u958b\u767a\u6642\u306f\u3053\u308c\u3089\u3092\u4f7f\u7528\u3057\u3066<span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u3059\u3079\u3066\u306e\u30a8\u30e9\u30fc\u3092\u5831\u544a\u3059\u308b\u8a2d\u5b9a\u306b\u3057\u3001\u672a\u5b9a\u7fa9\u306e\u5909\u6570\u3084\u914d\u5217\u306e\u8aa4\u3063\u305f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30a2\u30af\u30bb\u30b9\u306a\u3069\u3001\u898b\u9003\u3057\u304c\u3061\u306a\u554f\u984c\u3092\u767a\u898b\u3057\u3084\u3059\u304f\u3057\u307e\u3059\u3002<\/span><\/p>\n<p>\u30c7\u30d0\u30c3\u30b0\u306b\u306f\u3001\u5909\u6570\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u300c<strong>var_dump()<\/strong>\u300d\u3084\u300c<strong>print_r()<\/strong>\u300d\u95a2\u6570\u304c\u5f79\u7acb\u3061\u307e\u3059\u3002<\/span><\/p>\n<p>\u307e\u305f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\"><strong>Xdebug<\/strong><\/span>\u306a\u3069\u306e\u30c7\u30d0\u30c3\u30b0\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u306e\u8a2d\u5b9a\u3001\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c\u3001\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u306e\u8868\u793a\u306a\u3069\u3001\u3088\u308a\u9ad8\u5ea6\u306a\u30c7\u30d0\u30c3\u30b0\u304c\u53ef\u80fd<\/span>\u306b\u306a\u308a\u3001\u554f\u984c\u306e\u7279\u5b9a\u3068\u89e3\u6c7a\u304c\u683c\u6bb5\u306b\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u5b9a\u671f\u7684\u306b\u30c1\u30a7\u30c3\u30af\u3057\u3001\u8b66\u544a\u3084\u901a\u77e5\u3082\u9069\u5207\u306b\u5bfe\u51e6\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u30af\u30ea\u30fc\u30f3\u3067\u4fdd\u5b88\u3057\u3084\u3059\u3044\u30b3\u30fc\u30c9\u3092\u7dad\u6301\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"i-7\">\u30b3\u30fc\u30c9\u306e\u6700\u9069\u5316\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a<\/span><\/h3>\n<p><strong>\u30b3\u30fc\u30c9<\/strong>\u306f\u300c\u305f\u3060\u52d5\u3051\u3070\u3088\u3044\u300d\u3068\u3044\u3046\u3082\u306e\u3067\u306f\u306a\u304f\u3001<strong>\u6700\u9069\u5316\u3059\u308b\u5fc5\u8981<\/strong>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u7279\u306b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u306b\u76f4\u63a5\u5f71\u97ff\u3059\u308b\u305f\u3081\u3001PHP\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u3067\u306f<strong>\u91cd\u8981\u306a\u8003\u616e\u4e8b\u9805<\/strong>\u3067\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u30b3\u30fc\u30c9\u306e\u6700\u9069\u5316<\/span>\u306f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\"><strong>\u5b9f\u884c\u901f\u5ea6\u306e\u5411\u4e0a<\/strong>\u3068<strong>\u30b5\u30fc\u30d0\u30fc\u8cc7\u6e90\u306e\u52b9\u7387\u7684\u306a\u5229\u7528<\/strong><\/span>\u306e\u4e21\u65b9\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u3001\u4ee5\u4e0b\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>\u4e0d\u8981\u306a\u8a08\u7b97\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30a8\u30ea\u306e\u524a\u9664<\/li>\n<li>\u518d\u5229\u7528\u53ef\u80fd\u306a\u30b3\u30fc\u30c9\u306e\u95a2\u6570\u5316<\/li>\n<li>\u30eb\u30fc\u30d7\u5185\u3067\u306e\u4e0d\u5fc5\u8981\u306a\u51e6\u7406\u306e\u9664\u53bb<\/li>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u3084\u5916\u90e8\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u308b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\"><strong>\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0<\/strong><\/span>\u306f<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\"><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a<\/strong>\u306e\u305f\u3081\u306e\u3082\u3046\u4e00\u3064\u306e\u6709\u52b9\u306a\u624b\u6bb5<\/span>\u3067\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u8a08\u7b97\u7d50\u679c\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30a8\u30ea\u306e\u7d50\u679c\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068\u3067\u3001\u540c\u3058\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5bfe\u3057\u3066\u6bce\u56de\u51e6\u7406\u3092\u884c\u3046\u5fc5\u8981\u3092\u306a\u304f\u3057\u3001<strong>\u5fdc\u7b54\u6642\u9593\u3092\u5927\u5e45\u306b\u77ed\u7e2e<\/strong><\/span>\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><strong>\u30aa\u30fc\u30c8\u30ed\u30fc\u30c9\u6a5f\u80fd<\/strong>\u3092\u5229\u7528\u3057\u3066\u30af\u30e9\u30b9\u3092\u9069\u5b9c\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067\u3001\u5fc5\u8981\u306a\u30b3\u30fc\u30c9\u306e\u307f\u3092\u5b9f\u884c\u6642\u306b\u8aad\u307f\u8fbc\u307f\u3001\u5168\u4f53\u7684\u306a<strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a<\/strong>\u3055\u305b\u308b\u3053\u3068<\/span>\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u30d2\u30f3\u30c8\u3092\u5b9f\u8df5\u3059\u308b\u3053\u3068\u3067\u3001PHP\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u958b\u767a\u52b9\u7387\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u51e6\u7406\u3068\u30c7\u30d0\u30c3\u30b0\u3078\u306e\u6ce8\u610f\u6df1\u3044\u53d6\u308a\u7d44\u307f\u306b\u3088\u308a\u3001<strong>\u3088\u308a\u5b89\u5b9a\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9<\/strong>\u3057\u3001\u30b3\u30fc\u30c9\u306e\u6700\u9069\u5316\u3092\u901a\u3058\u3066\u3001\u6700\u7d42\u7684\u306a\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3092\u6539\u5584\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2 class=\"styled_h2\"><span id=\"i-8\">\u307e\u3068\u3081<\/span><\/h2>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001\u300c<strong>PHP\u306e\u66f8\u304d\u65b9<\/strong>\u300d\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3001\u4f5c\u6210\u3057\u305f\u30b3\u30fc\u30c9\u306b\u30a8\u30e9\u30fc\u304c\u306a\u3044\u304b\u30c6\u30b9\u30c8\u3059\u308b\u300c<strong>\u30c7\u30d0\u30c3\u30b0<\/strong>\u300d\u306b\u3064\u3044\u3066\u3082\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>PHP\u306f<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u591a\u6570\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u4e2d\u3067\u3082\u7fd2\u5f97\u3057\u3084\u3059\u304f\u3001\u521d\u5fc3\u8005\u306b\u3082\u304a\u3059\u3059\u3081<\/span>\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u7d39\u4ecb\u3057\u305f\u66f8\u304d\u65b9\u3092\u53c2\u8003\u306b\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u884c\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u30a8\u30e9\u30fc\u51e6\u7406\u3084\u30b3\u30fc\u30c9\u306e\u6700\u9069\u5316\u306f\u3001\u5b9f\u969b\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u3057\u305f\u3068\u304d\u306b\u5fc5\u305a\u5f79\u7acb\u3064\u30c6\u30af\u30cb\u30c3\u30af\u306a\u306e\u3067\u3001\u899a\u3048\u3066\u304a\u304f\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/span><\/p>\n<h2 class=\"styled_h2\"><span id=\"UnixLinuxVPS\">Unix\u3084Linux\u306eVPS\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/span><\/h2>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/strong><\/a>\u306f\u3001\u30a2\u30b7\u30b9\u30c8\u30a2\u30c3\u30d7\u682a\u5f0f\u4f1a\u793e\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3001<strong>Unix\u7cfb\u30b5\u30fc\u30d0\u30fc<\/strong>\u306b\u7279\u5316\u3057\u305f\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306eVPS<\/strong><\/a>\u3067\u306f\u3001<strong>\u9ad8\u901f\u51e6\u7406\u304c\u53ef\u80fd\u306aSSD<\/strong>\u3092<strong>\u5168\u30d7\u30e9\u30f3\u306b\u642d\u8f09<\/strong>\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">OS\u306f\u3001<b>Ubuntu<\/b>\u3084<b>Debian<\/b>\u3001<b>AlmaLinux<\/b>\u306a\u3069\u306e\u8c4a\u5bcc\u306a\u30e9\u30a4\u30f3\u30a2\u30c3\u30d7\u304b\u3089\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\"><strong>2\u9031\u9593\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb<\/strong><\/a>\u3092\u5b9f\u65bd\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u307e\u305a\u306f\u304a\u6c17\u8efd\u306b\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\">\u25bc\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u25bc<\/a><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-111 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"336\" height=\"280\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png 336w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a-300x250.png 300w\" sizes=\"(max-width: 336px) 100vw, 336px\" \/><\/a><\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u30d7\u30e9\u30f3\u306e\u9078\u629e\u3067\u304a\u56f0\u308a\u306e\u5834\u5408\u306f\u3001\u305c\u3072\u4e00\u5ea6\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p style=\"text-align: center;\"><a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/formmail.html?utm_source=btn-vps&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener noreferrer\">\u304a\u554f\u3044\u5408\u308f\u305b\u306f\u3053\u3061\u3089<\/a><\/p>\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/miraiserver_vps\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/08\/VPS\u306b\u7533\u8fbc\u307f\u3001SSH\u63a5\u7d9a\u3059\u308b\u307e\u3067\u306e\u6d41\u308c\u3010\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3011-2.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2023.08.03<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/miraiserver_vps\/\">VPS\u306b\u7533\u8fbc\u307f\u3001SSH\u63a5\u7d9a\u3059\u308b\u307e\u3067\u306e\u6d41\u308c\u3010\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3011<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>\u30aa\u30f3\u30e9\u30a4\u30f3\u30d3\u30b8\u30cd\u30b9\u3084Web\u30b5\u30a4\u30c8\u306e\u904b\u55b6\u3092\u59cb\u3081\u308b\u969b\u306b\u306f\u3001\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u306e\u4e2d\u304b\u3089\u81ea\u5206\u306e\u7528\u9014\u306b\u5408\u3063\u305f\u30b5\u30fc\u30d0\u30fc\u74b0\u5883\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u4e00\u822c\u7684\u3067\u3059\u3002...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n","protected":false},"excerpt":{"rendered":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001PHP\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u790e\u304b\u3089\u3001\u52b9\u7387\u7684\u3067\u8aad\u307f\u3084\u3059\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u305f\u3081\u306e\u5b9f\u8df5\u7684\u306a\u30c6\u30af\u30cb\u30c3\u30af\u307e\u3067\u3092\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002 \u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u3068\u3057\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u3052\u3089\u308c\u307e\u3059\u3002 \u5909\u6570\u306e\u5ba3\u8a00 \u95a2\u6570\u306e\u4f7f\u7528 \u6761\u4ef6\u5206\u5c90\uff08if\u6587\u3001case\u6587\uff09 PHP\u3067Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u884c\u3046\u305f\u3081\u306b\u3001\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u3092\u7406\u89e3\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002 Linux\u3067VPS\u3092\u5229\u7528\u3059\u308b\u306a\u3089 \u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc \uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f VPS\u3092\u4f7f\u3063\u3066\u307f\u308b \u76ee\u6b211 PHP\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u95801.1 PHP\u306e\u6982\u89811.2 PHP\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u524d\u306b\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u30682 PHP\u306e\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b92.1 \u30eb\u30fc\u30eb\u3068\u69cb\u90202.2 \u5909\u6570\u3068\u30c7\u30fc\u30bf\u578b2.3 \u6761\u4ef6\u5206\u5c90\u3068\u7e70\u308a\u8fd4\u30572.4 \u95a2\u6570\u306e\u5b9a\u7fa9\u3068\u4f7f\u75283 \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u899a\u3048\u308b\u3079\u304d\u30c6\u30af\u30cb\u30c3\u30af3.1 \u30a8\u30e9\u30fc\u51e6\u7406\u3068\u30c7\u30d0\u30c3\u30b0\u65b9\u6cd53.2 \u30b3\u30fc\u30c9\u306e\u6700\u9069\u5316\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a4 \u307e\u3068\u30815 Unix\u3084Linux\u306eVPS\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc PHP\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580 PHP\u306e\u6982\u8981 \u5143\u3005PHP\u3068\u3044\u3046\u540d\u524d\u306f\u300cPersonal Home Page Tools\u300d\u3067\u3057\u305f\u304c\u3001\u73fe\u5728\u3067\u306f\u300cPHP: Hypertext Preprocessor\u300d\u306e\u7565\u79f0\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 PHP\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u5b9f\u884c\u3055\u308c\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u3067\u3059\u3002 \u591a\u69d8\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306e\u9023\u643a\u3084\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306a\u3069Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306b\u5fc5\u8981\u306a\u6a5f\u80fd\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002 \u3053\u308c\u3089\u306e\u6a5f\u80fd\u3092\u7528\u3044\u3066\u3001\u52d5\u7684\u306aWeb\u30da\u30fc\u30b8\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u306b\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002 PHP\u306e\u7279\u5fb4\u3084\u57fa\u672c\u60c5\u5831\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002 PHP\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u524d\u306b\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068 Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u306b\u306f\u3001PHP\u4ee5\u5916\u306b\u3082\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 Web\u958b\u767a\u306e\u57fa\u790e\u77e5\u8b58\uff08\u7279\u306bHTML\u304a\u3088\u3073CSS\u306b\u3064\u3044\u3066\u306e\u7406\u89e3\uff09 \u958b\u767a\u74b0\u5883\u306e\u69cb\u7bc9\uff08PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001XAMPP\u3001LAMP\u3001WAMP\u3001MAMP\u306a\u3069\uff09 \u57fa\u672c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u6982\u5ff5 \u30a8\u30e9\u30fc\u5bfe\u5fdc\u306e\u65b9\u6cd5\uff08\u30c7\u30d0\u30c3\u30b0\u306e\u4ed5\u65b9\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306e\u6d3b\u7528\uff09 \u958b\u767a\u74b0\u5883\u306e\u69cb\u7bc9\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002 PHP\u306e\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9 \u3053\u3053\u304b\u3089\u306f\u3001\u5177\u4f53\u7684\u306aPHP\u306e\u66f8\u304d\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002 \u30eb\u30fc\u30eb\u3068\u69cb\u9020 PHP\u306e\u30b3\u30fc\u30c9\u306f\u300c&lt;?php\u300d\u3067\u59cb\u307e\u308a\u300c?&gt;\u300d\u3067\u7d42\u308f\u308b\u3053\u3068\u304c\u57fa\u672c\u3067\u3059\u3002 \u3053\u306e\u69cb\u6587\u306f\u3001PHP\u30b3\u30fc\u30c9\u3092HTML\u3068\u533a\u5225\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002 &lt;?php echo \u2018Hello, World PHP!!\u2019; [&hellip;]","protected":false},"author":1,"featured_media":4669,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[188,261],"tags":[22,173,269,270,271,272,273],"_links":{"self":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/2061"}],"collection":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/comments?post=2061"}],"version-history":[{"count":29,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/2061\/revisions"}],"predecessor-version":[{"id":4670,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/2061\/revisions\/4670"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media\/4669"}],"wp:attachment":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media?parent=2061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/categories?post=2061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/tags?post=2061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}