| |

VerySource

 Forgot password?
 Register
Search
View: 1009|Reply: 6

When uploading php, when the move_uploaded_file function is not used, the file is delayed

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-30 13:00:01
| Show all posts |Read mode
1.When uploading, when the move_uploaded_file function is not used, whether the client file has been transferred to the temporary directory (use the files array to get related information)

2. If it has been uploaded, after how long it will be automatically cleared! !!

3. When the move_uploaded_file function is used up, does the temporary file still exist!

4. Can private and var in the PHP class be used in functions in the class?
Reply

Use magic Report

0

Threads

17

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

Post time: 2020-3-7 10:45:01
| Show all posts
o I have not used the move_uploaded_file function, I generally use form submission directly. After submitting using the form, it does exist in the Timeline folder. You can use the code to delete at that time, or you can wait for the server to delete itself. It should be deleted when the session is effective.
Reply

Use magic Report

0

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-3-7 12:45:01
| Show all posts
1.Yes.
2.After the attachment is uploaded successfully, if you do nothing, the temporary file will be automatically deleted.
3.After using this function, the temporary file will not exist.
4. Class method calls should use $ this->
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-3-9 03:00:01
| Show all posts
4. Can private and var in the PHP class be used in functions in the class?

In class
var-defined variables can be used outside the class
Private-defined variables can only be used in this class.

This should be right

I am asking whether these two definitions can be used in functions, such as
private function aaa ()
{}
Reply

Use magic Report

0

Threads

1

Posts

1.00

Credits

Newbie

Rank: 1

Credits
1.00

 China

Post time: 2020-4-4 13:06:13
| Show all posts
Variables defined by var can be used outside the class
Variables defined by private can only be used in this class.
Reply

Use magic Report

0

Threads

27

Posts

18.00

Credits

Newbie

Rank: 1

Credits
18.00

 China

Post time: 2020-4-16 14:30:02
| Show all posts
Move is to transfer.

private is supported in php for class
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-4-23 19:00:02
| Show all posts
1. Yes.
2. After the attachment is uploaded successfully, if you do not do anything, the temporary file will be deleted automatically.
3. After using this function, the temporary file will not exist.
4. Calling in the method of the class should use $ this->


================================================== ===
Completely correct. Use LZ with confidence.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list