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

 

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.