Deprecated: Assigning the return value of new by reference is deprecated in /home/users/0/lolipop.jp-s1130193/web/feye/wp-settings.php on line 520

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/0/lolipop.jp-s1130193/web/feye/wp-settings.php on line 535

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/0/lolipop.jp-s1130193/web/feye/wp-settings.php on line 542

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/0/lolipop.jp-s1130193/web/feye/wp-settings.php on line 578

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/users/0/lolipop.jp-s1130193/web/feye/wp-settings.php on line 18
Archive for 8 月 1st, 2011 « Fの視点

Archive for 8 月 1st, 2011

phpのreaddir関数の仕様

by fujii | 8 月 1st, 2011 

文法的には
string readdir ([ resource $dir_handle ] )
で、指定したディレクトリにあるファイル名を返します。
が、このファイル名の返却順がファイル名順になるわけではないです。これで結構バグが起きやすい。
返却順は、その「ファイルシステム上に格納されている順番」で返されます。
つまり、a.jpgとb.jpgとc.jpgがあったとして、必ずしもa~cの順で返ってはきません。
ファイル名順で返ってくること前提でその後の処理を組んでいると痛い目に合うので、必ず取得後にソートの処理を入れましょう。

more from " phpのreaddir関数の仕様 "...

アプリケーションを実行すると、「COMDLG32.OCX」がない、または不正と表示される

by fujii | 8 月 1st, 2011 

使い慣れたPCから環境を移行すると高確率で発生します。
このファイルはVisual Basic 6.0のランタイムパッケージに含まれているので、VB6ランタイムをダウンロードしてインストールしましょう。
検索すれば、「COMDLG32.OCX」単体で配布しているところもあると思いますが、VB6ランタイムのほうがインストーラもあるし無難です。
それまでよく使っていたアプリケーションを、新しい環境でも使おうとしてソフトだけインストールするとこういうことになります。
エラーが出るのが嫌な場合は、あらかじめマシンにVBランタイムやJDKをインストールしておくべきですね。

more from " アプリケーションを実行すると、「COMDLG32.OCX」がない、または不正と表示される "...

WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera