rs232
08-09-2001, 10:29 AM
I just added code to automatically create thumbnails from pictures that are submitted to a database through a form.
The script works fine, but I was trying to write another script to pull all the pictures that are in the database allready(about 500 of them) and make a thumbnail for those too.
It tired using fopen on the string like I do with the script to submit the pictures and it thinks the filename is "ÿØÿÃ*". From what I have figured out from the script to submit the pictures php stores the data from the form in /tmp with a filename like "phpKBADQu". It doesn't seem to do this with the string of the picture string pulled from the database. I tried useing fwrite() to write the string to a file and balks on that too.
Anybody got any suggestions. I just wnat to run this script once to convert all my pictures allready in the database to thumbnails.
Thanks,
Steven
The script works fine, but I was trying to write another script to pull all the pictures that are in the database allready(about 500 of them) and make a thumbnail for those too.
It tired using fopen on the string like I do with the script to submit the pictures and it thinks the filename is "ÿØÿÃ*". From what I have figured out from the script to submit the pictures php stores the data from the form in /tmp with a filename like "phpKBADQu". It doesn't seem to do this with the string of the picture string pulled from the database. I tried useing fwrite() to write the string to a file and balks on that too.
Anybody got any suggestions. I just wnat to run this script once to convert all my pictures allready in the database to thumbnails.
Thanks,
Steven