View Single Post
  #6 (permalink)  
Old 06-08-2008, 05:59 AM
Jaan's Avatar   
Jaan Jaan is offline
Mod
 
Join Date: Dec 2006
Location: Estonia
Age: 17
Posts: 935
Last Blog:
AdStar Ad Control Pa...
Rep Power: 17
Jaan is just really niceJaan is just really niceJaan is just really niceJaan is just really nice
Send a message via MSN to Jaan
Default Re: Tutorial: Storing Images in MySQL with PHP / Part II / Display your images

I believe.. then you should create a real images from those blobs.. use this tutorial to create those images:

Create files with php

there.. this blob will be this $content.. so replace it..

and then.. after your script ends.. just delete those images.. then just use

PHP Code:
unlink(); 
but..when you're creating a name for your file.. use

PHP Code:
uniqid(); 
then when you have lot's of users it won't delete someone else image

i believe it works
__________________


Cheap & Professional Web Design | Need help? Send a PM
Reply With Quote