仕事で
「CGIのパス教えてくださいね」
とか話すと
「いやCGIじゃなくって、PHPです」
とか言われるんだけど、
PHPもCGIだと思うんだが・・・。
CGIはPerl限定なの??
CGIとは 【Common Gateway Interface】 – 意味・解説 : IT用語辞典によると、ASPとかSSIはCGIじゃないみたいだけど・・・。
イマイチ違いが分からん。
Apacheに設定を書くものがCGI??(SSIは?)
仕事で
「CGIのパス教えてくださいね」
とか話すと
「いやCGIじゃなくって、PHPです」
とか言われるんだけど、
PHPもCGIだと思うんだが・・・。
CGIはPerl限定なの??
CGIとは 【Common Gateway Interface】 – 意味・解説 : IT用語辞典によると、ASPとかSSIはCGIじゃないみたいだけど・・・。
イマイチ違いが分からん。
Apacheに設定を書くものがCGI??(SSIは?)
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
Google reCAPTCHA helps protect websites from spam and abuse by verifying user interactions through challenges.
Google Tag Manager simplifies the management of marketing tags on your website without code changes.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
Marketing cookies are used to follow visitors to websites. The intention is to show ads that are relevant and engaging to the individual user.
A video-sharing platform for users to upload, view, and share videos across various genres and topics.
Service URL: www.youtube.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy policy.
「CGIとPerlとPHP」への8件の返信
CGI はサーバから Perl や C などの外部プログラムを呼び出す仕組みなのに対して、PHP はサーバの拡張モジュールとして動作しているのが違います(プロセスレベルで考えるとわかりやすいのかも?)。一応 PHP にも CGIモードというのがあります(使ったことないですけど……)
たぶん正確に言うと、違う。
CGIとは手法の総称、PHPは言語。
「野菜」と「にんじん」みたいな感じ。
wiki(http://ja.wikipedia.org/wiki/Common_Gateway_Interface)を見ると
—
CGIは、環境変数や標準入出力の扱えるプログラミング言語からなら、言語の別を問わず幅広く利用できるが、実行速度やテキスト処理の容易さなどの兼ね合いにより、C言語やPerlが使われることが多い。近年では、PHPやPython、Rubyなども広く使われている。
—
ってPHPやらRubyもCGIみたいな記述がされているけど、これは誤り??
>CGIとは手法の総称、PHPは言語。
うん、そですよね。
「CGIのパス教えてくださいね」
は根本的に間違ってるデスか??w
野菜で言うと
「野菜の置いてある場所教えてくださいね」
「いやにんじんです」
みたいな感じだとおもうんだけどw
mahiroさんの説明にあるように、PHPはあんまりCGIモードで使わないので、ちょっと微妙ですね。
「野菜の置いてある場所教えてくださいね」
「いやスイカです」
という感じ?
ASPも機構なので、CGIと同類ですね。ASPもVBScriptだけでなくC#とかPerlとか使えるから。
うーむ・・
じゃあ何の言語で作られているかわからないものの接続先をどう呼べばよいのでしょうか??w
「ポスト先のパス?」
「人参のおすすめの料理法」を聞けばいいのでは?
「ポスト先」って呼んでるけどね・・
>「人参のおすすめの料理法」を聞けばいいのでは?
い・・意味が分かりませんっ!!w
ポスト先ですね・・。
まぁそれですね・・。