Configuration

This is a discussion on Configuration within the PHP Language forums, part of the PHP Programming Forums category; There's obviously a configuration difference between my development server (running Debian) and a production server I use (running Slackware). ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-25-2005
Michael Satterwhite
 
Posts: n/a
Default Configuration

There's obviously a configuration difference between my development server
(running Debian) and a production server I use (running Slackware). On my
development server, no error is produced in the following statement if $a
hasn't been initialized:

$b = $a;

$a simply returns a null string. On the production server, this is an
undefined variable error. Likewise the following

$a = $_POST['someVar'];

Gets no error on development, but does on production if $_POST['someVar'] is
undefined.

What configuration parameters control this?

tia
---Michael

Reply With Quote
  #2 (permalink)  
Old 01-25-2005
NC
 
Posts: n/a
Default Re: Configuration

Michael Satterwhite wrote:
>
> There's obviously a configuration difference between my development

server
> (running Debian) and a production server I use (running Slackware).

On my
> development server, no error is produced in the following statement

if $a
> hasn't been initialized:
>
> $b = $a;
>
> $a simply returns a null string. On the production server, this is an
> undefined variable error. Likewise the following
>
> $a = $_POST['someVar'];
>
> Gets no error on development, but does on production if

$_POST['someVar']
> is undefined.
>
> What configuration parameters control this?


The error_reporting directive:

http://www.php.net/manual/en/ref.err...rror-reporting

It is often recommended that you do the opposite of what you have
right now -- set high level of error reporting on the development
server and low one on the production server and not move into
production environment until errors stop popping up...

Cheers,
NC

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0