2009-04-22から1日間の記事一覧

Use of undefined constant

php

PHPで、 Use of undefined constant mime - assumed 'mime' のエラーが取れずに苦労したのですが原因は以下でした。画像種類の判別をするところ、$wh = getimagesize($srcimage, $info); $mime = $wh[mime];下のようにクォーテーションで囲むのが正解でした…