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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eiwans
Forum Newbie
Posts: 4
Joined: Thu Mar 04, 2010 1:19 am

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

Post 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
fireproofsocks
Forum Newbie
Posts: 4
Joined: Thu Mar 04, 2010 3:04 am

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

Post 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.
User avatar
tr0gd0rr
Forum Contributor
Posts: 305
Joined: Thu May 11, 2006 8:58 pm
Location: Utah, USA

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

Post by tr0gd0rr »

Another difference that can be a problem: your script is working on a case-insensitive file system while Unix is case sensitive.
Post Reply