AlternativeNick 0 Report post Posted June 9, 2006 before i begin, i dont really know where to post this, so please move if neccessaryOK, im trying to make a php script that will upload something to whatever webserver it is im hosted on (currently ripway, Xisto soon) i was just wondering if Xisto will work with it?im not very good with php yet, so im not sure what could be going wrong :Sanyways, what i have so far is this <?phpif ( move_uploaded_file ($_FILES['uploadFile'] ['tmp_name'], "../uploads/{$_FILES['uploadFile'] ['name']}") ) { print '<p> The file has been successfully uploaded </p>'; }else { switch ($_FILES['uploadFile'] ['error']) { case 1: print '<p> The file is bigger than this PHP installation allows</p>'; break; case 2: print '<p> The file is bigger than this form allows</p>'; break; case 3: print '<p> Only part of the file was uploaded</p>'; break; case 4: print '<p> No file was uploaded</p>'; break; } }?> it doesnt throw any errors, but it also doesnt upload anything that i can tell.help plz? Share this post Link to post Share on other sites
myrmidon 0 Report post Posted June 9, 2006 Now you have specified the ../uploads directory for upload, does that directory exists ? Also check in php.ini that you have granted the upload and in which dir (on linux sys , does php group has access to that dir) if ( move_uploaded_file ($_FILES['uploadFile'] ['tmp_name'], "../uploads/{$_FILES['uploadFile'] ['name']}") ) { print '<p> The file has been successfully uploaded </p>'; } Share this post Link to post Share on other sites
AlternativeNick 0 Report post Posted June 9, 2006 yes the directory exists and it still doesnt upload it, however it is just a free host that im being hosted by, so i am unable to access php.ini or any of that.also, does Xisto allow php uploads like that to my hosting? i.e. if i put an upload on my Xisto site, will i be able to have users of my site upload into my space on the server?finally, what did you post this for? im not quite clear on that if ( move_uploaded_file ($_FILES['uploadFile'] ['tmp_name'],"../uploads/{$_FILES['uploadFile'] ['name']}") ){ print '<p> The file has been successfully uploaded </p>';} Share this post Link to post Share on other sites
uiop 0 Report post Posted June 10, 2006 I'm a PHP noob so I can't help much on this topic other than to refer you to http://www.tizag.com/phpT/fileupload.php. I always use Tizag to help me learn web-hosting stuff. Share this post Link to post Share on other sites
farsiscript 0 Report post Posted June 10, 2006 Hi i find this tutorials for you :http://codingforums.net/?showtopic=53http://forums.xisto.com/no_longer_exists/http://forums.xisto.com/no_longer_exists/http://forums.xisto.com/no_longer_exists/I hope with this tutorials you can make one upload system , Share this post Link to post Share on other sites