Page 1 of 1

Upload file working on MAMP but not on real server WHY?

Posted: Thu Mar 04, 2010 1:31 am
by eiwans
Hi Guys

Just learning php and i have "upload script" working on my comp using MAMP but when i put it online the file is not in the folder which suppose. When i look on phpmyadmin the file path is there perfectly on each row.

Check the folder permission is okay too.
Could anyone help spot me my error.

here is my php file:
http://dl.dropbox.com/u/2527203/photo_insert.php
http://dl.dropbox.com/u/2527203/photo_insert_action.php


Thanks

Re: Upload file working on MAMP but not on real server WHY?

Posted: Thu Mar 04, 2010 3:08 am
by fireproofsocks
It could be a lot of things... it's probably not your code, it's probably your server. Who owns the files, what restrictions are on PHP on that server? etc. etc. etc.

Re: Upload file working on MAMP but not on real server WHY?

Posted: Thu Mar 04, 2010 2:51 pm
by tr0gd0rr
Another difference that can be a problem: your script is working on a case-insensitive file system while Unix is case sensitive.