eranwein Posted March 21, 2006 Share Posted March 21, 2006 i know that it's a problem most of you didnt encounter with, but still...i'm trying to upload files. this is the code i'm using:if (move_uploaded_file($_FILES['uploadedFile']['tmp_name'],$file_path)) print "file insert"else print "file not insert";when i'm trying to upload files containing hebrew words, it doesnt do anything. it doesnt even print "file not insert". is there any configuration i have to do ? Quote Link to comment Share on other sites More sharing options...
redbullmarky Posted March 21, 2006 Share Posted March 21, 2006 uploading files is done in binary, so the language within the file wont make a difference to anything.my guess is that you've got an error, but have error_reporting too low or display_errors set to off in your php.ini file, so you arent seeing the problem.but you have a missing ; at the end of your line:[code]if (move_uploaded_file($_FILES['uploadedFile']['tmp_name'],$file_path)) print "file insert"; <--- hereelse print "file not insert";[/code] Quote Link to comment Share on other sites More sharing options...
eranwein Posted March 21, 2006 Author Share Posted March 21, 2006 the missing ; is not relavent because it's not copy+paste from the code. how do io set my error reporting to display my problam? Quote Link to comment Share on other sites More sharing options...
redbullmarky Posted March 21, 2006 Share Posted March 21, 2006 [!--quoteo(post=356914:date=Mar 21 2006, 11:56 AM:name=eranwein)--][div class=\'quotetop\']QUOTE(eranwein @ Mar 21 2006, 11:56 AM) [snapback]356914[/snapback][/div][div class=\'quotemain\'][!--quotec--]the missing ; is not relavent because it's not copy+paste from the code. how do io set my error reporting to display my problam?[/quote]a few ways. change your php.ini file directly, use a .htaccess file, or at the top of your scripts put:[code]error_reporting(2039);ini_set("display_errors","on");ini_set("display_startup_errors","on");[/code]for some reason when i do it this way, if the script has a major error it doesnt seem to tell me. so i'd recommend making a text file in your root called .htaccess, and putting the lines:[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]php_flag display_errors onphp_value error_reporting 2039[/quote]in it. this will show you all the important stuff and should let you know exactly what your problem ischeers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.