I am doing a campus project in php regarding musical site and i have to insert ziped files of songs in the database. so, i don't know how to deal with the zip files. Therefore, help me.

Recommended Answers

All 2 Replies

I am afraid it's not possible to insert zipped files and songs to the database. What is normally done is simply copying them(songs,images,zipfiles) to the server and storing the details of the uploaded file in the database.
You can google for more details on how to do this

You can but its not recommended. Its better to store them on the server.

You can read the file contents into a longblob field in a database. To retrieve it you need to get the contents from the database, then echo it out to the browser with the correct headers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.