No access to php.ini

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kevin Timmins

    No access to php.ini

    Ok,

    I have script which requires some of the php.ini settings to be modified.

    eg error reporting etc.

    I dont have direct access to the php.ini file on the production server

    I know I can override the .ini settings using

    <? ini_set("error_ reporting", "some value"); ?>

    So what value can I use in my script to replicate the setting below?


    My .ini file on my testing machine has

    error_reporting = E_ALL & ~E_NOTICE; display all errors, except notices

    --
    Kev T


  • Pedro Graca

    #2
    Re: No access to php.ini

    Kevin Timmins wrote:[color=blue]
    > I dont have direct access to the php.ini file on the production server
    >
    > I know I can override the .ini settings using
    >
    > <? ini_set("error_ reporting", "some value"); ?>
    >
    > So what value can I use in my script to replicate the setting below?
    >
    >
    > My .ini file on my testing machine has
    >
    > error_reporting = E_ALL & ~E_NOTICE; display all errors, except notices[/color]


    Have you tried the obvious?

    ini_set('error_ reporting', E_ALL & ~E_NOTICE);

    --
    USENET would be a better place if everybody read: | to email me: use |
    http://www.catb.org/~esr/faqs/smart-questions.html | my name in "To:" |
    http://www.netmeister.org/news/learn2quote2.html | header, textonly |
    http://www.expita.com/nomime.html | no attachments. |

    Comment

    • Kevin Timmins

      #3
      Re: No access to php.ini



      --
      Kevin Timmins
      "Pedro Graca" <hexkid@hotpop. com> wrote in message
      news:slrncelbdn .16c.hexkid@ID-203069.user.uni-berlin.de...[color=blue]
      > Kevin Timmins wrote:[color=green]
      > > I dont have direct access to the php.ini file on the production server
      > >
      > > I know I can override the .ini settings using
      > >
      > > <? ini_set("error_ reporting", "some value"); ?>
      > >
      > > So what value can I use in my script to replicate the setting below?
      > >
      > >
      > > My .ini file on my testing machine has
      > >
      > > error_reporting = E_ALL & ~E_NOTICE; display all errors, except notices[/color]
      >
      >
      > Have you tried the obvious?
      >
      > ini_set('error_ reporting', E_ALL & ~E_NOTICE);
      >[/color]
      Thanx,

      suppose it was obvious..


      Comment

      • Piotr Usewicz

        #4
        Re: No access to php.ini

        Kevin Timmins wrote:

        or error_reporting ( E_ALL|E_NOTICE ); ;]

        --
        Regards,
        Piotr Usewicz

        =============== ==
        Cena domeny: do negocjacji. Oferta sprzedaży znajduje się w serwisie Aftermarket.pl, największej giełdzie domen internetowych w Polsce.

        piotr@lop.esol. pl
        +48 880 704 926

        Piotr Usewicz - Your Favourite PHP Developer

        Comment

        Working...