I really want to know how am I gonna get the full filepath when I upload a file in PHP?
Here\'s my my problem...
I am importing a csv file in PHP. Uploading a fi
you need to define a path into your config file or wherever you want to use and then that variable whatever you define, you can use in you project.
i.e: define('FILE_UPLOADED_PATH','folder1/folder2/so on');
so after the put this code your full filepath would be-
FILE_UPLOADED_PATH.$_FILES['csv_file']['name'];
you can use above code as example.
Thanks.