Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21
  1. #1
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Location
    Erie, PA
    Posts
    882
    Member #
    7208
    Liked
    1 times
    Hi,
    I have a site where I need to turn off the warnings in PHP...
    Usually I just tell the server administrators and they do it. But these people have their own server and they don't know how to. So they gave me login info for it and told me to do it. But I have never done anything like that before, including the whole installation of PHP and everything.
    Thanks...
    Heather
    PS: PLEEEASE don't say "You should keep warnings on and just fix what is creating the warnings"
    choosy developers choose gif!
    website | paintings | blog

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Look in php.ini for the error level/reporting and change it to exclude warnings. And yes, they're crazy to turn off warnings. You should even keep notices on.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Location
    Erie, PA
    Posts
    882
    Member #
    7208
    Liked
    1 times
    is there a certain place where the php.ini file is supposed to be?
    choosy developers choose gif!
    website | paintings | blog

  5. #4
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    What OS? On Windows, it can be in the system32 directory, Windows root directory, or PHP's installation directory. On Linux, dunno.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  6. #5
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Location
    Erie, PA
    Posts
    882
    Member #
    7208
    Liked
    1 times
    Linux, see here's the php info: http://hotrideshow.com/phpinfo.php
    I'm looking, but I can't find it... When the person installs php do they just name its installation directory whatever they want?
    choosy developers choose gif!
    website | paintings | blog

  7. #6
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Location
    Erie, PA
    Posts
    882
    Member #
    7208
    Liked
    1 times
    oh wait - i just noticed that the path for the php.ini file is in the phpinfo()!
    choosy developers choose gif!
    website | paintings | blog

  8. #7
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Location
    Erie, PA
    Posts
    882
    Member #
    7208
    Liked
    1 times
    but when i ssh into /etc/ there is no php.ini! there are only 3 files: group, passwd, and termcap...
    choosy developers choose gif!
    website | paintings | blog

  9. #8
    Senior Member rosland's Avatar
    Join Date
    Jul 2003
    Location
    Norway
    Posts
    1,944
    Member #
    2096
    I might be wrong, but I think it's possible to override the error reporting from within a given script using [phpfunction]ini_set[/phpfunction]
    (I'm at a place where I can't test it)

    The configuration alteration terminates when the script ends, and it reverts to default setting (from the php.ini file)

    Some other stuff on error reporting here:
    http://dk2.php.net/manual/en/function.error-reporting.php
    S. Rosland

  10. #9
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Location
    Erie, PA
    Posts
    882
    Member #
    7208
    Liked
    1 times
    Yeah, I know about that function, but I'd have to add it to a LOT of files...
    Well I found the php.ini file and changed it but the changes aren't showing up - warnings are still showing!
    Do I need to do anything weird after saving the file, like recompile something??
    Thanks
    choosy developers choose gif!
    website | paintings | blog

  11. #10
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    137 times
    maybe stop / restart the web server service? Not sure, but if I'm right, ini files are usually cached within something else, and if so, something within the server is looking at a cached copy.
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com


Page 1 of 3 1 2 3 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

how to turn off warnings in a page php

,

turn off php warnings

Click on a term to search for related topics.
All times are GMT -6. The time now is 05:05 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com