jazzman1 Posted September 15, 2014 Share Posted September 15, 2014 what happens with error number 500? Quote Link to comment https://forums.phpfreaks.com/topic/291035-list-users/page/2/#findComment-1491212 Share on other sites More sharing options...
hpub Posted September 16, 2014 Author Share Posted September 16, 2014 for exemple if you put , by mistake, a wrong dbname it should show cannot connect to database but instead it gives a 500 error Quote Link to comment https://forums.phpfreaks.com/topic/291035-list-users/page/2/#findComment-1491241 Share on other sites More sharing options...
jazzman1 Posted September 16, 2014 Share Posted September 16, 2014 (edited) The path - "G:\PleskVhosts\mysite\subdomain" coming from your computer or you're using windows server with IIS web server somewhere on the web? Edited September 16, 2014 by jazzman1 Quote Link to comment https://forums.phpfreaks.com/topic/291035-list-users/page/2/#findComment-1491245 Share on other sites More sharing options...
hpub Posted September 16, 2014 Author Share Posted September 16, 2014 its from my site its a remote db Quote Link to comment https://forums.phpfreaks.com/topic/291035-list-users/page/2/#findComment-1491249 Share on other sites More sharing options...
jazzman1 Posted September 16, 2014 Share Posted September 16, 2014 (edited) Your website can be ran onto your personal computer as well, if it has all services to do this task. Anyway...I suspect you're deployed the scripts of your website onto a remote windows server using IIS web server as default one and maybe, this error coming from IIS overriding the mysql error of bad connection. Not sure for that. Google it. I am not familiar with windows system and not able to help you here. Next time, when you have a problem, be so nice to explain everything in more detail from the very beginning. Edited September 16, 2014 by jazzman1 Quote Link to comment https://forums.phpfreaks.com/topic/291035-list-users/page/2/#findComment-1491271 Share on other sites More sharing options...
mac_gyver Posted September 16, 2014 Share Posted September 16, 2014 the 500 http error may be due to a php execution timeout or some other fatal php runtime error. set php's error_reporting to E_ALL and display_errors to ON to cause php to report and display the errors it detects when your code runs. Quote Link to comment https://forums.phpfreaks.com/topic/291035-list-users/page/2/#findComment-1491272 Share on other sites More sharing options...
jazzman1 Posted September 16, 2014 Share Posted September 16, 2014 set php's error_reporting to E_ALL and display_errors to ON to cause php to report and display the errors it detects when your code runs. He did it. He is using the code from my reply #20. Quote Link to comment https://forums.phpfreaks.com/topic/291035-list-users/page/2/#findComment-1491274 Share on other sites More sharing options...
mac_gyver Posted September 16, 2014 Share Posted September 16, 2014 there's no guarantee that any of those statements are still in the code. edit: it's also possible that the OP is on some web hosting that has disabled the error_reporting/ini_set statements. Quote Link to comment https://forums.phpfreaks.com/topic/291035-list-users/page/2/#findComment-1491275 Share on other sites More sharing options...
hpub Posted September 20, 2014 Author Share Posted September 20, 2014 (edited) i'm using that code but i still get 500 error but i see the sucess message if not showing nothing of table users Edited September 20, 2014 by hpub Quote Link to comment https://forums.phpfreaks.com/topic/291035-list-users/page/2/#findComment-1491665 Share on other sites More sharing options...
mac_gyver Posted September 20, 2014 Share Posted September 20, 2014 create a new test .php file on your server with the following code in it and let us know what output it produced when you run it - <?php var_dump(ini_get('display_startup_errors')); var_dump(ini_get('display_errors')); var_dump(error_reporting()); echo '<br>'; ini_set('display_startup_errors',1); ini_set('display_errors',1); error_reporting(-1); var_dump(ini_get('display_startup_errors')); var_dump(ini_get('display_errors')); var_dump(error_reporting()); Quote Link to comment https://forums.phpfreaks.com/topic/291035-list-users/page/2/#findComment-1491667 Share on other sites More sharing options...
LeJack Posted September 21, 2014 Share Posted September 21, 2014 It kind of sounds like he configured his .htaccess wrong or maybe even his php.ini. You normally don't get 500 error if you aren't messing around with your .htaccess. It's either he's using PHP tags in his .htaccess or something. Quote Link to comment https://forums.phpfreaks.com/topic/291035-list-users/page/2/#findComment-1491684 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.