jhsachs Posted January 29, 2011 Share Posted January 29, 2011 I'm using PHP 5.2.14 under Windows XP. I'm trying to use ini_set to turn on the 'track_error' configuration option, and it's not working. I make this call, $xxx = ini_set('track_error',"1"); and it returns false. According to the documentation, track_error can be set from any source (including ini_set). What could prevent that from happening? Going back one step, I want to set track_errors so that I can fetch and process the error which occurs when mysql_connect fails. Since it fails, it returns no link, making it impossible to call mysql_errors. Whether ini_set can be made to work or not, is there another, perhaps better way to accomplish this? Quote Link to comment https://forums.phpfreaks.com/topic/226082-ini_set-not-working-as-expected/ Share on other sites More sharing options...
PFMaBiSmAd Posted January 29, 2011 Share Posted January 29, 2011 It's track_errors That's not what you have in your ini_set() statement. Quote Link to comment https://forums.phpfreaks.com/topic/226082-ini_set-not-working-as-expected/#findComment-1167094 Share on other sites More sharing options...
phpSensei Posted January 29, 2011 Share Posted January 29, 2011 It's track_errors That's not what you have in your ini_set() statement. hmm... this must be some sort of a secret message in your post... i dont seem to put it all together.. y is the s in red bold? weirrdddddddd Quote Link to comment https://forums.phpfreaks.com/topic/226082-ini_set-not-working-as-expected/#findComment-1167111 Share on other sites More sharing options...
jhsachs Posted January 30, 2011 Author Share Posted January 30, 2011 Oops! That's embarassingly dumb. Thank you for pointing it out. Quote Link to comment https://forums.phpfreaks.com/topic/226082-ini_set-not-working-as-expected/#findComment-1167207 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.