Allowed memory size of xxx bytes exhausted (tried to allocate xxx bytes)
Allowed memory size of xxx bytes exhausted (tried to allocate xxx bytes)
フォームに検索文字を入れて、データベースのデータを検索・表示するプログラムを
別のシステムに移植。(というか持ってきただけ。)
検索テストをすると、ある文字を入れると何も表示されなくなる。。
サーバのログを確認すると、↓とでている。
Allowed memory size of xxx bytes exhausted (tried to allocate xxx bytes)
phpのmemory_limitは16Mになっているが、これを増やせば良さそうだが、
プログラムが怪しいのでちょっと見てみる。
SQL文で、select * from …..
って、アスタリスクで不要なデータまで拾ってるよ。。
必要なデータだけ拾うようにしたら、問題解消しました。