Jump to content

[SOLVED] Where to find "PHP.ini"??


SZero

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/69023-solved-where-to-find-phpini/
Share on other sites

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);

 

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.