1
brocken(画像の私のディレクトリにある)の3つのインスタンスをすべてこのフォームでフォームを使って簡単に変更できますか?そうすれば、いつでも新しい.phpファイルを作成する必要があります。私は単純に入力してEnterキーを押します! スクリプトとボタンの設定に関して、私が何をすべきかを指摘してください。PHPファイルの短いスクリプトにテキストを置き換えます
<?php
// Image extensions
$image_extensions = array("png","jpg","jpeg","gif");
// Target directory
$dir = 'images/brocken';
if (is_dir($dir)){
if ($dh = opendir($dir)){
$count = 1;
// Read files
while (($file = readdir($dh)) !== false){
if($file != '' && $file != '.' && $file != '..'){
// Thumbnail image path
$thumbnail_path = "images/brocken/thumbnail/".$file;
// Image path
$image_path = "images/brocken/".$file;
$thumbnail_ext = pathinfo($thumbnail_path, PATHINFO_EXTENSION);
$image_ext = pathinfo($image_path, PATHINFO_EXTENSION);
などなど
私は従いません。フォームは文字列置換と何が関係していますか? – Utkanos