[PHP] Error checking ON

2013-07-17 Thread Tedd Sperling
Hi gang: Considering: On Jul 17, 2013, at 11:41 AM, Jim Giner jim.gi...@albanyhandball.com 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

Re: [PHP] Error checking ON

2013-07-17 Thread Daniel Brown
On Wed, Jul 17, 2013 at 11:49 AM, Tedd Sperling t...@sperling.com wrote: Hi gang: Considering: On Jul 17, 2013, at 11:41 AM, Jim Giner jim.gi...@albanyhandball.com 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

Re: [PHP] Error checking ON

2013-07-17 Thread Tedd Sperling
On Jul 17, 2013, at 11:55 AM, Daniel Brown danbr...@php.net wrote: On Wed, Jul 17, 2013 at 11:49 AM, Tedd Sperling t...@sperling.com wrote: This is what I do for error checking: ini_set('error_reporting', E_ALL | E_STRICT); ini_set('display_errors', 'On');

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 danbr...@php.net wrote: On Wed, Jul 17, 2013 at 11:49 AM, Tedd Sperling t...@sperling.com wrote: This is what I do for error checking: ini_set('error_reporting', E_ALL | E_STRICT);

[PHP] Error connecting with DB

2012-08-27 Thread Rod Lindgren
I need some help. I was cleaning up files on my server yesterday and deleted some files I should not have. One of my websites, www.ancientempires-tours.com has a problem with one section. The subdomain www.egypt.ancientempires-tours.com, is having a problem connecting with the database. I need

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

[PHP] Re: [PHP-WEBMASTER] php error

2012-08-13 Thread Daniel Brown
On Mon, Aug 13, 2012 at 2:32 PM, tomas lagro tomas.la...@hotmail.com wrote: Hello, my name is tomas, i'm having a problem and i've checked a lot of times the script and it is not that, because in my local xampp server it works correctly, the issue is that i have a form on my webpage and when

Re: [PHP] Re: [PHP-WEBMASTER] php error

2012-08-13 Thread As'ad Djamalilleil
can we see the code of the form ? On Mon, Aug 13, 2012 at 11:09 AM, Daniel Brown danbr...@php.net wrote: On Mon, Aug 13, 2012 at 2:32 PM, tomas lagro tomas.la...@hotmail.com wrote: Hello, my name is tomas, i'm having a problem and i've checked a lot of times the script and it is not that,

Re: [PHP] How do I enable more useful PHP error logging?

2012-02-29 Thread Simon Schick
Hi, Daevid What you could do to have it quick is to install the plugin xdebug. Here you can (as described in the documentation linked here) enable to get some extra information for a E_* message from php. http://xdebug.org/docs/stack_trace I would not do that on a live-system where you have 30k

Re: [PHP] How do I enable more useful PHP error logging?

2012-02-29 Thread Stuart Dallas
On 29 Feb 2012, at 01:13, Daevid Vincent wrote: -Original Message- From: Stuart Dallas [mailto:stu...@3ft9.com] Seriously? Errors like this should not be getting anywhere near your production servers. This is especially true if you're really getting 30k hits/s. Don't get me

[PHP] How do I enable more useful PHP error logging?

2012-02-28 Thread Daevid Vincent
My question is, is there a way to enable some PHP configuration that would output more verbose information, such as a backtrace or the URL attempted? In our PHP error log, we have the usual semi-useful information. However this is only a partial story as it's hard to re-create the URL that caused

Re: [PHP] How do I enable more useful PHP error logging?

2012-02-28 Thread Adam Richardson
On Tue, Feb 28, 2012 at 6:14 PM, Daevid Vincent dae...@daevid.com wrote: My question is, is there a way to enable some PHP configuration that would output more verbose information, such as a backtrace or the URL attempted? In our PHP error log, we have the usual semi-useful information

Re: [PHP] How do I enable more useful PHP error logging?

2012-02-28 Thread Stuart Dallas
On 28 Feb 2012, at 23:14, Daevid Vincent wrote: My question is, is there a way to enable some PHP configuration that would output more verbose information, such as a backtrace or the URL attempted? In our PHP error log, we have the usual semi-useful information. However this is only

RE: [PHP] How do I enable more useful PHP error logging?

2012-02-28 Thread Daevid Vincent
-Original Message- From: Stuart Dallas [mailto:stu...@3ft9.com] Seriously? Errors like this should not be getting anywhere near your production servers. This is especially true if you're really getting 30k hits/s. Don't get me started. I joined here almost a year ago. They didn't

Re: [PHP] How do I enable more useful PHP error logging?

2012-02-28 Thread Tommy Pham
On Tue, Feb 28, 2012 at 3:14 PM, Daevid Vincent dae...@daevid.com wrote: My question is, is there a way to enable some PHP configuration that would output more verbose information, such as a backtrace or the URL attempted? Have you looked at log4php? [1] It's a log4j (Java based) logging

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 qi.vol...@gmail.com wrote: I was read substr_compare description in portuguese language, an I asked myself to test it, so after

[PHP] Error in portuguese translation of substr_compare

2011-12-30 Thread QI.VOLMAR QI
I was read substr_compare description in portuguese language, an I asked myself to test it, so after several test, I found that its wrong. The text is in Portuguese: Se length é igual ou maior que o comprimento de main_str e length é setado, substr_compare() imprime warning e retorna

[PHP] Error Reporting

2011-12-23 Thread Floyd Resler
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 errors I want except for parse errors. Basically,

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 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() {

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

2011-05-16 Thread Tim Streater
On 14 May 2011 at 15:05, Peter Lind peter.e.l...@gmail.com wrote: On 14 May 2011 12:33, Tim Streater t...@clothears.org.uk 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

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

2011-05-16 Thread Peter Lind
On 16 May 2011 22:14, Tim Streater t...@clothears.org.uk wrote: On 14 May 2011 at 15:05, Peter Lind peter.e.l...@gmail.com wrote: On 14 May 2011 12:33, Tim Streater t...@clothears.org.uk wrote: I would like, in my app, to recover from as many run-time errors as possible, so that I can tidy

Re: [PHP] Error recovery - fatal errors

2011-05-16 Thread Tim Streater
On 16 May 2011 at 21:34, Peter Lind peter.e.l...@gmail.com 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

[PHP] Error recovery - fatal errors

2011-05-14 Thread Tim Streater
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've added my own error handler, but it seems that I

Re: [PHP] Error recovery - fatal errors

2011-05-14 Thread Peter Lind
On 14 May 2011 12:33, Tim Streater t...@clothears.org.uk 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

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 mike.mackint...@angrystatic.com: Anyone else notice PHP throwing Warning and Notices even when display errors and error reporting disabled? I compiled PHP with the following:

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

2011-05-10 Thread admin
. If this works errors are turned on or your disabling function is malformed. Richard L. Buskirk -Original Message- From: Mike Mackintosh [mailto:mike.mackint...@angrystatic.com] Sent: Monday, May 09, 2011 10:34 PM To: php-general@lists.php.net Subject: [PHP] Error Reporting/Display Errors

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

2011-05-10 Thread Mike Mackintosh
. Richard L. Buskirk -Original Message- From: Mike Mackintosh [mailto:mike.mackint...@angrystatic.com] Sent: Monday, May 09, 2011 10:34 PM To: php-general@lists.php.net Subject: [PHP] Error Reporting/Display Errors Issues? Anyone else notice PHP throwing Warning and Notices even

[PHP] Error Reporting/Display Errors Issues?

2011-05-09 Thread 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=/usr/local/php-5.3.3' '--enable-cli' '--disable-debug' '--disable-rpath' '--disable-static' '--with-pic' '--with-openssl=/usr'

Re: [PHP] Error in variable assignment

2011-04-12 Thread Richard Quadling
On 11 April 2011 20:28, Ethan Rosenberg eth...@earthlink.net 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: ?php session_start(); session_name(Chess);

[PHP] Error in variable assignment

2011-04-11 Thread Ethan Rosenberg
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: ?php session_start(); session_name(Chess); error_reporting(1); if ($_SESSION['flag'] != 1) { $flag = 1; echo br

[PHP] Error handling a max license issue

2011-02-17 Thread Richard Sharp
Hello everyone, I am having the difficult time trying to figure out how to detract an max user license when my script tries to connect to our Pervasive database through an ODBC connector. I am looking for a way to ignore the error if one arise and continue on with the code. Here is what I

[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

[PHP] PHP Error logging

2011-01-17 Thread 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_errors = Off display_startup_errors = Off

Re: [PHP] PHP Error logging

2011-01-17 Thread Daniel Brown
On Mon, Jan 17, 2011 at 19:33, Jimmy Stewpot mail...@oranged.to wrote: 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  

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

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

[PHP] Error Querying Database

2010-12-15 Thread Gary
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 querying database.' Some one point out the error of my

Re: [PHP] Error Querying Database

2010-12-15 Thread Daniel P. Brown
On Wed, Dec 15, 2010 at 13:42, Gary gp...@paulgdesigns.com 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

Re: [PHP] Error Querying Database

2010-12-15 Thread Gary
Daniel P. Brown daniel.br...@parasane.net wrote in message news:aanlkti=gemvzmpjg1uvb4_tdacqlbzyfjcgvd+har...@mail.gmail.com... On Wed, Dec 15, 2010 at 13:42, Gary gp...@paulgdesigns.com wrote: I cant seem to get this to connect. This is to my local testing server, which is on, so we need not

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
Steve Staples sstap...@mnsi.net 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

Re: [PHP] Error Querying Database

2010-12-15 Thread Steve Staples
On Wed, 2010-12-15 at 14:34 -0500, Gary wrote: Steve Staples sstap...@mnsi.net 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

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 sstap...@mnsi.net 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

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 we need not worry that I have posted the UN/PW

Re: [PHP] Error Querying Database

2010-12-15 Thread Bastien Koert
On Wed, Dec 15, 2010 at 3:11 PM, Gary gp...@paulgdesigns.com 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 testing server, which

[PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread Tamara Temple
I'm trying to log some data for debugging and don't have use of the standard output to do so. I'd like to write the info to the php error log. Can this be done from within PHP? I've searched the web site for logging functions, but cannot find any. -- PHP General Mailing List (http

Re: [PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread Daniel P. Brown
On Fri, Oct 22, 2010 at 20:24, Tamara Temple tamouse.li...@gmail.com wrote: I'm trying to log some data for debugging and don't have use of the standard output to do so. I'd like to write the info to the php error log. Can this be done from within PHP? I've searched the web site for logging

Re: [PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread Tamara Temple
On Oct 22, 2010, at 7:31 PM, Daniel P. Brown wrote: On Fri, Oct 22, 2010 at 20:24, Tamara Temple tamouse.li...@gmail.com wrote: I'm trying to log some data for debugging and don't have use of the standard output to do so. I'd like to write the info to the php error log. Can this be done

[PHP] Error handler script

2010-10-20 Thread Teto
Hi, I've been wondering if there was any php project focusing on providing a neat php error handler ? Up to now, I've been coding mine but I've seen videos on the web where a guy was using a really impressive php error_handler. Of course I could code it but if there was something generic I could

Re: [PHP] Error message not understood

2010-10-18 Thread sueandant
Pham tommy...@gmail.com To: 'sueandant' hollandsath...@tiscali.co.uk Cc: 'PHP' php-general@lists.php.net 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

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 version I downloaded was your [1], tho it wa

Re: [PHP] Error message not understood

2010-10-16 Thread sueandant
: Luigi Pressello rad...@gmail.com To: Tommy Pham tommy...@gmail.com Cc: 'sueandant' hollandsath...@tiscali.co.uk; 'PHP' php-general@lists.php.net Sent: Friday, October 15, 2010 10:46 PM Subject: Re: [PHP] Error message not understood Probably a PHP compilation problem. The message seems refer

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 version 5.1.51, but [2] gives no output

Re: [PHP] Error message not understood

2010-10-16 Thread sueandant
. - Original Message - From: Tommy Pham tommy...@gmail.com To: 'sueandant' hollandsath...@tiscali.co.uk; 'Luigi Pressello' rad...@gmail.com Cc: 'PHP' php-general@lists.php.net Sent: Saturday, October 16, 2010 9:38 PM Subject: RE: [PHP] Error message not understood -Original Message- From

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 uninstalled it using Windows' uninstaller

[PHP] Error message not understood

2010-10-15 Thread sueandant
Can anyone help me with this error message and explain how to correct the mismatch? PHP Warning: mysqli_connect() [a href='function.mysqli-connect'function.mysqli-connect/a]: Headers and client library minor version mismatch. Headers:50051 Library:50151 tholland

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_connect

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: sueandant [mailto:hollandsath...@tiscali.co.uk] Sent: Friday, October

Re: [PHP] Error message not understood

2010-10-15 Thread Luigi Pressello
] 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.uk] Sent: Friday, October 15, 2010 2:02 PM To: PHP Subject: [PHP] Error message not understood Can

[PHP] Error in initialising XML parser

2010-09-06 Thread Sridhar Pandurangiah
Hi I am writing a PHP snippet to display invoices that is generated by another computer application. The use case is as follows 1. The other computer application generates the invoices for the month in XML and puts it in a common dirctory. So at anytime there could be multiple files. Each

Re: [PHP] Error in initialising XML parser

2010-09-06 Thread a...@ashleysheridan.co.uk
://www.ashleysheridan.co.uk - Reply message - From: Sridhar Pandurangiah sridharpa...@gmail.com Date: Mon, Sep 6, 2010 09:12 Subject: [PHP] Error in initialising XML parser To: php-general@lists.php.net Hi I am writing a PHP snippet to display invoices that is generated by another computer

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 include

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

2010-08-09 Thread Tristan
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

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 sunnrun...@gmail.com 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

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 peter.e.l...@gmail.com wrote: On 9 August 2010 20:40, Tristan sunnrun...@gmail.com wrote: a client of mine use to have some color coded one but, I can't find it again. anyone

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 sunnrun...@gmail.com wrote: Looking for something that does error logs on the server. Thanks, T On Mon, Aug 9, 2010 at 12:59 PM, Peter Lind peter.e.l...@gmail.com wrote: On 9 August 2010 20:40, Tristan sunnrun...@gmail.com wrote: a client of mine

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 phps...@gmail.com wrote: On Mon, Aug 9, 2010 at 3:12 PM, Tristan sunnrun...@gmail.com wrote: Looking for something that does error logs on the server.

[PHP] Error on Signing Encrypting PayPal Website Payment Button with openssl_

2010-07-24 Thread Keith
Hi, anyone has experience creating PayPal Encrypted Website Payment button? I follow PayPal SDK example but the encrypted value is not correct. I think the error should be with openssl_pkcs7_sign() since PayPal can decrypt it with PayPal private key but does not recognize my signed data.

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-28 Thread viraj
On Tue, Apr 27, 2010 at 7:34 PM, Gary . php-gene...@garydjones.name 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

[PHP] Error handling strategies (db related)

2010-04-27 Thread Gary .
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_error or something? -- PHP General Mailing List

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

2010-04-27 Thread Peter Lind
On 27 April 2010 10:42, Gary . php-gene...@garydjones.name 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

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

2010-04-27 Thread Michiel Sikma
On 27 April 2010 10:42, Gary . php-gene...@garydjones.name 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

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 Peter Lind
On 27 April 2010 15:36, Paul M Foster pa...@quillandmouse.com 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,

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 inform

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 pa...@quillandmouse.com 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

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

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

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 pa...@quillandmouse.com wrote: On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote: On 27 April 2010 15:36, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Apr 27, 2010 at

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

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

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 pa...@quillandmouse.com wrote: On Tue, Apr 27, 2010 at 04:13:20PM +0200, Peter Lind wrote: On 27 April 2010 16:07, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote: On 27 April

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 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

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 it. We are

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:

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

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 far

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 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: ?php ?

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

2010-04-27 Thread Peter Lind
On 27 April 2010 18:21, tedd tedd.sperl...@gmail.com 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

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.

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 very

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 Keyboard

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 doesn't contain

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

2010-04-27 Thread Andrew Ballard
On Tue, Apr 27, 2010 at 12:23 PM, tedd tedd.sperl...@gmail.com 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

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()'img src='/images/myimage.jpg' width='161' height='57' align='right' /Open Window... As far as other PHP goes, the whole

Re: [PHP] Error Message - Need help troubleshooting

2010-03-02 Thread Rene Veerman
k, add ?php error_reporting(0); ? to your script, to prevent the error from showing. On Tue, Mar 2, 2010 at 2:38 PM, Rick Dwyer rpdw...@earthlink.net 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

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 ?php error_reporting(0); ? to your script, to prevent the error from showing. On Tue, Mar 2, 2010 at 2:38 PM, Rick Dwyer rpdw...@earthlink.net wrote: On Mar 2, 2010, at 12:31 AM, Rene Veerman wrote: does the script itself ever

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);

  1   2   3   4   5   6   7   8   9   10   >