PHP upload issues (works on one site, not another)
Posted by: restlessdesign
Posted on: 2006-03-19 11:21:00
Hi guys!
I have two websites on Dreamhost. One is mine, and the other is my friend's, whose website I am programming for him. He just registered a few days ago, so before that I was doing all the development on my host. Now with the exception of the database name that I'm saving the image file path locations and some other data to, the scripts are IDENTICAL. But only the one on my development site works!
The broken one (hosted on Whittier):
http://michaelmarmora.com/admin/portfolio.php
The working one (hosted on Grant):
http://kevinsweeneydesign.com/mikemarmora/admin/portfolio.php
Before you jump to any conclusions though,
1. All directories have the same permission settings
2. Both domains have PHP running as CGI
3. I've already tried renaming the jpeg MIME type to pjpeg with no success
So aside from the machines that are hosting the sites, I can see <b>NO DIFFERENCE</b> between the two. The form upload scripts are the same as well (portfolio.php)
What I am noticing, is that I can't echo out a ['tmp_file'] of the broken page, so I don't know what that could mean other than the file isn't being uploaded, but I don't know why it wouldn't be.
Please help!