Forum Moderators: coopster

Message Too Old, No Replies

uploading of image and removing characters

image uploading and parsing

         

kenchix1

2:12 pm on Jun 8, 2005 (gmt 0)

10+ Year Member



I'd like my users to upload pictures for their items I'll assign a directory for it. I know how to create a form and save it in mysql database but I don't know how to write a script that will fetch the file from their computer and save it in the directory that I assigned. After uploading, I'd also like to rename the file using random numbers (big int).
Together with, I'd like to create a thumbnail for each picture that they upload and resize it to my prefered size if they upload a large file maintaining the aspect ratio and somehow the quality of the picture.

Another thing is, I noticed that whenever I save a string with "'", it returns an error. How do I prevent this?

Thank you very much in advance for the help.

kenchix1

2:15 pm on Jun 8, 2005 (gmt 0)

10+ Year Member



the character im saying is the apostrophe '

dcrombie

3:48 pm on Jun 8, 2005 (gmt 0)



Handling file uploads [php.net]
ImageMagick [imagemagick.org] (or use GD)
addslashes [php.net]

;)

kenchix1

4:06 am on Jun 9, 2005 (gmt 0)

10+ Year Member



anymore suggestion?

thanks.