now there is another reason too
say I use 2 different pages with form file upload
using this same process handler
now this processer will work, whatever the input file is named
'file1' 'file2' or whatever
We can say my script is file input field name-neutral
Also this if I want to,
I can easily, with small changes, make this process page handle
multiple files uploading
does not matter how many.
foreach( $_FILES as $file_arr ) {
extract $file_arr;
//handle the upload, $error, $name, $size, $tmp_name
} //loop for next file
Now, I am not as lazy, I can not write <?php
because I know there is a bigger chance my scripts will work at servers.
Can those smart???? guys using <?
tell me of the benefits of short tag
.. other than save your fingertips... some fractions of a precent % ?
Regards 🙂