467,104 Members | 1,044 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,104 developers. It's quick & easy.

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
Jul 17 '05 #1
  • viewed: 1810
Share:
3 Replies
Kevin Timmins wrote:
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

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. |
Jul 17 '05 #2


--
Kevin Timmins
"Pedro Graca" <he****@hotpop.com> wrote in message
news:sl*******************@ID-203069.user.uni-berlin.de...
Kevin Timmins wrote:
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

Have you tried the obvious?

ini_set('error_reporting', E_ALL & ~E_NOTICE);

Thanx,

suppose it was obvious..
Jul 17 '05 #3
Kevin Timmins wrote:

or error_reporting( E_ALL|E_NOTICE ); ;]

--
Regards,
Piotr Usewicz

=================
www.lop.esol.pl
pi***@lop.esol.pl
+48 880 704 926

Piotr Usewicz - Your Favourite PHP Developer
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

63 posts views Thread by Jerome | last post: by
13 posts views Thread by Simon Bailey | last post: by
reply views Thread by Frederick Noronha \(FN\) | last post: by
64 posts views Thread by John | last post: by
17 posts views Thread by Mell via AccessMonster.com | last post: by
37 posts views Thread by jasmith@bigriver.net | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.