> -----Original Message----- > From: Anthony Ritter [mailto:[EMAIL PROTECTED]] > Sent: 13 January 2003 17:07 > I'm testing the following form on: > > MS Win98 / IE 5.5 / PHP 4.0 / Apache and it works fine. > > However...when I publish the > > .php file > > and the > > data.txt file > > on the ISP's MS IIS server, I get undeclared variables and > indexes when the > form page loads.
This is more than likely a disparity between the error_level settings on your local server and the ISP's server. There's a couple of things you can do about this: (1) turn error_reporting up on your test server to E_ALL, and rewrite to eliminate all the warnings; this is technically probably the best solution, but the most work. (2) put an error_reporting(E_ALL ^ E_NOTICE) at the start of all your scripts. (3) persuade your ISP to turn down the default error reporting on their server -- there's really no reason to have notice-level messages turned on on a production site. (Personally, I'd say that a production site shouldn't send *any* PHP errors to the browser -- they should either be turned off completely, or sent to a logfile for you to peruse periodically.) Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php