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

RE: [PHP] Error connecting with DB

2012-08-27 Thread Rod Lindgren
. Sensei Rod Lindgren @KarateClub_us Rod Lindgren -Original Message- From: Volmar Machado [mailto:qi.vol...@gmail.com] Sent: Monday, August 27, 2012 3:12 PM To: r...@okinawa-te.info Subject: Re: [PHP] Error connecting with DB In the first image you have softaculous pointing to

Re: [PHP] Error in portuguese translation of substr_compare

2011-12-31 Thread Daniel P. Brown
Forwarded to the proper address. Docs PT/PT-BR folks, please see the below email. Thanks, and happy new year! On Fri, Dec 30, 2011 at 14:35, QI.VOLMAR QI wrote: > I was read substr_compare description in portuguese language, an I > asked myself to test it, so after several test, I foun

Re: [PHP] Error Reporting

2011-12-23 Thread Jim Lucas
On 12/23/2011 8:13 AM, Floyd Resler wrote: > I know this is a very basic question and I'm almost embarrassed to ask it, > but it's something I really struggle with. That is, getting the right > combination of error reporting options together to report the errors I want. > Right now, I get the

Re: [PHP] Error recovery - fatal errors

2011-05-16 Thread Tim Streater
On 16 May 2011 at 21:34, Peter Lind wrote: > You were trying to call a method on a non-object - how do you expect > PHP to handle that if not with a fatal error? > Anyway, good to hear you solved the issue - I misunderstood what you > wanted to do (shut down in a proper fashion, not actually rec

Re: Re: [PHP] Error recovery - fatal errors

2011-05-16 Thread Peter Lind
On 16 May 2011 22:14, Tim Streater wrote: > On 14 May 2011 at 15:05, Peter Lind wrote: > >> On 14 May 2011 12:33, Tim Streater wrote: >>> I would like, in my app, to recover from as many run-time errors as >>> possible, >>> so that I can tidy up. And unsolicited output generated by the standard

Re: Re: [PHP] Error recovery - fatal errors

2011-05-16 Thread Tim Streater
On 14 May 2011 at 15:05, Peter Lind wrote: > On 14 May 2011 12:33, Tim Streater wrote: >> I would like, in my app, to recover from as many run-time errors as possible, >> so that I can tidy up. And unsolicited output generated by the standard error >> system is really unhelpful as it becomes pa

Re: [PHP] Error recovery - fatal errors

2011-05-16 Thread David Harkness
You can register a shutdown function that gets called even in the case of a fatal error. We use something like this: public function init() { register_shutdown_function(array('Bootstrap', 'fatalErrorCatcher')); ... } public function fatalErrorCatcher() { $error

Re: [PHP] Error recovery - fatal errors

2011-05-14 Thread Peter Lind
On 14 May 2011 12:33, Tim Streater wrote: > I would like, in my app, to recover from as many run-time errors as possible, > so that I can tidy up. And unsolicited output generated by the standard error > system is really unhelpful as it becomes part of the ajax reply to the > browser. > > So I'

Re: [PHP] Error Reporting/Display Errors Issues?

2011-05-10 Thread Mike Mackintosh
Unfortunately setting that within the PHP file directly still results in errors and notices being displayed. I'm at a loss. Sent from my iPhone On May 10, 2011, at 5:40, wrote: > Try this for me in a page you wish to not display errors. > > error_reporting(0); > ini_set('display_errors', 0);

RE: [PHP] Error Reporting/Display Errors Issues?

2011-05-10 Thread admin
Try this for me in a page you wish to not display errors. What you are doing with this function is over riding the php.ini file and turning off the errors on that page. Place the code at the beginning of php before any includes. If this works errors are turned on or your disabling function is m

Re: [PHP] Error Reporting/Display Errors Issues?

2011-05-10 Thread xianhua zhou
You may need to check the running php code, those values can be changed during runtime. 2011/5/10 Mike Mackintosh : > Anyone else notice PHP throwing Warning and Notices even when display errors > and error reporting disabled? > > I compiled PHP with the following: > > './configure'  '--prefix=/

Re: [PHP] Error in variable assignment

2011-04-12 Thread Richard Quadling
On 11 April 2011 20:28, Ethan Rosenberg wrote: > Dear list - > > I an writing a script that will simulate a chess board.  On a move from e2 > to e6 [see below] the variable in e2 is never assigned to e6.  Here are some > code snippets: > > session_start(); > session_name("Chess"); > error_reporti

[PHP] Re: PHP Error logging

2011-01-18 Thread Carlos Medina
Am 18.01.2011 01:33, schrieb Jimmy Stewpot: Hello, I currently have a strange issue where we are seeing 'random errors' being displayed to end users. What I find most interesting is that in the php.ini file we have the following error settings. error_reporting = E_ALL& ~E_NOTICE display_er

Re: [PHP] Error Querying Database

2010-12-20 Thread Ravi Gehlot
Trying to connect to the database can involve setting up your database. Make sure that you have a valid login/password that is recognized by MySQL. Please keep in mind that MySQL works on permission by hosts. So your host IP must be matched with the username/password on the database for a successfu

Re: [PHP] Error Querying Database

2010-12-16 Thread Phred White
It seems like there are several questions emerging, but ... Try echoing your query to the page by putting echo $query in your code before you call mysql, then copy it and run it in phpmyadmin. If it runs then you know your problem is somewhere else like the connection. This can really help you

Re: [PHP] Error Querying Database

2010-12-15 Thread Bastien Koert
On Wed, Dec 15, 2010 at 3:11 PM, Gary wrote: > > Sent: Wednesday, December 15, 2010 2:44 PM > Subject: Re: [PHP] Error Querying Database > >>> > On Wed, 2010-12-15 at 13:42 -0500, Gary wrote: >>> >> I cant seem to get this to connect.  This is to my local te

Re: [PHP] Error Querying Database

2010-12-15 Thread Gary
Sent: Wednesday, December 15, 2010 2:44 PM Subject: Re: [PHP] Error Querying Database >> > On Wed, 2010-12-15 at 13:42 -0500, Gary wrote: >> >> I cant seem to get this to connect. This is to my local testing >> >> server, >> >> which is on, so w

Re: [PHP] Error Querying Database

2010-12-15 Thread Ashley Sheridan
On Wed, 2010-12-15 at 14:44 -0500, Steve Staples wrote: > On Wed, 2010-12-15 at 14:34 -0500, Gary wrote: > > "Steve Staples" wrote in message > > news:1292440837.5460.8.ca...@webdev01... > > > On Wed, 2010-12-15 at 13:42 -0500, Gary wrote: > > >> I cant seem to get this to connect. This is to m

Re: [PHP] Error Querying Database

2010-12-15 Thread Steve Staples
On Wed, 2010-12-15 at 14:34 -0500, Gary wrote: > "Steve Staples" wrote in message > news:1292440837.5460.8.ca...@webdev01... > > On Wed, 2010-12-15 at 13:42 -0500, Gary wrote: > >> I cant seem to get this to connect. This is to my local testing server, > >> which is on, so we need not worry that

Re: [PHP] Error Querying Database

2010-12-15 Thread Gary
"Steve Staples" wrote in message news:1292440837.5460.8.ca...@webdev01... > On Wed, 2010-12-15 at 13:42 -0500, Gary wrote: >> I cant seem to get this to connect. This is to my local testing server, >> which is on, so we need not worry that I have posted the UN/PW. >> >> This is a duplicate of a

Re: [PHP] Error Querying Database

2010-12-15 Thread Steve Staples
On Wed, 2010-12-15 at 13:42 -0500, Gary wrote: > I cant seem to get this to connect. This is to my local testing server, > which is on, so we need not worry that I have posted the UN/PW. > > This is a duplicate of a script I have used countless times and it worked. > The error message is 'Error

Re: [PHP] Error Querying Database

2010-12-15 Thread Gary
""Daniel P. Brown"" wrote in message news:aanlkti=gemvzmpjg1uvb4_tdacqlbzyfjcgvd+har...@mail.gmail.com... On Wed, Dec 15, 2010 at 13:42, Gary wrote: > I cant seem to get this to connect. This is to my local testing server, > which is on, so we need not worry that I have posted the UN/PW. > > Thi

Re: [PHP] Error Querying Database

2010-12-15 Thread Daniel P. Brown
On Wed, Dec 15, 2010 at 13:42, Gary wrote: > I cant seem to get this to connect.  This is to my local testing server, > which is on, so we need not worry that I have posted the UN/PW. > > This is a duplicate of a script I have used countless times and it worked. > The error message is 'Error query

RE: [PHP] Error message not understood

2010-10-18 Thread Tommy Pham
> -Original Message- > From: sueandant [mailto:hollandsath...@tiscali.co.uk] > Sent: Monday, October 18, 2010 1:52 PM > To: Tommy Pham > Cc: 'PHP' > Subject: Re: [PHP] Error message not understood > > I'm running PHP as module with Apache. The ver

Re: [PHP] Error message not understood

2010-10-18 Thread sueandant
quot;Tommy Pham" To: "'sueandant'" Cc: "'PHP'" Sent: Saturday, October 16, 2010 10:49 PM Subject: RE: [PHP] Error message not understood -Original Message- From: sueandant [mailto:hollandsath...@tiscali.co.uk] Sent: Saturday, October 16

RE: [PHP] Error message not understood

2010-10-16 Thread Tommy Pham
> -Original Message- > From: sueandant [mailto:hollandsath...@tiscali.co.uk] > Sent: Saturday, October 16, 2010 2:23 PM > To: Tommy Pham > Cc: PHP > Subject: Re: [PHP] Error message not understood > > Apologies! Vista Home Premium 32bit with SP2. I uninst

Re: [PHP] Error message not understood

2010-10-16 Thread sueandant
cial sites. - Original Message - From: "Tommy Pham" To: "'sueandant'" ; "'Luigi Pressello'" Cc: "'PHP'" Sent: Saturday, October 16, 2010 9:38 PM Subject: RE: [PHP] Error message not understood -Original Message- From: su

RE: [PHP] Error message not understood

2010-10-16 Thread Tommy Pham
> -Original Message- > From: sueandant [mailto:hollandsath...@tiscali.co.uk] > Sent: Saturday, October 16, 2010 1:16 PM > To: Luigi Pressello > Cc: PHP > Subject: Re: [PHP] Error message not understood > > I've run both programs. [1] outputs Client library ve

Re: [PHP] Error message not understood

2010-10-16 Thread sueandant
From: "Luigi Pressello" To: "Tommy Pham" Cc: "'sueandant'" ; "'PHP'" Sent: Friday, October 15, 2010 10:46 PM Subject: Re: [PHP] Error message not understood Probably a PHP compilation problem. The message seems refer to t

Re: [PHP] Error message not understood

2010-10-15 Thread Luigi Pressello
mmy Pham [mailto:tommy...@gmail.com] >> Sent: Friday, October 15, 2010 2:16 PM >> To: 'sueandant'; 'PHP' >> Subject: RE: [PHP] Error message not understood >> >>> -Original Message- >>> From: sueandant [mailto:hollandsath...@tiscali.co

RE: [PHP] Error message not understood

2010-10-15 Thread Tommy Pham
> -Original Message- > From: Tommy Pham [mailto:tommy...@gmail.com] > Sent: Friday, October 15, 2010 2:16 PM > To: 'sueandant'; 'PHP' > Subject: RE: [PHP] Error message not understood > > > -Original Message- > > From: sueand

RE: [PHP] Error message not understood

2010-10-15 Thread Tommy Pham
> -Original Message- > From: sueandant [mailto:hollandsath...@tiscali.co.uk] > Sent: Friday, October 15, 2010 2:02 PM > To: PHP > Subject: [PHP] Error message not understood > > Can anyone help me with this error message and explain how to correct the > mismatch? > > PHP Warning: mysqli_

Re: [PHP] Error in initialising XML parser

2010-09-06 Thread Sridhar Pandurangiah
Thanks, PHP is now able to include the class file Best regards Original Message Subject: Re: [PHP] Error in initialising XML parser From: a...@ashleysheridan.co.uk (a...@ashleysheridan.co.uk) To: Date: Mon Sep 06 2010 13:56:39 GMT+0530 (IST) PHO won't automatically incl

Re: [PHP] Error in initialising XML parser

2010-09-06 Thread a...@ashleysheridan.co.uk
PHO won't automatically include a class file by default. You either need to manually include it with a require, include it or require_once line, or use an automagical include script. As it stands, you're getting the error because php doesn't know where your class is. Thanks, Ash http://www.ashl

Re: [PHP] [ERROR LOG FORMATTER] - any recommendations for web viewable error log formatters?

2010-08-09 Thread Tristan
Thanks but, holy overkill. I just need something simple. Thanks for the advice guys. -T On Mon, Aug 9, 2010 at 2:30 PM, Bastien Koert wrote: > On Mon, Aug 9, 2010 at 3:12 PM, Tristan wrote: > > Looking for something that does error logs on the server. > > > > Thanks, T > > > > On Mon, Aug 9, 2

Re: [PHP] [ERROR LOG FORMATTER] - any recommendations for web viewable error log formatters?

2010-08-09 Thread Bastien Koert
On Mon, Aug 9, 2010 at 3:12 PM, Tristan wrote: > Looking for something that does error logs on the server. > > Thanks, T > > On Mon, Aug 9, 2010 at 12:59 PM, Peter Lind wrote: > >> On 9 August 2010 20:40, Tristan wrote: >> > a client of mine use to have some color coded one but, I can't find it

Re: [PHP] [ERROR LOG FORMATTER] - any recommendations for web viewable error log formatters?

2010-08-09 Thread Tristan
Looking for something that does error logs on the server. Thanks, T On Mon, Aug 9, 2010 at 12:59 PM, Peter Lind wrote: > On 9 August 2010 20:40, Tristan wrote: > > a client of mine use to have some color coded one but, I can't find it > > again. anyone using one that they particularly like? >

Re: [PHP] [ERROR LOG FORMATTER] - any recommendations for web viewable error log formatters?

2010-08-09 Thread Peter Lind
On 9 August 2010 20:40, Tristan wrote: > a client of mine use to have some color coded one but, I can't find it > again. anyone using one that they particularly like? > > similar to this but was hoping for something in PHP > > http://www.psychogenic.com/en/products/Errorlog.php > > Thanks, T > Xd

Re: [PHP] Error handling strategies (db related)

2010-04-28 Thread viraj
On Tue, Apr 27, 2010 at 7:34 PM, Gary . wrote: > On Tue, Apr 27, 2010 at 10:46 AM, Peter Lind wrote: >> On 27 April 2010 10:42, Gary . wrote: >>> How do you guys handle errors during, say, db insertions. >>> >>> Let's say you have an ongoing transaction which fails on the n-th >>> insert. Ok, you

Re: [PHP] Error handling strategies (db related)

2010-04-28 Thread Pete Ford
On 27/04/10 16:37, tedd wrote: Error handling is almost an art form. More like a black art - voodoo perhaps... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Andrew Ballard
On Tue, Apr 27, 2010 at 12:23 PM, tedd wrote: > At 4:23 PM +0100 4/27/10, Nathan Rixham wrote: >> >> I'm still shocked you guys are still writing code that has errors in it, >> what's worse is you know about the errors, and instead of fixing them >> you're just telling the user about it! >> >> :p

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Gary .
On 4/27/10, tedd wrote: > At 4:23 PM +0100 4/27/10, Nathan Rixham wrote: >> >>I'm still shocked you guys are still writing code that has errors in it, >>what's worse is you know about the errors, and instead of fixing them >>you're just telling the user about it! >> >>:p > > Here's my code that doe

RE: [PHP] Error handling strategies (db related)

2010-04-27 Thread Tommy Pham
At 10:24 AM -0400 4/27/10, Paul M Foster wrote: >Unfortunately, true. Sometimes I think computer users should be >required to take a course in using a computer before being allowed >behind the keyboard. > >Paul I came across a term long ago amidst my readings: PEBKAC Problem Exists Between Keybo

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Paul M Foster
On Tue, Apr 27, 2010 at 12:12:31PM -0400, tedd wrote: > At 4:13 PM +0200 4/27/10, Peter Lind wrote: >> If only the world consisted of smart users ... I think, however, that >> we're generally closer to the opposite. And no, I don't hate users - >> I've just seen too many people do things that were

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Ashley Sheridan
On Tue, 2010-04-27 at 12:31 -0400, tedd wrote: > At 5:09 PM +0100 4/27/10, Ashley Sheridan wrote: > >> > > > >Sounds like you've got a few stories that would a lot of people > >happy were you to share them on the DailyWTF ;) > > > >Thanks, > >Ash > > Ash: > > Sharing them here is more direct an

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread tedd
At 5:09 PM +0100 4/27/10, Ashley Sheridan wrote: Sounds like you've got a few stories that would a lot of people happy were you to share them on the DailyWTF ;) Thanks, Ash Ash: Sharing them here is more direct and meaningful to what we do, but I will investigate what you suggest. Che

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Peter Lind
On 27 April 2010 18:21, tedd wrote: > At 4:31 PM +0200 4/27/10, Peter Lind wrote: >> >> While I love to rant at stupid users, the truth is probably that >> programmers are the ones who should take courses in how users think. >> In the end, if I fail to understand my users, it doesn't matter how >>

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread tedd
At 4:23 PM +0100 4/27/10, Nathan Rixham wrote: I'm still shocked you guys are still writing code that has errors in it, what's worse is you know about the errors, and instead of fixing them you're just telling the user about it! :p Here's my code that doesn't contain errors: Cheers, ted

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread tedd
At 4:31 PM +0200 4/27/10, Peter Lind wrote: While I love to rant at stupid users, the truth is probably that programmers are the ones who should take courses in how users think. In the end, if I fail to understand my users, it doesn't matter how great my program is: they'll still fail to use it.

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Ashley Sheridan
On Tue, 2010-04-27 at 12:12 -0400, tedd wrote: > At 4:13 PM +0200 4/27/10, Peter Lind wrote: > >If only the world consisted of smart users ... I think, however, that > >we're generally closer to the opposite. And no, I don't hate users - > >I've just seen too many people do things that were very f

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread tedd
At 10:24 AM -0400 4/27/10, Paul M Foster wrote: Unfortunately, true. Sometimes I think computer users should be required to take a course in using a computer before being allowed behind the keyboard. Paul Yeah, like I believe that everyone should do through at least one divorce before getting

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread tedd
At 4:13 PM +0200 4/27/10, Peter Lind wrote: If only the world consisted of smart users ... I think, however, that we're generally closer to the opposite. And no, I don't hate users - I've just seen too many people do things that were very far removed from "smart". Regards Peter Peter et al: S

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Nathan Rixham
Teus Benschop wrote: >> I'm still shocked you guys are still writing code that has errors in it, >> what's worse is you know about the errors, and instead of fixing them >> you're just telling the user about it! >> > > The point here is that we, programmers, know that we write code with > bugs in

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread tedd
At 9:36 AM -0400 4/27/10, Paul M Foster wrote: On Tue, Apr 27, 2010 at 10:42:03AM +0200, Gary . wrote: How do you guys handle errors during, say, db insertions. Let's say you have an ongoing transaction which fails on the n-th insert. Ok, you roll back the transaction, no problem. How do yo

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Teus Benschop
> I'm still shocked you guys are still writing code that has errors in it, > what's worse is you know about the errors, and instead of fixing them > you're just telling the user about it! > The point here is that we, programmers, know that we write code with bugs in it. We are realistic about it,

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Nathan Rixham
Peter Lind wrote: > On 27 April 2010 16:24, Paul M Foster wrote: >> On Tue, Apr 27, 2010 at 04:13:20PM +0200, Peter Lind wrote: >> >>> On 27 April 2010 16:07, Paul M Foster wrote: On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote: > On 27 April 2010 15:36, Paul M Foster wr

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Peter Lind
On 27 April 2010 16:24, Paul M Foster wrote: > On Tue, Apr 27, 2010 at 04:13:20PM +0200, Peter Lind wrote: > >> On 27 April 2010 16:07, Paul M Foster wrote: >> > On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote: >> > >> >> On 27 April 2010 15:36, Paul M Foster wrote: >> >> > On Tue, Ap

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Paul M Foster
On Tue, Apr 27, 2010 at 04:13:20PM +0200, Peter Lind wrote: > On 27 April 2010 16:07, Paul M Foster wrote: > > On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote: > > > >> On 27 April 2010 15:36, Paul M Foster wrote: > >> > On Tue, Apr 27, 2010 at 10:42:03AM +0200, Gary . wrote: > >> > >

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Peter Lind
On 27 April 2010 16:07, Paul M Foster wrote: > On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote: > >> On 27 April 2010 15:36, Paul M Foster wrote: >> > On Tue, Apr 27, 2010 at 10:42:03AM +0200, Gary . wrote: >> > >> >> How do you guys handle errors during, say, db insertions. >> >> >> >

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Paul M Foster
On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote: > On 27 April 2010 15:36, Paul M Foster wrote: > > On Tue, Apr 27, 2010 at 10:42:03AM +0200, Gary . wrote: > > > >> How do you guys handle errors during, say, db insertions. > >> > >> Let's say you have an ongoing transaction which fails

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Gary .
On Tue, Apr 27, 2010 at 10:46 AM, Peter Lind wrote: > On 27 April 2010 10:42, Gary . wrote: >> How do you guys handle errors during, say, db insertions. >> >> Let's say you have an ongoing transaction which fails on the n-th >> insert. Ok, you roll back the transaction, no problem. How do you then

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Peter Lind
On 27 April 2010 15:36, Paul M Foster wrote: > On Tue, Apr 27, 2010 at 10:42:03AM +0200, Gary . wrote: > >> How do you guys handle errors during, say, db insertions. >> >> Let's say you have an ongoing transaction which fails on the n-th >> insert. Ok, you roll back the transaction, no problem. Ho

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Paul M Foster
On Tue, Apr 27, 2010 at 10:42:03AM +0200, Gary . wrote: > How do you guys handle errors during, say, db insertions. > > Let's say you have an ongoing transaction which fails on the n-th > insert. Ok, you roll back the transaction, no problem. How do you then > inform the user? Just using the text

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Michiel Sikma
On 27 April 2010 10:42, Gary . wrote: > How do you guys handle errors during, say, db insertions. > > Let's say you have an ongoing transaction which fails on the n-th > insert. Ok, you roll back the transaction, no problem. How do you then > inform the user? Just using the text from pg_result_er

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Peter Lind
On 27 April 2010 10:42, Gary . wrote: > How do you guys handle errors during, say, db insertions. > > Let's say you have an ongoing transaction which fails on the n-th > insert. Ok, you roll back the transaction, no problem. How do you then > inform the user? Just using the text from pg_result_err

Re: [PHP] Error Message - Need help troubleshooting

2010-03-02 Thread Rick Dwyer
On Mar 2, 2010, at 9:45 AM, Joseph Thayne wrote: I do not know if the question has been answered, but how are you opening the session? Are you using session_start() or are you using session_register()? Hi Joseph. It is created via: session_start(); --Rick -- PHP General Mailing List

Re: [PHP] Error Message - Need help troubleshooting

2010-03-02 Thread Rick Dwyer
On Mar 2, 2010, at 9:35 AM, Ashley Sheridan wrote: I'm assuming then that both the Javascript an the PHP code you have above are both on the same page. The only way I can see your problem occurring would be if your javascript part was on a different page and you were attempting to output t

Re: [PHP] Error Message - Need help troubleshooting

2010-03-02 Thread Joseph Thayne
I do not know if the question has been answered, but how are you opening the session? Are you using session_start() or are you using session_register()? Rick Dwyer wrote: On Mar 2, 2010, at 8:48 AM, Ashley Sheridan wrote: How is $item_id created? You've not shown that in your PHP script ex

Re: [PHP] Error Message - Need help troubleshooting

2010-03-02 Thread Ashley Sheridan
On Tue, 2010-03-02 at 09:35 -0500, Rick Dwyer wrote: > On Mar 2, 2010, at 8:48 AM, Ashley Sheridan wrote: > > > > How is $item_id created? You've not shown that in your PHP script > > examples. > > // parse item id from the url > $refer=$_SERVER['HTTP_REFERER']; > $thispage=$_SERVER['PHP_SELF']

Re: [PHP] Error Message - Need help troubleshooting

2010-03-02 Thread Rick Dwyer
On Mar 2, 2010, at 8:48 AM, Ashley Sheridan wrote: How is $item_id created? You've not shown that in your PHP script examples. // parse item id from the url $refer=$_SERVER['HTTP_REFERER']; $thispage=$_SERVER['PHP_SELF']; $item_id=substr($thispage, -9); $item_id=substr($item_id, 0, 5); $_SE

Re: [PHP] Error Message - Need help troubleshooting

2010-03-02 Thread Ashley Sheridan
On Tue, 2010-03-02 at 14:49 +0100, Rene Veerman wrote: > k, add to your script, > to prevent the error from showing. > > On Tue, Mar 2, 2010 at 2:38 PM, Rick Dwyer wrote: > > On Mar 2, 2010, at 12:31 AM, Rene Veerman wrote: > >> does the script itself ever fail, asides from showing this msg? >

Re: [PHP] Error Message - Need help troubleshooting

2010-03-02 Thread Rene Veerman
k, add to your script, to prevent the error from showing. On Tue, Mar 2, 2010 at 2:38 PM, Rick Dwyer wrote: > On Mar 2, 2010, at 12:31 AM, Rene Veerman wrote: >> does the script itself ever fail, asides from showing this msg? > > No it works fine.  The most annoying thing in making it difficult

Re: [PHP] Error Message - Need help troubleshooting

2010-03-02 Thread Rick Dwyer
On Mar 2, 2010, at 12:31 AM, Rene Veerman wrote: i doubt you passed us the entire .js.php script.. The rest of the JS is as follows: a href='javascript:loadOSS()'>width='161' height='57' align='right' />Open Window... As far as other PHP goes, the whole page is PHP so I wouldn't know

Re: [PHP] Error Message - Need help troubleshooting

2010-03-01 Thread Rene Veerman
i doubt you passed us the entire .js.php script.. does the script itself ever fail, asides from showing this msg? On Tue, Mar 2, 2010 at 5:46 AM, Rick Dwyer wrote: > Hello List. > > I have some JS code that open a new window with a contact form in it.  When > the link is clicked to open the new

Re: [PHP] Error message

2009-09-05 Thread Tommy Pham
- Original Message > From: Bruce Dobson > To: php-general@lists.php.net > Sent: Saturday, September 5, 2009 4:19:29 PM > Subject: [PHP] Error message > > Hi folks, > > I am new on this list and to php. I have just downloaded and gotten php 5.3.0 > working with IIS on one computer but m

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Keith
Ash, Ben, Thanks! For my web server, I can access to: ./httpdocs ./httpsdocs all the http documents are stored inside httpdocs and SSL documents inside httpsdocs. The web root you mean here is referred to ./httpdocs and ./httpsdocs or the parent directory of them? If I put the logfile inside

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Ashley Sheridan
On Fri, 2009-08-28 at 09:28 -0700, Ben Dunlap wrote: > > Which format should I used for log file? *.log or *.txt? > > Doesn't matter to PHP -- but you do need to provide a local path, not a URL. > > > [http://domain.com/log/logfile.*] or > > No... > > > [C:\some_path\domain.com\log\logfile.*] o

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Ben Dunlap
> Which format should I used for log file? *.log or *.txt? Doesn't matter to PHP -- but you do need to provide a local path, not a URL. > [http://domain.com/log/logfile.*] or No... > [C:\some_path\domain.com\log\logfile.*] or just Yes! Ben -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Stuart
2009/8/28 Martin Scotta : > On Fri, Aug 28, 2009 at 10:39 AM, Ashley Sheridan > wrote: > >> On Fri, 2009-08-28 at 10:34 -0300, Martin Scotta wrote: >> > Actually there aren't a safe way to make a redirect >> > >> > We have 4 alternatives (correct me if I miss anything) to do a safe >> > redirec

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Martin Scotta
On Fri, Aug 28, 2009 at 10:39 AM, Ashley Sheridan wrote: > On Fri, 2009-08-28 at 10:34 -0300, Martin Scotta wrote: > > Actually there aren't a safe way to make a redirect > > > > We have 4 alternatives (correct me if I miss anything) to do a safe > > redirection. > > Erm wtf?! > > The best bet

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Keith
Hi all, Yes, you are right, it was due to echo for testing purpose not been commented out prior to header(). However, there is hidden root cause too -- PHPMailer will echo invalid address to the screen. When I have tested with 1 valid email address and 1 invalid with someth...@locahost, PHPMai

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Ashley Sheridan
On Fri, 2009-08-28 at 10:34 -0300, Martin Scotta wrote: > Actually there aren't a safe way to make a redirect > > We have 4 alternatives (correct me if I miss anything) to do a safe > redirection. Erm wtf?! The best bet is always going with a header() redirect. The only time I've seen that

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Martin Scotta
On Fri, Aug 28, 2009 at 9:36 AM, Floyd Resler wrote: > Another solution would be to use JavaScript. In your process.php script > you could do this: > print<< >window.location.href="index.php" > > here; > > Not strictly a PHP solution but it works. > > Take care, > Floyd > > > On Aug 28

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Floyd Resler
Another solution would be to use JavaScript. In your process.php script you could do this: print<< window.location.href="index.php" here; Not strictly a PHP solution but it works. Take care, Floyd On Aug 28, 2009, at 5:34 AM, Ashley Sheridan wrote: On Fri, 2009-08-28 at 17:32 +080

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread hack988 hack988
Some Php's tigger info output to client before you set header.try this code first --- ob_start();//first line write this code <<>> header("location:index.php"); ob_end_flush(); --

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Ashley Sheridan
On Fri, 2009-08-28 at 17:32 +0800, Keith wrote: > I have a user sign up page that collects sign up information from user with > form. > This form will then be submitted to another process.php page for setting up > the user account and send email to the user. > After the email been sent out, the u

Re: [PHP] Error Trapping

2009-07-10 Thread Eddie Drapkin
On Fri, Jul 10, 2009 at 11:39 AM, Floyd Resler wrote: > Eddie, >        Thanks for the tip.  It suddenly occurred to me what I was doing > wrong.  I do use an error trap but I was telling my script to stop running > after the error.  So, now I ignore it and continue through the loop you > suggested

Re: [PHP] Error Trapping

2009-07-10 Thread Floyd Resler
Eddie, Thanks for the tip. It suddenly occurred to me what I was doing wrong. I do use an error trap but I was telling my script to stop running after the error. So, now I ignore it and continue through the loop you suggested. I guess it was working exactly the way I had written it!

Re: [PHP] Error Trapping

2009-07-10 Thread Eddie Drapkin
On Fri, Jul 10, 2009 at 10:56 AM, Floyd Resler wrote: > I'm having a hard time getting my head around this problem.  I have to > connect to a FoxPro database using an ODBC driver.  Sometimes when I connect > I get an error.  The error doesn't occur all the time and usually another > connect attempt

Re: [PHP] error with hosting

2009-04-24 Thread 9el
On Fri, Apr 24, 2009 at 7:41 PM, Jan G.B. wrote: > 2009/4/24 Andrew Ballard : > > On Tue, Apr 21, 2009 at 1:20 PM, Jan G.B. > wrote: > >> Do yourself a favour: > >> > >> * remopve that 1337 hax0r name - it makes you look like a dumbass > > > > This coming from someone whose e-mail address is ro0

Re: [PHP] error with hosting

2009-04-24 Thread Jan G.B.
2009/4/24 Andrew Ballard : > On Tue, Apr 21, 2009 at 1:20 PM, Jan G.B. wrote: >> Do yourself a favour: >> >> * remopve that 1337 hax0r name - it makes you look like a dumbass > > This coming from someone whose e-mail address is ro0ot.w...@? > Sounds a little ironic.  ;-) Got me. ;) But try to

Re: [PHP] error with hosting

2009-04-24 Thread Andrew Ballard
On Tue, Apr 21, 2009 at 1:20 PM, Jan G.B. wrote: > Do yourself a favour: > > * remopve that 1337 hax0r name - it makes you look like a dumbass This coming from someone whose e-mail address is ro0ot.w...@? Sounds a little ironic. ;-) Andrew -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] error with hosting

2009-04-21 Thread Jan G.B.
2009/4/21 ®0L¥ : > I have a littli application in PHP that I do with appserv, in my local > server work ok but when I upload de page.php to the hosting server don't > work, the hosting say in your page that support php and the web server is > apache because the directory is httpdocs, and why my pag

Re: [PHP] Error on .htaccess

2009-04-01 Thread Virgilio Quilario
> In all the servers i had tested my system i dont have any problem, but in > this server the apache are displaying to me the error 500 "Internal Server > Error". > > Someone can say tome what is wront with my .htaccess? > > RewriteEngine On > > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond $1

Re: [PHP] Error on .htaccess

2009-04-01 Thread Daniel Brown
On Wed, Apr 1, 2009 at 10:39, Igor Escobar wrote: > In all the servers i had tested my system i dont have any problem, but in > this server the apache are displaying to me the error 500 "Internal Server > Error". > > Someone can say tome what is wront with my .htaccess? This is a question for

Re: [PHP] Error printer_open()

2009-03-27 Thread Gerardo Picotti
Yes, dll file exists in this folder: C:\PHP\EXT Bastien Koert escribió: On Fri, Mar 27, 2009 at 8:37 AM, Gerardo Picotti > wrote: Hi. I'm trying to use the printer functions in my php development. I add the php_printer.dll in the "c:/php/ext/" path.

Re: [PHP] Error printer_open()

2009-03-27 Thread Bastien Koert
On Fri, Mar 27, 2009 at 8:37 AM, Gerardo Picotti wrote: > Hi. > I'm trying to use the printer functions in my php development. > I add the php_printer.dll in the "c:/php/ext/" path. > I add the line in the php.ini file like that: extension=php_printer.dll. > But that doesn't work and gives the nex

  1   2   3   4   5   6   7   >