PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
while registering new user.he is uploading his photo.how to store these files in database.if we running script on server.the path of the uploaded file(server) is stored in databse.but now i am running on localhost.how to store uploaded in database.
i need clear explanation about file uploading on server and localhost..thanks in advance for any help..
Storing the file in database is a bad Idea.Just store teh file location in the database.
If you are thinking about the security Just put this .htaccess file in that dir where your uploaded files stays.
i am working on localhost.after uploading a file the file is stored in temp folder (www folder).i can store it in sepearte folder also.but how to store uploaded file path in database.