OMG I NEED HELP!!!
THere is this script im making, and i have been working on it for 10 hours! 10 HOURS!! No Joke.. and I haven’t made ANY progress.. all that i have made is more confusion on myself..
What the script does is takes a file, then resizes it, then saves it.. then saves the orignal.. so you have two files.. one that is resized.. and one that isn’t.. right?
What is happening is that some files that I upload don’t work.. Most of them otu of PS.. but when i click upload.. It gets the file.. then it moves it to the tmp dir I have set on my server.. then it makes the resize image (but it turned out black) and it makes the orignal image.. and it gives me an error saying it can’t write to the file.. IF youre thinking the phtoos arecorrupted, I have checked multipul times, and their not. I am about to blow a fuse! ?
I have debugged this scrtipt so much, i have discovered that waht is happening, why it cant write to the file. The $image_buffer doesn’t get set.. there is nothing that is being written.. you have no clue how confused i am..
the script is in the next post.. becuase it wouldnt fit.
its annoying, and keep in mine im practally new and i dont know all of the advanced ways of doing stuff.. I work with what I have, and thats prb why it doesnt work..
ANYWAYS!! SOMEONE PLEASE HELP MEEE ? Much appreciated. any BTW a lot of the stuff is commented out because I was trying new things to see why it was doing what it was..
Thanks for your time!