SZero Posted September 12, 2007 Share Posted September 12, 2007 hi every1.. i'm new here and am wishing that some1 could help me.. i recently booked an FTP account, anyway when i try to use php files this msg appears very often: Notice: Undefined variable ............. anyway i searched and found out that this is the debugging mode and it should be turned off from PHP.ini.. well the problem is i can't find that file, the only folders in my ftp are (db, Special, www, logfiles), searched them all but didn't find it, so do i have to request it from the provider or i can make it myself?? ty Quote Link to comment Share on other sites More sharing options...
gerkintrigg Posted September 12, 2007 Share Posted September 12, 2007 it's normally in the site root, but your host may have hidden it so that you have to ask them to change it... Quote Link to comment Share on other sites More sharing options...
phat_hip_prog Posted September 12, 2007 Share Posted September 12, 2007 Ask your host! A presume your rented a web account, that has ftp access... Just so you see the difference. Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 12, 2007 Share Posted September 12, 2007 You can change error reporting levels at runtime using ini_set or error_reporting. Your host is not going to make changes to the php.ini file. Quote Link to comment Share on other sites More sharing options...
SZero Posted September 12, 2007 Author Share Posted September 12, 2007 You can change error reporting levels at runtime using ini_set or error_reporting. Your host is not going to make changes to the php.ini file. how to do that?? Quote Link to comment Share on other sites More sharing options...
SZero Posted September 12, 2007 Author Share Posted September 12, 2007 i found out ty here's what helped me if any1 need it <?php // Turn off all error reporting error_reporting(0); // Report simple running errors error_reporting(E_ERROR | E_WARNING | E_PARSE); // Reporting E_NOTICE can be good too (to report uninitialized // variables or catch variable name misspellings ...) error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); // Report all errors except E_NOTICE // This is the default value set in php.ini error_reporting(E_ALL ^ E_NOTICE); // Report all PHP errors (bitwise 63 may be used in PHP 3) error_reporting(E_ALL); // Same as error_reporting(E_ALL); ini_set('error_reporting', E_ALL); ?> 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.