Basic PHP Programming Question:
Download Questions PDF

What changes I have to do in php.ini file for file uploading?

Answer:

Make the following line uncomment like:
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = C:apache2triadtemp
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

Download PHP Interview Questions And Answers PDF

Previous QuestionNext Question
What is the default session time in php and how can I change it?What type of headers have to be added in the mail function to attach a file?