![]() |
The move_uploaded_file() function is an inbuilt function in PHP that is used to change the file destination. This function only works when the file is uploaded by the PHP POST function. If the file is valid it will uploaded. Syntax: move_uploaded_file( string $from, string $to ): bool
Parameters: This function accepts two parameters that are described below.
Return Value: This function returns true if the function successfully changes the location of the file otherwise this function will return false. Program 1: The following program demonstrates the move_uploaded_file() function. PHP
HTML
HTML
Output:
|
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 15 |