By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,723 Members | 1,891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,723 IT Pros & Developers. It's quick & easy.

No access to php.ini

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a


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

P: n/a
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.