During debugging, my machine had a tmp directory on the disk where php was running, so no accidents occurred. Some netizens wrote that it cannot run in the PWS environment. The reason is this, because under the windows system, php may be running. There is no tmp directory on the disk, so it is impossible to successfully create the directory "/tmp/~userfile/" during runtime, and an error message is displayed. You can change $userfiletmp="/tmp/~userfile/~tmp.inc";
Important note: Please modify the IIS5 + PHP + MYSQl and PWS + PHP + MYSQL environments
in the entire article to
$userfiletmp="/tmp/~tmp.inc";
or in File index0.php "if ($step==3) {" Modify the following statement a little further
if (!file_exists(dirname($userfiletmp))) {
mkdir(dirname($userfiletmp), 0700) ;
}
becomes
if (!file_exists("tmp")) {
mkdir("tmp"), 0700);
}
if (!file_exists(dirname( $userfiletmp))) {
mkdir(dirname($userfiletmp), 0700);
}
That’s it