********************************************** ***** ******************
**********************zend フレームワークの構成***********************************
************** ********************** ***************************
httpd.conf
1.cmd netstat -aon|findstr "80" を実行します 占有されている場合は、ポートを変更します
#Listen 12.34.56.78:80
Listen 80
#Listen 12.34.56.78:80
Listen 8080
2, # LoadModule rewrite_module modules/mod_rewrite.so
3 ドキュメント内で、AllowOverride が None の場合は、必ず None を All に変更してください。この方法でのみ、.htaccess などのファイルを作成したときに機能します。
4. DocumentRoot "C :/wamp/www" Apache 設定仮想パス
5. この時点でアクセスすると、権限不足の問題が発生するはずです
そこで、アクセス権限のAllowOverrideも適用する必要があります 指定されたApache構成の仮想パスに移動します
php.ini
ライブラリを配置し、php.iniにインクルードライブラリを設定します
; UNIX: "/path1:/path2";include_path = ".:/php/includes";; Windows: "\path1;\path2"include_path = ".;c:\library"
** ******************* ******************************** ********
********* *********Apache 仮想ホスト設定********************** ************
* ***************************************** ********* ***********
1 以下の 2 つの文の前にある #
を削除します。 apache httpd.conf
LoadModule vhost_alias_module modules/mod_vhost_alias.soInclude conf/extra /httpd-vhosts.conf
2C:WindowsSystem32driverstc で hosts ファイルを見つけます
Configuration
127.0.0.1 tools.localhost
127.0.0.1 website.localhost
3 C:wampbinapacheApache2.2.11confextra httpd-vhost.conf 文件を見つけます
以下のデータテーブルのように配置
NameVirtualHost *:8080## VirtualHost example:# Almost any Apache directive may go into a VirtualHost container.# The first VirtualHost section is used for all requests that do not# match a ServerName or ServerAlias in any <VirtualHost> block.#<VirtualHost *:8080> ServerName website.localhost ServerAdmin webmaster@test.tools.directhr.net DocumentRoot "C:\Users\n.zhang\Documents\Website\DHR3" <Directory "C:\Users\n.zhang\Documents\Website\DHR3"> Options Indexes MultiViews FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> ErrorLog "logs/test.tools.directhr.net-error.log" CustomLog "logs/test.tools.directhr.net-access.log" common</VirtualHost><VirtualHost *:8080> ServerName tools.localhost ServerAdmin webmaster@test.tools.directhr.net DocumentRoot "C:\Users\n.zhang\Documents\Tools" <Directory "C:\Users\n.zhang\Documents\Tools"> Options Indexes MultiViews FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> ErrorLog "logs/test.tools.directhr.net-error.log" CustomLog "logs/test.tools.directhr.net-access.log" common</VirtualHost>
4 修正php.ini の下面两个構成(允许上传大文件)
upload_max_filesize = 500M
5 若ルートの秘密コード 123456 、ログインするにはいくつかの方法がありますphpmyadmin へ
C:wampappsphpmyadmin3.2.0.1 の下の config.inic.php を開きます
[1] デフォルトの方法でもある構成認証モードを使用します
$cfg['Servers'][$i][ 'auth_type'] = 'config' ; //認可モード
$cfg['Servers'][$i]['user'] = 'root' //mysql チュートリアルのログインユーザー
$cfg['Servers'][ $i]['password'] = '123456'; //mysql ログイン ユーザー パスワード
$cfg['Servers'][$i]['AllowNoPassword'] = true;
'auth_type' を次のように変更します'cookie' を変更し、Cookie 暗号化文字列として任意の文字列を使用するように 'blowfish_secret' を変更します。暗号化キーがない場合、システムは「設定ファイルにはトップ シークレット フレーズのパスワード (blowfish_secret) が必要です」と表示されます。設定ファイルは次のとおりです:
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['blowfish_secret'] = '44e2f5aece2855.93921574';
$cfg['Servers'][$i]['auth_type'] = 'http';
注: mysql サーバーがバージョン 4.1 以降を使用し、クライアント接続が Mysql 4.1 を使用する場合以下の場合は、ユーザーのパスワードを設定するときに OLD_PASSWORD 関数を使用してください。例:
mysql > SET PASSWORD = OLD_PASSWORD('12345')
mysql > /G
付録: (以下の内容は私が書いたものです) phpmyadmin が提供する 3 つの方法に加えて、Apache 設定を使用してログインを制限することもできます。phpmyadmin ディレクトリに .htaccess ファイルを配置し、使用するパスワード記録ファイルを指定します。次に、htpasswd を使用してパスワードを生成し、パスワード記録ファイルに保存します (ファイルの内容は暗号化されており、htpasswd /etc/php_passwd ユーザー名メソッドを使用します)。
httpd.conf の内容: phpmyadmin のディレクトリ">AllowOverride AuthConfig
.htaccess ファイルの内容
authtype Basic authuserfile /etc/php_passwd authname information require valid-user
/etc/php_passwd ファイルの内容が類似していることがわかります。これに:
ユーザー名:2Y2CD6nfJuwL6
php.iniの変更
max_input_time = -1
max_execution_time = -1

thesecrettokeepingaphp-poweredwebsterunningsmootlyunderheavyloadinvolvesseveralkeystrategies:1)emform opcodecoduceSciptionexecutiontime、2)aatabasequerycachingwithiThing withiThistolessendavasoload、

コードをより明確かつ維持しやすくするため、依存関係が関心(DI)に注意する必要があります。 1)DIは、クラスを切り離すことにより、よりモジュール化されます。2)テストとコードの柔軟性の利便性を向上させ、3)DIコンテナを使用して複雑な依存関係を管理しますが、パフォーマンスの影響と円形の依存関係に注意してください。

はい、最適化されたAphPossibleandessention.1)CachingingusapCutoredatedAtabaseload.2)最適化、効率的なQueries、およびConnectionPooling.3)EnhcodeCodewithBultinctions、Avoididingglobalbariables、およびUsingopcodeching

keyStrategIestsoSificlyvoostphpappliceperformanceare:1)useopcodecachinglikeToreexecutiontime、2)最適化abaseの相互作用とプロペラインデックス、3)3)構成

aphpDependencyInjectionContaineriSATOULTAINATINAGECLASSDEPTINCIES、強化測定性、テスト可能性、および維持可能性。

SELECT DEPENTENCINGINOFCENT(DI)大規模なアプリケーションの場合、ServicElocatorは小さなプロジェクトまたはプロトタイプに適しています。 1)DIは、コンストラクターインジェクションを通じてコードのテスト可能性とモジュール性を改善します。 2)ServiceLocatorは、センター登録を通じてサービスを取得します。これは便利ですが、コードカップリングの増加につながる可能性があります。

phpapplicationscanbeoptimizedforspeedandEfficiencyby:1)enabingopcacheinphp.ini、2)PreparedStatementswithpordatabasequeriesを使用して、3)LoopswithArray_filterandarray_mapfordataprocessing、4)の構成ngincasaSearverseproxy、5)

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl


ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

Video Face Swap
完全無料の AI 顔交換ツールを使用して、あらゆるビデオの顔を簡単に交換できます。

人気の記事

ホットツール

ZendStudio 13.5.1 Mac
強力な PHP 統合開発環境

メモ帳++7.3.1
使いやすく無料のコードエディター

VSCode Windows 64 ビットのダウンロード
Microsoft によって発売された無料で強力な IDE エディター

SublimeText3 Linux 新バージョン
SublimeText3 Linux 最新バージョン

SublimeText3 英語版
推奨: Win バージョン、コードプロンプトをサポート!
