[PHP] error reporting

2003-10-16 Thread Richard Baskett
If I use: ini_set("error_reporting", 0); ini_set("display_errors", 0); It still shows the errors.. if I use the error_reporting function.. it still shows the errors, no matter what I do.. it still shows the errors! What am I missing? I have it set in the php,ini to show errors, but I want to be

[PHP] Re: Server Slow After PHP Error

2003-10-14 Thread Weston
Any ideas on how to correct the problem with reinstalling server software? Thanx -Weston "Weston" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Whenever I access a PHP script from the web that contains an error (such as > a parsing error, etc...) The server will not respond to any

Re: [PHP] Server Slow After PHP Error

2003-10-14 Thread Timothy Hitchens
I would suggest that your Apache process has not finished with PHP processing eg. loop etc etc Remember that HTTP/1.0 allows (4) four connections and HTTP/1.1 allows (2) two connections so if you have a long process eg a HTTP/1.1 stream coming from the server or the server believes that the connec

[PHP] Server Slow After PHP Error

2003-10-14 Thread Weston
Whenever I access a PHP script from the web that contains an error (such as a parsing error, etc...) The server will not respond to any request (php or not) for about 2-3 minutes. This only happens over the web though, if i try to run a php file using command line, the error loads immedaitely. Any

Re: [PHP] Error in BTML parser 2

2003-10-13 Thread Bas
Yes! It works!!! This is also an good beginner-HTML. If you have improvements then i like it from you to post them in an reply or email me. Regards, Bas "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Bas ([EMAIL PROTECTED]): > > This error is not so stup

Re: [PHP] Error in BTML parser 2

2003-10-13 Thread Curt Zirzow
* Thus wrote Bas ([EMAIL PROTECTED]): > This error is not so stupid as a deleted closing ". > > Okay, for all of you who missed my code here is it again: > > read-tags.php > --- > // Tag Parser v1.1 > // v1.0 First release(not working) > // v1.1 Edited: > // Uses Regular Expressions > funct

[PHP] Error in BTML parser 2

2003-10-13 Thread Bas
This error is not so stupid as a deleted closing ". Okay, for all of you who missed my code here is it again: read-tags.php --- \s*([^<]*)\s*!is"; preg_match_all($tag_match, $filedata, $matches); for ($i=0; $i< count($matches[0]); $i++) { $tagname = $matches[1][$i]; $tags[$tagname] =

Re: [PHP] Error in creating BTML(BT Markup Language)

2003-10-13 Thread Bas
Now I get the output: (in html, if you get a mail, you get the real output.) Welcome! Welcome! Notice: Undefined index: text in C:\pub\include\btml.php on line 13 "Pavel Jartsev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bas wrote: > > > > ... > > > > echo "; > > > > Se

Re: [PHP] Error in creating BTML(BT Markup Language)

2003-10-13 Thread Pavel Jartsev
Bas wrote: > ... > echo "; > Seems that U don't have closing double-quote (") in line above. It should be: echo ""; -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Error in creating BTML(BT Markup Language)

2003-10-13 Thread Bas
I am trying to make an BTML-parser. (BTML-Some Markup Language invented by Me) I have 3 files: read-tags.php: --- \s*([^<]*)\s*!is"; preg_match_all($tag_match, $filedata, $matches); for ($i=0; $i< count($matches[0]); $i++) { $tagname = $matches[1][$i]; $tags[$tagname] = $matches[2][$

Re: [PHP] Error catching script

2003-10-08 Thread Curt Zirzow
* Thus wrote James Johnson ([EMAIL PROTECTED]): > Hello, > > Is there a way, on a hosted server, to prevent PHP errors from showing in a > browser? Instead of "error whatever at line 107 in filename.php" to have it > redirect to a "Sorry, please report this error page" See: set_error_handler();

Re: [PHP] Error catching script

2003-10-08 Thread Chris Shiflett
--- James Johnson <[EMAIL PROTECTED]> wrote: > Is there a way, on a hosted server, to prevent PHP errors from > showing in a browser? I am assuming you are asking how to change php.ini directives, since you probably don't have access. On most shared hosts, they are configured to use a .htaccess f

[PHP] Error catching script

2003-10-08 Thread James Johnson
Hello, Is there a way, on a hosted server, to prevent PHP errors from showing in a browser? Instead of "error whatever at line 107 in filename.php" to have it redirect to a "Sorry, please report this error page" Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] error cannot instantiate non-existent class

2003-09-12 Thread CPT John W. Holmes
From: "Golawala, Moiz M (IndSys, GE Interlogix)" <[EMAIL PROTECTED]> > I am newbie with php and I am trying to instantiate a > class. Welcome to PHP. > this->$config = $config; $this->config = $config; > Parse error: parse error, unexpected T_OBJECT_OPERATOR > in C:\Program Files\Apache Group\

[PHP] error cannot instantiate non-existent class

2003-09-12 Thread Golawala, Moiz M (IndSys, GE Interlogix)
I am newbie with php and I am trying to instantiate a class. I am using the command line to test my stuff out before I try it with a browser. The following is my class code: (name of file is AddConfigs.inc) $config = $config; echo " in constructor $config "; echo "

[PHP] error socket_recvfrom

2003-09-11 Thread Anang Syarifudin
Hi guyz, I've just tried a simple script using socket_recvfrom for a simple udp daemon. due a excessive traffic I got error : Warning: socket_recvfrom() unable to recvfrom [11]: Resource temporarily unavailable in udp.php on line 94 udp packet size is fixed 1464 byte. Is there spesific issue

Re: [PHP] Error when using built in functions

2003-09-06 Thread Raditha Dissanayake
what's the error message? Ben C. wrote: I am having problems using the following functions; trim(), ucwords(), and others. Do I have a setting wrong? Ben -- http://www.radinks.com/upload Drag and Drop File Uploader. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

[PHP] Error when using built in functions

2003-09-06 Thread Ben C.
I am having problems using the following functions; trim(), ucwords(), and others. Do I have a setting wrong? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Error Log

2003-08-31 Thread Seth Willits
This may be obvious, but I even looked in a few books and didn't see it, but where are PHP errors logged? No errors ever appear on the page yet the online documentation refers to error messages and such, so I'm assuming there must be some log somewhere. Thanks, Seth Willits

[PHP] error when using $this

2003-08-21 Thread Jonathan Villa
First of all, let me say that I am using PHP 5, but not including any new php5 features, just installed it. Anyway, this is the offending code.. $retVal = true; $this->setDBConn(mysql_connect('localhost',$this->_dbuser,$this->_dbpwd)); if ($this->getDBConn() == false) $retVal = false;

Re: [PHP] error in apache log

2003-08-20 Thread Marek Kilimajer
grep -r application-x-httpd-php /etc/httpd/conf/ now you now the filename, change application-x-httpd-php to application/x-httpd-php and restart apache Peter Berglund wrote: How to fix, where's the problem? "Marek Kilimajer" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] Should b

Re: [PHP] error in apache log

2003-08-20 Thread Peter Berglund
How to fix, where's the problem? "Marek Kilimajer" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Should be application/x-httpd-php. I bet you have this mistake in your > apache config files. > > Peter Berglund wrote: > > > I got alot of this error in my apache log, how do I fix i

Re: [PHP] error in apache log

2003-08-20 Thread Marek Kilimajer
Should be application/x-httpd-php. I bet you have this mistake in your apache config files. Peter Berglund wrote: I got alot of this error in my apache log, how do I fix it? [warn] Cannot get media type from 'application-x-httpd-php' -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] error in apache log

2003-08-20 Thread Peter Berglund
I got alot of this error in my apache log, how do I fix it? [warn] Cannot get media type from 'application-x-httpd-php' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] error problem

2003-08-14 Thread Kris Reid
When I have an error in my code nothing gets written to the screen. If I have It will works normal. but if I have Nothing gets written to the browser. Not even the error message. When I run php on the command line I get error messages just not when running through a browser. Where should I

[PHP] error: cannot redeclare ()

2003-08-14 Thread Martin Towell
I'm getting the following error: PHP Fatal error: Cannot redeclare () (previously declared in /path/to/file/functions.inc:19) in /path/to/file/functions.inc on line 0 Anyone have any ideas how a no-name function could be generated? Line 19 contains: function idb_exec_deadlock($sql,$count

RE: [PHP] error: cannot redeclare ()

2003-08-14 Thread Joe Harman
D] > Subject: [PHP] error: cannot redeclare () > > > I'm getting the following error: > > PHP Fatal error: Cannot redeclare () (previously declared in > /path/to/file/functions.inc:19) in > /path/to/file/functions.inc on line 0 > > Anyone have any ideas how

Re: [PHP] error problem

2003-08-14 Thread Kris Reid
Sorry the second "echo "Hello world";" was meant to have no semi colon - Original Message - From: "Kris Reid" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Thursday, August 14, 2003 12:37 PM Subject: [PHP] error problem

Re: [PHP] error problem

2003-08-14 Thread Randy L Johnson Jr
there is something in the php.ini file that turns the display errors in browser on and off...   Randy    ---Original Message---   From: Kris Reid Date: Wednesday, August 13, 2003 10:36:59 PM To: PHP List Subject: Re: [PHP] error problem   Sorry the second "echo "Hello wo

Re: [PHP] error problem

2003-08-14 Thread Larry E . Ullman
Sorry the second "echo "Hello world";" was meant to have no semi colon Just so you know, PHP allows the last command in a section to not have a semi-colon. Therefore the code would not cause an error message. If you're trying to purposefully cause an error, you'll need to change your trigger.

Re: [PHP] error: cannot redeclare ()

2003-08-07 Thread CPT John W. Holmes
From: "Martin Towell" <[EMAIL PROTECTED]> > I'm getting the following error: > > PHP Fatal error: Cannot redeclare () (previously declared in > /path/to/file/functions.inc:19) in /path/to/file/functions.inc on line 0 > > Anyone have any ideas how a no-name function could be generated? > Line 19 co

RE: [PHP] error: cannot redeclare ()

2003-08-07 Thread Martin Towell
thnx - I'll see if this help.. -Original Message- From: Joe Harman [mailto:[EMAIL PROTECTED] Sent: Thursday, 7 August 2003 4:38 PM To: 'Martin Towell'; [EMAIL PROTECTED] Subject: RE: [PHP] error: cannot redeclare () Hi Martin... I am guessing you have a nested functio

Re: [PHP] [secure PHP] Error handling (again)

2003-08-03 Thread Curt Zirzow
* Thus wrote thierry lhomme ([EMAIL PROTECTED]): > Hi ! > > I still have found no satisfying solution to my problem yet... > > At home, when an error occurs in an script I got something like this : > > Warning: unlink() failed (No such file or directory) in c:\program > files\easyphp\www\php_scr

[PHP] [secure PHP] Error handling (again)

2003-08-03 Thread thierry lhomme
Hi ! I still have found no satisfying solution to my problem yet... At home, when an error occurs in an script I got something like this : Warning: unlink() failed (No such file or directory) in c:\program files\easyphp\www\php_scripts\index.php on line 356 but my provider in the same case deli

RE: [PHP] weird php error

2003-08-01 Thread Matt Giddings
: 'Jim Lucas'; 'David Nicholson' > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] weird php error > > Haven't found anything yet. The login.php file is the one I'm trying to > view when I get that error. I have a second file "info.php" that works >

RE: [PHP] weird php error

2003-08-01 Thread Matt Giddings
my login script. Matt > -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2003 8:02 PM > To: Matt Giddings; 'David Nicholson' > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] weird php error > > yes it could be in the

Re: [PHP] weird php error

2003-08-01 Thread Jim Lucas
]> Cc: <[EMAIL PROTECTED]> Sent: Friday, August 01, 2003 4:33 PM Subject: RE: [PHP] weird php error David, This is what my php.ini file looks like and I don't seem to have any .htaccess files. Could it be something in the httpd.conf file that’s pointing to an invalid file/director

RE: [PHP] weird php error

2003-08-01 Thread Matt Giddings
Matt > -Original Message- > From: David Nicholson [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2003 7:13 PM > To: Matt Giddings > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] weird php error > > Hello, > > This is a reply to an e-mail that you wrote o

Re: [PHP] weird php error

2003-08-01 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Sat, 2 Aug 2003 at 00:10, lines prefixed by '>' were originally written by you. > Hello, > I'm getting a weird warning message from a php script that I'm > working > on. Right now the script does not contain any include or require > statemen

[PHP] weird php error

2003-08-01 Thread Matt Giddings
Hello, I'm getting a weird warning message from a php script that I'm working on. Right now the script does not contain any include or require statements and is basically a very simple straight forward script. But when I try to execute via the browser I get the following error: Warning: Faile

Re: [PHP] php error log : productinfo finished message

2003-07-30 Thread Curt Zirzow
* 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

Re: [PHP] php error log : productinfo finished message

2003-07-30 Thread Merlin
> 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 --