クラス -> class.upload.php

Posted by muchag | PHP |
初回投稿:2008-04-23 (水) 15:51:58 | 最終更新:2008-04-23 (水) 15:53:12

画像をアップロードするクラスの覚書

画像のファイル名を動的に変更する
  1. $this->file_new_name_body       = ’’;

の ” を、変数に書き換える。
その際、function内なので、変数の global 宣言が必要。

画像の上書き
  1. $this->file_overwrite           = false;
元画像を残すかどうか
  1. $this->file_auto_rename         = false;
画像のサイズ変更
  1. $this->image_resize             = false;
画像のサイズ指定
  1. $this->image_x                  = 150;
  2. $this->image_y                  = 150
画像の縦横比固定
  1. $this->image_ratio              = false
画像の x,y いずれかの方向に合わせたリサイズ指定
  1. $this->image_ratio_x            = false;
  2. $this->image_ratio_y            = false;
Posted by muchag | PHP |
初回投稿:2008-04-23 (水) 15:51:58 | 最終更新:2008-04-23 (水) 15:53:12

コメントはまだありません »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment