Presentation is loading. Please wait.

Presentation is loading. Please wait.

PHP file uploads illustrates New Form features PHP flow of control PHP Global Associative array MIME types UNIX commands.

Similar presentations


Presentation on theme: "PHP file uploads illustrates New Form features PHP flow of control PHP Global Associative array MIME types UNIX commands."— Presentation transcript:

1 PHP file uploads illustrates New Form features PHP flow of control PHP Global Associative array MIME types UNIX commands

2 Browser Browse form Temp location public_html $_FILES says where PHP move Web server

3 New HTML Form features browse widget type = file enctype POST method

4 PHP features or-die -- gauntlet for screening requests Associative array $_FILES [ "filename"] [ "property" ] File MIME types – image/jpg, text/plain, text/html PHP functions move_uploaded_file file_exists

5 UNIX Allowing HTTP write privileges to directory Opening terminal window in directory Current directory – dot notation / usr/afsws/bin/fs sa. http write temporary location of uploaded file: $_FILES["filename"]["temp_ name"]


Download ppt "PHP file uploads illustrates New Form features PHP flow of control PHP Global Associative array MIME types UNIX commands."

Similar presentations


Ads by Google