monkeypaw201 Posted April 21, 2008 Share Posted April 21, 2008 ok, i don't know where the PHP.INI file is.. and i need to turn error reporting on.. any suggestions? Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/ Share on other sites More sharing options...
dptr1988 Posted April 21, 2008 Share Posted April 21, 2008 Search for 'error_reporting' in your PHP.ini. It could be anywhere Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523419 Share on other sites More sharing options...
monkeypaw201 Posted April 21, 2008 Author Share Posted April 21, 2008 lemme fix/re-phrase.. i dont know where the actual file is.. Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523420 Share on other sites More sharing options...
ToonMariner Posted April 21, 2008 Share Posted April 21, 2008 alternatively you can just put ini_set('error_reporting', E_ALL); at the start of your script... Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523422 Share on other sites More sharing options...
DarkWater Posted April 21, 2008 Share Posted April 21, 2008 On Ubuntu, I know it's (default) at like: /etc/php5/apache2/php.ini Not sure on Windows (which is what you probably use). Search for 'php.ini'. Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523424 Share on other sites More sharing options...
dptr1988 Posted April 21, 2008 Share Posted April 21, 2008 That was my fault sorry. try using phpinfo(); to locate your php.ini Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523425 Share on other sites More sharing options...
monkeypaw201 Posted April 21, 2008 Author Share Posted April 21, 2008 alternatively you can just put ini_set('error_reporting', E_ALL); at the start of your script... that still spits a blank page with no errors.. On Ubuntu, I know it's (default) at like: /etc/php5/apache2/php.ini Not sure on Windows (which is what you probably use). Search for 'php.ini'. I am running CentOS, is there a command line command to search for a file? Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523428 Share on other sites More sharing options...
hitman6003 Posted April 21, 2008 Share Posted April 21, 2008 // show normal errors ini_set("display_errors", 1); // show syntax errors ini_set("display_startup_errors", 1); // show all errors error_reporting(E_ALL | E_STRICT); Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523431 Share on other sites More sharing options...
hitman6003 Posted April 21, 2008 Share Posted April 21, 2008 alternatively you can just put ini_set('error_reporting', E_ALL); at the start of your script... that still spits a blank page with no errors.. Use the display_startup_errors from my post above Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523432 Share on other sites More sharing options...
DarkWater Posted April 21, 2008 Share Posted April 21, 2008 alternatively you can just put ini_set('error_reporting', E_ALL); at the start of your script... that still spits a blank page with no errors.. On Ubuntu, I know it's (default) at like: /etc/php5/apache2/php.ini Not sure on Windows (which is what you probably use). Search for 'php.ini'. I am running CentOS, is there a command line command to search for a file? Try "sudo find / -name php.ini". I'm not to sure which shell CentOS uses, so that might not work. Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523440 Share on other sites More sharing options...
monkeypaw201 Posted April 22, 2008 Author Share Posted April 22, 2008 i copy and pasted that at the top of the page and am still getting a blank page... Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523442 Share on other sites More sharing options...
dptr1988 Posted April 22, 2008 Share Posted April 22, 2008 phpinfo(); will display the location of the PHP.INI that it is using. Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523444 Share on other sites More sharing options...
monkeypaw201 Posted April 22, 2008 Author Share Posted April 22, 2008 phpinfo(); will display the location of the PHP.INI that it is using. is there a way to disable the PHP.ini? Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523446 Share on other sites More sharing options...
DarkWater Posted April 22, 2008 Share Posted April 22, 2008 phpinfo(); will display the location of the PHP.INI that it is using. is there a way to disable the PHP.ini? No, that's what lets PHP store its settings and run. O_O Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523448 Share on other sites More sharing options...
monkeypaw201 Posted April 22, 2008 Author Share Posted April 22, 2008 ok, so, now a question more as a side-note, how do i upload/download a file via command line from the local machine? i know i can use WGET for a web-based file.. Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523449 Share on other sites More sharing options...
hitman6003 Posted April 22, 2008 Share Posted April 22, 2008 cURL Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523453 Share on other sites More sharing options...
monkeypaw201 Posted April 22, 2008 Author Share Posted April 22, 2008 ok, so if i place a default php.ini in the folder i am operating in , it will only effect that folder and any sub-folders correct? Link to comment https://forums.phpfreaks.com/topic/102236-solved-error-reporting-off-gt-on/#findComment-523455 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.