Upload/thumbnail |
[eluser]felixk[/eluser]
Hey! I've coded a image upload function and thumbnail creator. And it works well when I'm running it from my local server, but I've now moved it to another server, which causes the problem. This is parts from my code! Code: // This part works! Quote:$_SERVER['DOCUMENT_ROOT'] = E:/www/fabrikenfredag.se/www To sum up, the image is uploaded, but not resized. So it must be a problem to find the source image. Thankful for help!
[eluser]BrianDHall[/eluser]
Check out the PHP realpath function - your path to file declaration is a bit of a mess to figure out, so there is probably the error there. Try a simple hard-coded string for now to narrow it down. Also check the is_file() function in PHP - use it on your file to explicitly let you know if the file path is wrong. |
Welcome Guest, Not a member yet? Register Sign In |