On Mon, Jan 17, 2011 at 19:33, Jimmy Stewpot 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 = E_ALL & ~
mattias wrote:
> ERR_DB_NO_DB_PASS
>What will this meen?
No database password has been set in config.
/Per Jessen, Zürich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Daniel Brown wrote:
> On Feb 11, 2008 11:12 AM, <[EMAIL PROTECTED]> wrote:
>>> On Feb 11, 2008 10:40 AM, <[EMAIL PROTECTED]> wrote:
HEllo
with the next code i am trying for loading one file
$mibool = FALSE;
$Descriptor2 = fopen("usuarios.txt","r");
>>> Does this
On Feb 11, 2008 11:12 AM, <[EMAIL PROTECTED]> wrote:
> > On Feb 11, 2008 10:40 AM, <[EMAIL PROTECTED]> wrote:
> >> HEllo
> >> with the next code i am trying for loading one file
> >>
> >>
> >> $mibool = FALSE;
> >> $Descriptor2 = fopen("usuarios.txt","r");
> >
> > Does this file exist in the
> On Feb 11, 2008 10:40 AM, <[EMAIL PROTECTED]> wrote:
>> HEllo
>> with the next code i am trying for loading one file
>>
>>
>> $mibool = FALSE;
>> $Descriptor2 = fopen("usuarios.txt","r");
>
> Does this file exist in the directory from which the script is
> ultimately run, and is it readable?
On Feb 11, 2008 10:40 AM, <[EMAIL PROTECTED]> wrote:
> HEllo
> with the next code i am trying for loading one file
>
>
> $mibool = FALSE;
> $Descriptor2 = fopen("usuarios.txt","r");
Does this file exist in the directory from which the script is
ultimately run, and is it readable?
> $usuario
Miguel J. Jiménez wrote:
Hi. I have been asked to try to catch the php error generated when the
PHP script exceed execution time, but I do not know if that can be
done... Any ideas? Mainly I want to show a custimized error page instead
of that error (kind of "Sorry but we are busy right now" or
On Mon, 2006-12-18 at 20:55 +0200, Sancar Saran wrote:
>
> Oh really?
> so where is my spy-adware windows trojan prize ?
>
> Thank you Jochem, asking you always easy than the searching documentation and
> I always wonder what can I do without you and your great comments :).
>
> I promise, next
On Monday 18 December 2006 15:39, Jochem Maas wrote:
> Sancar Saran wrote:
> > Hi,
> >
> > Is anyone know that errors generated by php (like Notice: Uninitialized
> > string offset: 0 in ...) may stored in a php variable and print out later
> > ?
> >
> > I want to put them some other location and s
Sancar Saran wrote:
> Hi,
>
> Is anyone know that errors generated by php (like Notice: Uninitialized
> string
> offset: 0 in ...) may stored in a php variable and print out later ?
>
> I want to put them some other location and show them in a debug window. I do
> this for my error reporting a
Use the set_error_handle function:
http://us2.php.net/manual/en/function.set-error-handler.php
saqib
http://www.full-disk-encryption.net
On 12/18/06, Sancar Saran <[EMAIL PROTECTED]> wrote:
Hi,
Is anyone know that errors generated by php (like Notice: Uninitialized string
offset: 0 in ...) may
On Thu, April 20, 2006 7:42 am, Weber Sites LTD wrote:
> I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written
> to
> file.
> I can see all of the direct errors but when I have an error inside an
> include
> file the script fails and the error is not shown in the log. I have to
> "
ROTECTED]
Sent: Thursday, April 20, 2006 5:15 PM
To: Weber Sites LTD
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP error log
Run the include file separately and see if it produces an error. Also make
sure that if you have "short open tags=OFF" that your include file uses
normal tags.
Run the include file separately and see if it produces an error. Also
make sure that if you have "short open tags=OFF" that your include file
uses normal tags.
Code normally helps.
Wolf
Weber Sites LTD wrote:
> Hi
>
> I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written to
>
Please, explain how are you logging the errors.
Weber Sites LTD wrote:
Hi
I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written to
file.
I can see all of the direct errors but when I have an error inside an
include
file the script fails and the error is not shown in the log. I
Are you using the constants predefined?
__FILE__ __LINE__
Or also try using backtrace,
http://mx.php.net/debug_backtrace
Regards!
Edwin.
-Mensaje original-
De: Weber Sites LTD [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 20 de Abril de 2006 07:43 a.m.
Para: php-general@lists.php.
On 29 March 2006 15:25, ngwarai zed wrote:
> phpinfo says
>
> Configuration File (php.ini) Path /etc/php.ini
>
> And the file I am editing is /etc/php.ini Is this not the
> one Iam supposed to edit?
On list please!
H'mmm -- file permissions? You've stopped and restarted Apache? Which
oper
On Wed, 2006-03-29 at 16:38 +0300, ngwarai zed wrote:
> I tried changing display_errors = On and error_reporting = On in
> php.ini , restarted httpd but when I check with phpinfo() I still see
> display_errors set to Off and error_reporting set to 2047. My php
> script still does not show any error
On Wed, 2006-03-29 at 18:25 +0300, ngwarai zed wrote:
> But still the problem is not solved. Just to recap on the problem: I
> just want the deliberate php errors Imake to shown as errors on the
> php page when the script runs.
Yes, that should be the normal behaviour. Check your error_reporting
s
Thanks Christopher for your help. I followed you numbered advicestep by
step.
1) I verified that there weren't any typo's that were causing fatal problems
in my php.ini
2) looked at the output of phpinfo() and verified the location of the
php.ini script. /etc/php.ini .This is the file I am modif
> -Original Message-
> From: ngwarai zed [mailto:[EMAIL PROTECTED]
> Sent: 29 March 2006 14:39
> To: Christopher Murtagh
> The problem is I know what the error is. What I want is for
> the error to be shown when I run the script not to be just
> written to the error log. I tried changin
I checked the apache error log and the error is written there just as I
expected like below.
[client 127.0.0.1] PHP Parse error: parse error, unexpected T_STRING,
expecting ',' or ';' on line 90, referer: http://localhost/form.html
The problem is I know what the error is. What I want is for th
At 10:57 AM 3/28/2006, ngwarai zed wrote:
hi, I omitted a semicolon ; at the end of a php statement on purpose to see
what the error looks like. I ran the script and a blank page just came
out.No error message. I then edited php.ini and set Display_errors = On and
errror_reporting = E_ALL then
ngwarai zed wrote:
hi, I omitted a semicolon ; at the end of a php statement on purpose to see
what the error looks like. I ran the script and a blank page just came
out.No error message. I then edited php.ini and set Display_errors = On and
errror_reporting = E_ALL then restarted httpd. Ran t
- Original Message -
From: "Terry Romine" <[EMAIL PROTECTED]>
To:
Sent: Sunday, August 07, 2005 10:03 AM
Subject: [PHP] PHP error tracking on new server
... The problem is that when an error occurs, the page just comes up
blank,
Does your hosting service give you access to the PH
Hey Terry--
On 8/7/05 11:03 AM, "Terry Romine" <[EMAIL PROTECTED]> wrote:
>
> Any ideas on what flag may need to be set and how to do it on a file-
> by-file basis so I am only tweaking it when testing?
>
> Terry
Does your hosting provider support .htaccess? If so, you may be able to
change th
--- Bruce Gilbert <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am trying to get a form to work integrating html
> with PHP.
I see a couple problems...
This line:
> if ($POST['sender_email'] =="") {
Should probably be:
if ($_POST['sender_email'] =="") {
Note the underscore in $_POST
From: Bruce Gilbert [mailto:[EMAIL PROTECTED]
> Hello,
>
> I am trying to get a form to work integrating html with PHP.
>
> the code I have is:
>
> $form_block = "
>
> Your Name:< /br>
>
> < /br>
>
> Message:< /br>
>
>
> Form\">
> ";
>
> if ($_POST['op'] !="ds") {
> // they need to see
[snip]
and the error I get is:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in
/hsphere/local/home/bruceg/inspired-evolution.com/Contact_Form_test.php
on line 58
[/snip]
I forgot to say that the code you sent does not include 58
[snip]
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in
/hsphere/local/home/bruceg/inspired-evolution.com/Contact_Form_test.php
on line 58
[/snip]
Send us the first 60 or so lines of the code and we'll see what we can
see. I strong
Apologies...just have had loose fingers
- Original Message -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Wil" <[EMAIL PROTECTED]>;
Sent: Thursday, January 06, 2005 3:31 PM
Subject: RE: [PHP] Php error with MySql
[snip]
...stuff...
Wil
[/snip]
I
- Original Message -
From: "Wil" <[EMAIL PROTECTED]>
To:
Sent: Thursday, January 06, 2005 9:35 PM
Subject: [PHP] Php error with MySql
> I get the following error
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
> resource in /home/wilmail/public_html/elblog.p
Wil wrote:
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
$n
Wil Hitchman wrote:
> I get the following error
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
> resource in /home/wilmail/public_html/elblog.php on line 7
> &n=& //error ends here
>
> with the following bit of code
>
> $qResult = mysql_query ("SELECT * FROM blog_ent
sounds like there's something up with the query, perhaps the wrong table
name.
as a debugging method I usually use the die() clause when performing a query
so I can ensure the query is correct.
try using this:
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC") or
die("could n
[snip]
...stuff...
Wil
[/snip]
I replied to this over an hour ago, please do not repost.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Wil Hitchman wrote:
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY i
> From: "Wil Hitchman" <[EMAIL PROTECTED]>
>
> I get the following error
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
> resource in /home/wilmail/public_html/elblog.php on line 7
> &n=& //error ends here
>
> with the following bit of code
>
> $qResult = mysql
[snip]
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
$
Yes you're correct, this was fixed about a week ago and will show up when
the manual is next built (which should be soon), here's the diff:
http://cvs.php.net/diff.php/phpdoc/en/language/oop5/visibility.xml?r1=1.2&r2=1.3
When you find errors like this be sure to file a doc bug report at
bugs.php
Error handlers? Plus, you can set up PHP to log errors to a file in
'php.ini'...
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 9:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP error catching
What are those php functions that catch the
>[re-snip]
>I can't remember what I did 6 to 8 months ago.
>[/re-snip]
>/* commenting is your friend */
I definitely agree with you on that...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
error_reporting( E_NONE )?
Jon
Scott Fletcher wrote:
Close, but still not quite it. I can't remember what I did 6 to 8 months
ago. I do remember that it was written to temporary suppress the php error
while the other part of the php script can be allow to execute before
unsupressing the php error
[snip]
Close, but still not quite it. I can't remember what I did 6 to 8
months
ago. I do remember that it was written to temporary suppress the php
error
while the other part of the php script can be allow to execute before
unsupressing the php error. I do not meant the "@" part.. It was a
fun
* Thus wrote Scott Fletcher:
> Close, but still not quite it. I can't remember what I did 6 to 8 months
> ago. I do remember that it was written to temporary suppress the php error
> while the other part of the php script can be allow to execute before
> unsupressing the php error. I do not mean
Close, but still not quite it. I can't remember what I did 6 to 8 months
ago. I do remember that it was written to temporary suppress the php error
while the other part of the php script can be allow to execute before
unsupressing the php error. I do not meant the "@" part.. It was a
function w
On Tuesday 20 July 2004 22:48, Scott Fletcher wrote:
> What are those php functions that catch the PHP errors, not display it and
> do something to it while the user load a webpage. I don't remember what
> those are. :-(
manual > Error Handling and Logging Functions
--
Jason Wong -> Greml
* Thus wrote Scott Fletcher:
> What are those php functions that catch the PHP errors, not display it and
> do something to it while the user load a webpage. I don't remember what
> those are. :-(
It sounds like you're looking for http://php.net/set_error_handler
Curt
--
First, let me a
> What are those php functions that catch the PHP errors, not display it and
> do something to it while the user load a webpage. I don't remember what
> those are. :-(
Look around set_error_handler()
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Tim Trimble wrote:
Can anyone tell me what linux and php is asking for here, this dir. and file is at this location, and chmoded to 755.
Failed opening required './libraries/grab_globals.lib.php' (include_path='.:/php/includes:/usr/share/php')
I guess what I'm asking is, it says the path is ".:/
On Mon, 2003-10-20 at 16:34, Joseph Bannon wrote:
> Where are the PHP error logs kept?
In the PHP error log file.
Cheers,
Rob.
Ps. See your php.ini for the appropriate setting: error_log ;)
--
..
| InterJinn Application Framework - ht
* Thus wrote Merlin ([EMAIL PROTECTED]):
> > most likely a php script is using syslog() to report that
> > 'ProductInfo finished'.
>
> what is syslog and which ProductInfo? Can you be more specific?
syslog() is a phpfunction that allows php script to write to the
phplog file.
http://php.net/sysl
> most likely a php script is using syslog() to report that
> 'ProductInfo finished'.
what is syslog and which ProductInfo? Can you be more specific?
Thanx,
merlin
--
* Thus wrote Merlin ([EMAIL PROTECTED]):
> Hi there,
>
> I have some wired messages inside my php errorlog file, telling me:
>
> [30-Jul-2003 20:02:53] ProductInfo finished
>
> There is an entry every few seconds! Does anybody know what this means?
most likely a php script is using syslog() to
At 10:59 10-2-2003, you wrote:
I'm having a dispute with an ISP (surprise) about the non-functioning of
a PHP error script.
Currently, the error script is at
http://www.touristguides.org.uk/error.php - a direct click on that link
will redirect you, using:
header("Location: http://www.touristg
On Mon, 2003-02-10 at 11:22, Chris Hewitt wrote:
> Nick Holden wrote:
>
> >I'm having a dispute with an ISP (surprise) about the non-functioning of
> >a PHP error script.
> >
> >Currently, the error script is at
> >http://www.touristguides.org.uk/error.php - a direct click on that link
> >will red
Nick Holden wrote:
I'm having a dispute with an ISP (surprise) about the non-functioning of
a PHP error script.
Currently, the error script is at
http://www.touristguides.org.uk/error.php - a direct click on that link
will redirect you, using:
header("Location: http://www.touristguides.org.uk
This is just a notice, somewhere in the code is something like this
if($array['index']=='something') do_something();
but $array['index'] is undefined. Should be
if(is_array($array) && array_key_exists('index',$array) &&
$array['index']=='something') ...
(which is quite long). Another option is to
?
Thanks for suggesting an alternative.
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: Jochen Kaechelin [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 6:49 PM
To: Maxim Maletsky
Subject: RE: [PHP] PHP Error
> it says that on line 15 of settings.php there
sky
Subject: RE: [PHP] PHP Error
> it says that on line 15 of settings.php there's an output.
>
> you need to set cookies BEFORE any output.
>
that's not quiet right! you can use the
output buffering functions such as ob_start()
to avoid this problem!
--
phpArbeitsgru
sky
Subject: RE: [PHP] PHP Error
> it says that on line 15 of settings.php there's an output.
>
> you need to set cookies BEFORE any output.
>
that's not quiet right! you can use the
output buffering functions such as ob_start()
to avoid this problem!
--
phpArbeitsgru
it says that on line 15 of settings.php there's an output.
you need to set cookies BEFORE any output.
Cheers,
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: Marc Dondlinger [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 6:37 PM
To: [EMAIL PROTECTED]
Subject:
On Friday 30 March 2001 15:54, you wrote:
> > Warning: Failed opening '../dp_banner_menu_final1_support.php' for
> inclusion
> > (include_path='.:/usr/local/lib/php.ini') in
> > /home/website/test_knowledge_base/support/tech_support.php on line 10
> >
> > The comment with "(include_path='.:/usr/
Whoa Whoa! Wait a minute! There is a couple of webservers here that use
PHP. Some of them when it display the error message or warning message, it
never display the "include_path='.:/usr/local/lib/php.ini'". Some of the
other, it did display the "include_path'.:/usr/local/lib/php.ini'". So,
s
Yes, the php.ini files is read when apache start.
py
At 03:53 PM 3/29/01 -0500, you wrote:
>In a message dated 29/03/2001 21:42:57 GMT Daylight Time,
>[EMAIL PROTECTED] writes:
>
><< If you have permission to modify php.ini, see the setting "display_errors"
> and the attached comments. You can t
In a message dated 29/03/2001 21:42:57 GMT Daylight Time,
[EMAIL PROTECTED] writes:
<< If you have permission to modify php.ini, see the setting "display_errors"
and the attached comments. You can tell PHP to write these error messages to
a log file instead of to the browser.
Kirk >>
If I
If you have permission to modify php.ini, see the setting "display_errors"
and the attached comments. You can tell PHP to write these error messages to
a log file instead of to the browser.
Kirk
> -Original Message-
> From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, Marc
p are hashes
(associative). That's why they're so quick.
Happy interpolation!
Matt Friedman
- Original Message -
From: "Frank M. Kromann" <[EMAIL PROTECTED]>
To: "Michael Champagne" <[EMAIL PROTECTED]>
Cc: "PHP General Mailing List" &l
Hi All,
PHP is unable to resolve the variable you are trying to use within a stting. If you
use complex array structures you have to write it like this:
$sql = "insert into sessions(session_id, user_id, session_expiration) values
('$sess_id', " . $user_fields['USER_ID'] . "', sysdate + (" .
69 matches
Mail list logo