Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
I've got them turned down in production. I was just curious to see a preferred method. On Sat, 07 Apr 2007 16:28:38 -0400 Danny Robert <daniel.robert at acm.org> wrote: > Typically these messages are "avoided" by turning down the error > reporting level once in production. The isset() approach is a fine way > of doing it, or just seeing the messages while developing, then turning > down the logging level in production is fine too. > > -Danny > > Jerry Feldman wrote: > > Just a followup. I added the following lines that were very useful. > > error_reporting(E_ALL); > > ini_set('display_errors', 1); > > ini_set('display_startup_errors ',1); > > There were 2 problems. One was a result of register_globals being off. > > I fixed that with: > > $VAR = $_POST['VAR']; > > The other was I was using $PHP_SELF, and it is not $_SERVER['PHP_SELF']. > > > > The script now works correctly. > > But, one more quesiton. When I have the debugging turned on, it reports > > that $_POST['VAR'] is not set. > > Notice: Undefined index: VAR in script.php on line 6 > > I can fix this with: > > if (isset($_POST['VAR'] ) > > $VAR = $_POST['VAR']; > > Is there a better way of doing this to avoid the messages. > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Discuss mailing list > > Discuss at blu.org > > http://lists.blu.org/mailman/listinfo/discuss > > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > Discuss mailing list > Discuss at blu.org > http://lists.blu.org/mailman/listinfo/discuss > -- Jerry Feldman <gaf at blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |