Re: [PHP] Error checking ON

2013-07-17 Thread Jim Lucas
On 07/17/2013 09:28 AM, Tedd Sperling wrote: On Jul 17, 2013, at 11:55 AM, Daniel Brown wrote: On Wed, Jul 17, 2013 at 11:49 AM, Tedd Sperling wrote: This is what I do for error checking: ini_set('error_reporting', E_ALL | E_STRICT); ini_set('display_errors', 'On'); i

Re: [PHP] Error checking ON

2013-07-17 Thread Tedd Sperling
On Jul 17, 2013, at 11:55 AM, Daniel Brown wrote: > On Wed, Jul 17, 2013 at 11:49 AM, Tedd Sperling wrote: >> This is what I do for error checking: >> >>ini_set('error_reporting', E_ALL | E_STRICT); >>ini_set('display_errors', 'On'); >>ini_set('log_errors', 'On'); >>

Re: [PHP] Error checking ON

2013-07-17 Thread Daniel Brown
On Wed, Jul 17, 2013 at 11:49 AM, Tedd Sperling wrote: > Hi gang: > > Considering: > > On Jul 17, 2013, at 11:41 AM, Jim Giner wrote: > >> Since you state that you haven't made any changes to the system (in >> general), I'm going to guess that you modified an 'included' file and it has >> an er

[PHP] Error checking ON

2013-07-17 Thread Tedd Sperling
Hi gang: Considering: On Jul 17, 2013, at 11:41 AM, Jim Giner wrote: > Since you state that you haven't made any changes to the system (in general), > I'm going to guess that you modified an 'included' file and it has an error > in it, such as an unmatched curly brace. As Dan said, turn on a

Re: [PHP] Error checking on file upload

2005-08-19 Thread Peppy
Steve, Thanks a bunch. Must have been "dead brain" today. I knew that as well as could look it up using phpinfo(). Althea >>In your php.ini there are settings for "upload_max_filesize" and also "post_max_size." These would be causes for case 2. More information: http://us3.php.net/features.file

Re: [PHP] Error checking on file upload

2005-08-19 Thread Steve Slotnick
Sorry, I meant case 1. - Steve On 8/19/05, Steve Slotnick <[EMAIL PROTECTED]> wrote: > > In your php.ini there are settings for "upload_max_filesize" and also > "post_max_size." These would be causes for case 2. More information: > http://us3.php.net/features.file-upload > > > On 8/19/05, Pe

Re: [PHP] Error checking on file upload

2005-08-19 Thread Steve Slotnick
In your php.ini there are settings for "upload_max_filesize" and also "post_max_size." These would be causes for case 2. More information: http://us3.php.net/features.file-upload On 8/19/05, Peppy < [EMAIL PROTECTED]> wrote: > > I've been working on a script for uploading a file to a Unix serv

[PHP] Error checking on file upload

2005-08-19 Thread Peppy
I've been working on a script for uploading a file to a Unix server. I'm testing the script and have it coded for error messages using a switch statement. One error that I am getting is case 2 "The file is bigger than this form allows" and I am wondering what might cause me to get the error for

Re: [PHP] error checking woes

2005-08-01 Thread Jack Jackson
Kristen G. Thorson wrote: Thanks for the == ! But I had set $message global within the buld-checkbox function, so that part of it does work. . . . Jack, Read below: Jack Jackson wrote: Hi, Now that the drop down is working properly (thanks!!), I am trying to validate, and havi

Re: [PHP] error checking woes

2005-08-01 Thread Kristen G. Thorson
Jack, Read below: Jack Jackson wrote: Hi, Now that the drop down is working properly (thanks!!), I am trying to validate, and having LOTS of trouble. After being ceaselessly derided last night on an irc channel for my dimwitedness, I am still not any closer. The code which works is this

[PHP] error checking a null array

2005-07-31 Thread Jack Jackson
hi, I have checkboxes beging dynamically generated. to seperate tasks in error checking I have added he arrays not just to $_POST but to $_POST[cb] so names (derived from question numbers) are for example: $_POST[cb][7] A dump of $_POST would therefore include something like ["cb"]=> array

Re: [PHP] error checking woes- SOLVED

2005-07-31 Thread Jack Jackson
I did the smart thing last night: nothing. I read some PHP books and then realized that the answer to my error checking was a lot less complex, once again, than I had initially suspected. I finally ended up with: //error checking foreach($_POST as $qname=>$value) { if(empty($value)){

Re: [PHP] error checking woes

2005-07-30 Thread Jack Jackson
Okay, last attempt before I hit my head against wall. I thought perhaps to add the error check to the dropdown function itself: function GetQuestionsDropdown($cat){ //first get all the questions $sql = "SELECT * FROM questions WHERE questions.q_cat=$cat AND questions.q_style=1"; $result

[PHP] error checking woes

2005-07-30 Thread Jack Jackson
Hi, Now that the drop down is working properly (thanks!!), I am trying to validate, and having LOTS of trouble. After being ceaselessly derided last night on an irc channel for my dimwitedness, I am still not any closer. The code which works is this: function GetQuestionsDropdown($cat){ //fir

Re: [PHP] Error checking

2005-05-23 Thread Janet Valade
Michael Satterwhite wrote: Philip Hallstrom wrote: I'm using Apache and PHP4 under debian. in /etc/php4/apache, I have the setting error_reporting = E_ALL & ~E_NOTICE but I don't get any errors - even when I've clearly used an undefined variable. What else might need to be set to get

Re: [PHP] Error checking - Fixed

2005-05-23 Thread Michael Satterwhite
But I have no idea how. I made a series of changes trying to figure out what I missed. Most of the changes didn't look like they'd do anything - but the error reporting started working. I then tried changing things back - at least I thought I did. The error checking continued to work. I *HAT

Re: [PHP] Error checking

2005-05-23 Thread Michael Satterwhite
Philip Hallstrom wrote: I'm using Apache and PHP4 under debian. in /etc/php4/apache, I have the setting error_reporting = E_ALL & ~E_NOTICE but I don't get any errors - even when I've clearly used an undefined variable. What else might need to be set to get PHP to report errors for me?

Re: [PHP] Error checking

2005-05-23 Thread Christophe Chisogne
Michael Satterwhite a écrit : > in /etc/php4/apache, I have the setting I guess you mean /etc/php4/apache/php.ini > error_reporting = E_ALL & ~E_NOTICE You'll get all errors but warnings (ex unused var). What you want is error_reporting = E_ALL Ch. -- PHP General Mailing Lis

Re: [PHP] Error checking

2005-05-23 Thread Michael Satterwhite
John Nichel wrote: Michael Satterwhite wrote: I'm using Apache and PHP4 under debian. in /etc/php4/apache, I have the setting error_reporting = E_ALL & ~E_NOTICE but I don't get any errors - even when I've clearly used an undefined variable. What else might need to be set to get PHP to

Re: [PHP] Error checking

2005-05-23 Thread John Nichel
Michael Satterwhite wrote: I'm using Apache and PHP4 under debian. in /etc/php4/apache, I have the setting error_reporting = E_ALL & ~E_NOTICE but I don't get any errors - even when I've clearly used an undefined variable. What else might need to be set to get PHP to report errors for m

Re: [PHP] Error checking

2005-05-23 Thread Philip Hallstrom
I'm using Apache and PHP4 under debian. in /etc/php4/apache, I have the setting error_reporting = E_ALL & ~E_NOTICE but I don't get any errors - even when I've clearly used an undefined variable. What else might need to be set to get PHP to report errors for me? take a read through

[PHP] Error checking

2005-05-23 Thread Michael Satterwhite
I'm using Apache and PHP4 under debian. in /etc/php4/apache, I have the setting error_reporting = E_ALL & ~E_NOTICE but I don't get any errors - even when I've clearly used an undefined variable. What else might need to be set to get PHP to report errors for me? -- PHP General Maili

Re: [PHP] error checking with fread

2003-03-06 Thread Marek Kilimajer
add this check John Taylor-Johnston wrote: http://www.php.net/manual/en/function.fread.php What about error checking if the file contains something as I include below? Is that enough? Is this the right way? if(!$handle) die('could not open file for reading'); $contents = fread ($handle, files

[PHP] error checking with fread

2003-03-05 Thread John Taylor-Johnston
http://www.php.net/manual/en/function.fread.php What about error checking if the file contains something as I include below? Is that enough? Is this the right way? $contents";} else{echo "no contents there";} ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w