web development module 3, php programming, lesson 29 moving uploaded files part 5



Published
#pashto #webdevelopment
By using HTML forms, users can upload files to the server. These files are retained in a temporary directory until they are moved to a specific place for permanent storage. However, in order for the file upload in PHP to work, we must ensure that a few configuration settings are configured appropriately.
In PHP, moving files is as easy as using the rename("SOURCE. FILE", "FOLDER/TARGET. FILE") function. Yes, PHP does not have a move file function, therefore when we "rename" a file, we actually move it into a different folder.

According to the temporary files directory set in the php.ini file, php stores all temporary files, including uploaded files. Keep in mind that for uploads, the files might be deleted after the script removes them. ------------------------------------------------
زموږ کوشش دا ده چې پښتنه دی په مورنۍ ژبه کی زده کړه وکړي. که تاسو زمونږداکوشش خوښوئ، نو مهرباني وکړئ د ویډیوز او چینل دا نورو خلقوته وارسوي اوزمونږ سره په دی مشن کی ملاتړ وکړئ
------------------------------------------------
Youtube: https://www.youtube.com/c/Learn8Pashto/
Facebook:https://www.facebook.com/Learn8Pashto
Website:https://scirep.institute/learn8
Email: [email protected]
*************************************************
Want to follow or message the course instructor?
Dr Imran
------------------------------------------------
facebook:https://www.facebook.com/prof.dr.imran
website:https://scirep.institute/imran
Email: [email protected]
Category
Web design
Be the first to comment