Re: [PHP] PHP error tracking on new server

2005-08-09 Thread Lawrence Kennon
- Original Message - From: Terry Romine [EMAIL PROTECTED] To: php-general@lists.php.net 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

[PHP] PHP error tracking on new server

2005-08-07 Thread Terry Romine
My hosting service recently switched to a newer server and in transporting the websites (many) over, they set up php different (vers 4.3.10). I know it's not nice to show errors on a published website, but I don't have a testing server, and I need to debug scripts once in a while. The

Re: [PHP] PHP error tracking on new server

2005-08-07 Thread Marco Tabini
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 the error

[PHP] Error Suppression with '@'

2005-08-02 Thread Justin Burger
Good Morning, I was having a discussion with a fellow PHP Developer this morning and he mentioned that he put's an '@' sign in front of all function calls, and every time he accesses an array; I know that this is sloppy, and dangerous, but I don't know exactly what this exposes him to, can any

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Torgny Bjers
Hello Justin, I would guess that this is mostly performance and memory related. When, for instance, trying to iterate an array, or a directory with files, using @ on all function calls, it will attempt to go through the array, attempting to allocate memory for each item, but when finding it

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Rory Browne
On 8/2/05, Justin Burger [EMAIL PROTECTED] wrote: Good Morning, I was having a discussion with a fellow PHP Developer this morning and he mentioned that he put's an '@' sign in front of all function calls, and every time he accesses an array; Any chance of revealing his identity - so that I

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Matt Darby
Justin Burger wrote: Good Morning, I was having a discussion with a fellow PHP Developer this morning and he mentioned that he put's an '@' sign in front of all function calls, and every time he accesses an array; I know that this is sloppy, and dangerous, but I don't know exactly what this

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread John Nichel
Justin Burger wrote: Good Morning, I was having a discussion with a fellow PHP Developer this morning and he mentioned that he put's an '@' sign in front of all function calls, and every time he accesses an array; I know that this is sloppy, and dangerous, but I don't know exactly what this

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread John Nichel
Justin Burger wrote: Does suppressing the error only suppress it from the screen, or does it ignore the error? ie: is the error still logged? Please reply to the list. I don't know if it still logs the error (assuming you have error logging turned on). -- John C. Nichel ÜberGeek

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Justin Burger
Does suppressing the error only suppress it from the screen, or does it ignore the error? ie: is the error still logged? On Aug 2, 2005, at 12:18 PM, John Nichel wrote: Justin Burger wrote: Good Morning, I was having a discussion with a fellow PHP Developer this morning and he

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Kristen G. Thorson
Example: I was working on a HORRIBLE piece of code for a cart app. The original programmer had a line like this: $result = mysql_query( SELECT * FROM user_logins WHERE cookie='.$cookie.' ); Where $cookie is a session id stored in a cookie (what else? ;). The problem was, he had some

Re[2]: [PHP] Error Suppression with '@'

2005-08-02 Thread Richard Davey
Hello Justin, Tuesday, August 2, 2005, 8:43:09 PM, you wrote: JB Does suppressing the error only suppress it from the screen, or JB does it ignore the error? JB ie: is the error still logged? It will ignore it totally, it doesn't even make it as far as the log files - which is why in most cases

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Jochem Maas
Justin Burger wrote: Good Morning, I was having a discussion with a fellow PHP Developer this morning and he mentioned that he put's an '@' sign in front of all function calls, and every time he accesses an array; I know that this is sloppy, and dangerous, but I don't know exactly what this

Re: [PHP] error checking woes

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

Re: [PHP] error checking woes

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

Re: [PHP] error checking woes- SOLVED

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

[PHP] error checking a null array

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

[PHP] error checking woes

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

Re: [PHP] error checking woes

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

[PHP] PHP error on form

2005-07-28 Thread Bruce Gilbert
Hello, I am trying to get a form to work integrating html with PHP. the code I have is: ? $form_block = FORM METHOD=\POST\ ACTION=\$PHP_SELF\ pstrongYour Name:/strong /br INPUT type=\text\ NAME=\senders_name\ SIZE=30/p pstrongpYour E-mail Address:/strong /br INPUT type=\text\

RE: [PHP] PHP error on form

2005-07-28 Thread Jay Blanchard
[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

RE: [PHP] PHP error on form

2005-07-28 Thread Jay Blanchard
[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

RE: [PHP] PHP error on form

2005-07-28 Thread Mike Johnson
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 = FORM METHOD=\POST\ ACTION=\$PHP_SELF\ pstrongYour Name:/strong /br INPUT type=\text\ NAME=\senders_name\ SIZE=30/p pstrongpYour

Re: [PHP] PHP error on form

2005-07-28 Thread -k.
--- 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 Same

[PHP] Re: PHP error on form

2005-07-28 Thread Sonia
Hi First some of your $_POST array variables are written like $POST['var'], you need to change them to $_POST['var']. Then because you are not using the dot operator in your string variables and you are using a associative array you must enclose the array variable in {$arr['var']} tags! //

[PHP] Re: PHP error on form

2005-07-28 Thread Bruce Gilbert
I made the suggestions mentioned by Mike and don't get any error, but the form doesn't work properly. Check it out at http://www.inspired-evolution.com/Contact_Form_test.php the PHP form CODE I now have is: ? $form_block = FORM METHOD=\POST\ ACTION=\$PHP_SELF\ pstrongYour Name:/strong/p INPUT

RE: [PHP] Re: PHP error on form

2005-07-28 Thread Jay Blanchard
[snip] I made the suggestions mentioned by Mike and don't get any error, but the form doesn't work properly. Check it out at http://www.inspired-evolution.com/Contact_Form_test.php [/snip] You never sent the first 60 lines of code or so, and your origianl post doesn't have 58 lines in it. Please

[PHP] Error default 16 with PHP 5.1b3

2005-07-26 Thread Jeff Norton
I upgraded from PHP 5.0.4 to 5.1b3 yesterday and all my scripts die the only trace being a lone line: default 16 written to the command window. There are a few Notice's that preceed that look like: Notice: Only variable references should be returned by reference in

[PHP] error when trying to delete a record

2005-07-11 Thread Ross
I dunno if my text book is out of date or I have made a syntax error but I am trying to delete a record with $query= DELETE FROM sheet1 WHERE id=$id; $result= mysql_query($query); if($result){ echo it was deleted; } else echo mysql_error(); } and I get the followign sql error

RE: [PHP] error when trying to delete a record

2005-07-11 Thread Jay Blanchard
[snip] $query= DELETE FROM sheet1 WHERE id=$id; You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [/snip] try... $query= DELETE FROM sheet1 WHERE id = '.$id.' ; Note the single quotes around

Re: [PHP] error when trying to delete a record

2005-07-11 Thread John Nichel
Ross wrote: I dunno if my text book is out of date or I have made a syntax error but I am trying to delete a record with $query= DELETE FROM sheet1 WHERE id=$id; $result= mysql_query($query); if($result){ echo it was deleted; } else echo mysql_error(); } and I get the followign

Re: [PHP] error when trying to delete a record

2005-07-11 Thread Mark Rees
Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] $query= DELETE FROM sheet1 WHERE id=$id; You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [/snip] try... $query=

Re: [PHP] error when trying to delete a record

2005-07-11 Thread Paul Waring
On Mon, Jul 11, 2005 at 03:25:33PM +0100, Mark Rees wrote: with no single quotes round it. Putting quotes round integer values is counter-intuitive - is it necessary in some cases? If the field is a numeric type (e.g. INT) as opposed to numeric data being stored in a character field (e.g. a

RE: [PHP] error when trying to delete a record

2005-07-11 Thread Mike Johnson
From: Paul Waring [mailto:[EMAIL PROTECTED] On Mon, Jul 11, 2005 at 03:25:33PM +0100, Mark Rees wrote: with no single quotes round it. Putting quotes round integer values is counter-intuitive - is it necessary in some cases? If the field is a numeric type (e.g. INT) as opposed to

RE: [PHP] error when trying to delete a record

2005-07-11 Thread Jay Blanchard
[snip] Is the above statement true when the id field is numeric (which it surely is in this case)? I get the expected results (in mySQL) when using statements like SELECT name FROM table WHERE id=1 with no single quotes round it. Putting quotes round integer values is counter-intuitive - is it

[PHP] Error

2005-07-05 Thread Returned mail
Dear user php-general@lists.php.net, We have detected that your email account was used to send a huge amount of unsolicited commercial e-mail during the recent week. Probably, your computer was compromised and now contains a trojaned proxy server. Please follow our instruction in the

[PHP] Error

2005-06-14 Thread Mail Delivery Subsystem
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Error

2005-06-09 Thread Post Office
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Error checking

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

Re: [PHP] Error checking

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

Re: [PHP] Error checking

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

Re: [PHP] Error checking

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

Re: [PHP] Error checking

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

Re: [PHP] Error checking

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

Re: [PHP] Error checking - Fixed

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

Re: [PHP] Error checking

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

[PHP] error display problem

2005-05-13 Thread hima
Hi all, can any one plesae help me as I am a learner. I am working on a Mac OS x machine and I want to see the errors displayed to the browser. I had changed display_errors option On in the php.ini file but still cannot see them displayed. Any pointers as how to display errors to browser while

Re: [PHP] error display problem

2005-05-13 Thread Richard Lynch
On Fri, May 13, 2005 6:49 pm, hima said: can any one plesae help me as I am a learner. I am working on a Mac OS x machine and I want to see the errors displayed to the browser. I had changed display_errors option On in the php.ini file but still cannot see them displayed. Did you re-start

Re: [PHP] error display problem

2005-05-13 Thread Jason Wong
On Saturday 14 May 2005 09:49, hima wrote: can any one plesae help me as I am a learner. I am working on a Mac OS x machine and I want to see the errors displayed to the browser. I had changed display_errors option On in the php.ini file but still cannot see them displayed. Did you restart

[PHP] Error suppression operator (@)

2005-05-04 Thread GamblerZG
I would like to know, whether using @ is a good practice. For example, I have an array of unknown length $array. Is it all right write something like this: @list($first, $second) = $array; or is it better to do length check? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Error suppression operator (@)

2005-05-04 Thread Greg Donald
On 5/3/05, GamblerZG [EMAIL PROTECTED] wrote: I would like to know, whether using @ is a good practice. I try not to use it much, but when I do I back it up with checking to see if an error really occured. I use it for file handles, database handles, stuff that I really expect to break

Re: [PHP] Error suppression operator (@)

2005-05-04 Thread Jochem Maas
Greg Donald wrote: On 5/3/05, GamblerZG [EMAIL PROTECTED] wrote: I would like to know, whether using @ is a good practice. I try not to use it much, but when I do I back it up with checking to see if an error really occured. I use it for file handles, database handles, stuff that I really expect

Re: [PHP] Error suppression operator (@)

2005-05-04 Thread Colin Ross
Pretty much the only time i use it is form processing... so i don't get a bunch of errors when someone doesn't fill out a (non-required) field.. Also i use it to prefill form data is i have a session running, ie. input name=fname type=text value?php echo @$_SESSION['APP']['fname']; ? / like

Re: [PHP] Error en PHP

2005-04-26 Thread Jason Barnett
Pedro Luis Cruz Riguetti wrote: como puedo salir de sta lista q esta llenando mi correo. http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Error en PHP

2005-04-25 Thread Patricio Reyes
Tengo instalado WIN98SE PWS PHP 4.3.11 y cuando ejecuto el archivo *.php me sale el siguiente error: PHP Warning: Unknown(): Invalid library (maybe not a PHP library) 'msql.dll' acepto y me sale lo siquiente: PHP Warning: Unknown(): Unable to load dynamic library 'C:\PHP\php_domxml.dll' -

Re: [PHP] Error en PHP

2005-04-25 Thread Pedro Luis Cruz Riguetti
como puedo salir de sta lista q esta llenando mi correo. -- --- Banco de Crédito BCP - Dedicados a hacerte la Banca más simple. Visita nuestra Banca por Internet http://www.viabcp.com

Re: [PHP] Error en PHP

2005-04-25 Thread Richard Lynch
On Tue, April 19, 2005 4:54 pm, Patricio Reyes said: Tengo instalado WIN98SE PWS PHP 4.3.11 y cuando ejecuto el archivo *.php me sale el siguiente error: No habla Espanol. PHP Warning: Unknown(): Invalid library (maybe not a PHP library) 'msql.dll' PHP 4.1 - msql.dll != PHP 4.0 -

[PHP] Error Handler

2005-04-22 Thread Pinoy Ako
I use the example given at http://ph.php.net/manual/en/ref.errorfunc.php However, when I tried to call an undefined function, I get the normal Fatal Error message instead of the custom message I entered in the error handler function. My System Settings: Apache 2.0.53 PHP

Re: [PHP] Error Handler

2005-04-22 Thread Richard Lynch
On Fri, April 22, 2005 3:10 pm, Pinoy Ako said: I use the example given at http://ph.php.net/manual/en/ref.errorfunc.php However, when I tried to call an undefined function, I get the normal Fatal Error message instead of the custom message I entered in the error handler function. As the

Re: [PHP] error handling

2005-04-13 Thread Petar Nedyalkov
On Wednesday 13 April 2005 08:46, Cima wrote: hi, im working with php 4 and postgresql 8 and i would like to know how to handle certain errors generated. in postgresql, i've written a stored function that selects a record from a table and in case no record is found i 'raise an exception'.

RE: [PHP] error handling

2005-04-13 Thread Stephen March
: $error_Message; } set_error_handler(errorHandler); call_some_pgsql_function(); -Original Message- From: Cima [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 11:46 PM To: php Subject: [PHP] error handling hi, im working with php 4 and postgresql 8 and i would like

Re: [PHP] collect2: ld returned 1 exit status, make: *** [sapi/cli/php] Error 1

2005-04-13 Thread Marek Kilimajer
exit status make: *** [sapi/cli/php] Error 1 Let me know if you need me to post more info from the make. Cheers. php=5.0.3 apache=2.0.53 (apache installed fine) Mark Sargent. Hi All, php-5.0.4 installed without a hitch..oh well, can't really complain about that, now can I..? cheers. Great, but next

[PHP] collect2: ld returned 1 exit status, make: *** [sapi/cli/php] Error 1

2005-04-12 Thread Mark Sargent
Hi All, keep getting this error with make on Fedora 3, home machine. Successfully installed on work FC3 machine earlier today. I did make twice, to no avail, and then redid the configure then another make, with the same results. collect2: ld returned 1 exit status make: *** [sapi/cli/php

Re: [PHP] collect2: ld returned 1 exit status, make: *** [sapi/cli/php] Error 1

2005-04-12 Thread Mark Sargent
: *** [sapi/cli/php] Error 1 Let me know if you need me to post more info from the make. Cheers. php=5.0.3 apache=2.0.53 (apache installed fine) Mark Sargent. Hi All, php-5.0.4 installed without a hitch..oh well, can't really complain about that, now can I..? cheers. Mark Sargent. -- PHP General Mailing

[PHP] error handling

2005-04-12 Thread Cima
hi, im working with php 4 and postgresql 8 and i would like to know how to handle certain errors generated. in postgresql, i've written a stored function that selects a record from a table and in case no record is found i 'raise an exception'. fine, now in my php script i call that the stored

[PHP] Error Generated but no error?

2005-03-30 Thread Geoff Martin
I have a page that receives data from a form. Using $_POST['foo'], I am able to use this data in the page but I continually receive an error notice (PHP Notice: Undefined index: foo in /Library/WebServer/Documents/.. etc). This happens to all three indices that are passed by this form, yet

Re: [PHP] Error Generated but no error?

2005-03-30 Thread Burhan Khalid
Geoff Martin wrote: I have a page that receives data from a form. Using $_POST['foo'], I am able to use this data in the page but I continually receive an error notice (PHP Notice: Undefined index: foo in /Library/WebServer/Documents/.. etc). This happens to all three indices that are

[PHP] error from 4.3.10: The specified procedure could not be found.

2005-03-06 Thread Javier Muniz
Forgive me if this has been answered before, but all I was able to find was a bogus bug report on this issue that did not contain any useful information. When installing php 4.3.10 on a Win2k3 machine I'm getting the The specified procedure could not be found. Error from any php page I attempt to

Re: [PHP] error from 4.3.10: The specified procedure could not be found.

2005-03-06 Thread Tom Rogers
Hi, Monday, March 7, 2005, 4:55:01 AM, you wrote: JM Forgive me if this has been answered before, but all I was able to find JM was a bogus bug report on this issue that did not contain any useful JM information. When installing php 4.3.10 on a Win2k3 machine I'm getting JM the The specified

[PHP] php error

2005-02-16 Thread Stefan
Hi I've a strange problem When I try to send a form with method=POST to a php-file I always get an HTTP 404 error. I really don't know why, because the file exists on the server. I use IIS 5.1 Tnx. Stefan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: php error

2005-02-16 Thread Matthew Weier O'Phinney
* Stefan [EMAIL PROTECTED]: I've a strange problem When I try to send a form with method=POST to a php-file I always get an HTTP 404 error. I really don't know why, because the file exists on the server. What are you setting the action attribute to? Should be the path to your script. If the

Re: [PHP] error log

2005-01-28 Thread Jochem Maas
Richard Lynch wrote: Benson wrote: could anyone please help me on how to display all the errors to the browser, but not to file? I have tried modifying php.ini and httpd.conf (apache), but I am not sure how to modify... You would be MUCH MUCH MUCH better off to train yourself to use 'tail -f

[PHP] error log

2005-01-27 Thread Benson
could anyone please help me on how to display all the errors to the browser, but not to file? I have tried modifying php.ini and httpd.conf (apache), but I am not sure how to modify... thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] error log

2005-01-27 Thread Richard Lynch
Benson wrote: could anyone please help me on how to display all the errors to the browser, but not to file? I have tried modifying php.ini and httpd.conf (apache), but I am not sure how to modify... You would be MUCH MUCH MUCH better off to train yourself to use 'tail -f

Re: [PHP] Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-12 Thread James Lobley
Well Richard, I could able to solve it by copying all dlls into Windows\System32 directory. But still not sure why I need to copy all dlls into system32 directory though I have mentioned in php.ini file that extension_directory=c:\PHP4\extensions. regards, Ranjan Hi Ranjan, You might

Re: [PHP] Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-12 Thread Richard Lynch
Well Richard, I could able to solve it by copying all dlls into Windows\System32 directory. But still not sure why I need to copy all dlls into system32 directory though I have mentioned in php.ini file that extension_directory=c:\PHP4\extensions. What does ?php phpinfo();? say about your

Re: [PHP] Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-11 Thread Richard Lynch
Ranjan K. Baisak wrote: I am using PHP4.3.10 in WindowsXP. When I am trying to use extension dlls e.g. php_xmlrpc.dll and when trying to restart Apache2 Web Server, I am getting error message as UnKnows():Unable to load dynamic library './php_xmlrpc.dll.dll' - The specified module could not

Re: [PHP] Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-11 Thread Ranjan K. Baisak
--- Richard Lynch [EMAIL PROTECTED] wrote: Some questions for you: Does it REALLY have an extra .dll on the end in the message? Perhaps somebody goofed up somewhere, but rip of the '.dll' in your php.ini and see what happens... Did the php_xmlrpc.dll you have COME WITH the EXACT

[PHP] Error in foreach?

2005-01-10 Thread Brad Brening
Hello all; I have encountered a very strange error on one of our customers sites. Their script returns the following error: Warning:Invalid argument supplied for foreach This is in response to the following line: foreach ($_GET as $key = $value) All I am trying to do is parse the querystring!

Re: [PHP] Error in foreach?

2005-01-10 Thread tg-php
Sounds like $_GET isn't populated or has been over-written. Try doing the classic print_r on $_GET to see what it contains before you do the foreach. If you are using a form (rather than an a_href link) to pass the GET data and you're using all checkboxes or something else that returns nothing

RE: [PHP] Error in foreach?

2005-01-10 Thread Jay Blanchard
[snip] I have encountered a very strange error on one of our customers sites. Their script returns the following error: Warning:Invalid argument supplied for foreach This is in response to the following line: foreach ($_GET as $key = $value) All I am trying to do is parse the querystring! Any

Re: [PHP] Error in foreach?

2005-01-10 Thread Matt M.
This is in response to the following line: foreach ($_GET as $key = $value) is $_GET an array? when in doubt, print it out try: print_r($_GET) or even check is_array($_GET) might be an earlier version of php http://us2.php.net/manual/en/reserved.variables.php#reserved.variables.get --

[PHP] Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-10 Thread Ranjan K. Baisak
I am using PHP4.3.10 in WindowsXP. When I am trying to use extension dlls e.g. php_xmlrpc.dll and when trying to restart Apache2 Web Server, I am getting error message as UnKnows():Unable to load dynamic library './php_xmlrpc.dll.dll' - The specified module could not be found. The DLL file

[PHP] Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-10 Thread Ranjan K. Baisak
I am using PHP4.3.10 in WindowsXP. When I am trying to use extension dlls e.g. php_xmlrpc.dll and when trying to restart Apache2 Web Server, I am getting error message as UnKnows():Unable to load dynamic library './php_xmlrpc.dll.dll' - The specified module could not be found. The DLL file

Re: [PHP] Php error with MySql

2005-01-07 Thread Stan F
- Original Message - From: Wil [EMAIL PROTECTED] To: php-general@lists.php.net 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

Re: [PHP] Php error with MySql

2005-01-07 Thread Wil Hitchman
Apologies...just have had loose fingers - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Wil [EMAIL PROTECTED]; php-general@lists.php.net Sent: Thursday, January 06, 2005 3:31 PM Subject: RE: [PHP] Php error with MySql [snip] ...stuff... Wil [/snip] I replied to this over

[PHP] Php error with MySql

2005-01-06 Thread Wil Hitchman
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); $nRows =

[PHP] Php error with MySql

2005-01-06 Thread Wil
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); $nRows =

[PHP] Php error with MySql

2005-01-06 Thread Wil
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); $nRows =

RE: [PHP] Php error with MySql

2005-01-06 Thread Jay Blanchard
[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);

Re: [PHP] Php error with MySql

2005-01-06 Thread John Holmes
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_query (SELECT *

Re: [PHP] Php error with MySql

2005-01-06 Thread John Nichel
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 id

RE: [PHP] Php error with MySql

2005-01-06 Thread Jay Blanchard
[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

Re: [PHP] Php error with MySql

2005-01-06 Thread Brian Tully
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 not

Re: [PHP] Php error with MySql

2005-01-06 Thread Richard Lynch
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

Re: [PHP] Php error with MySql

2005-01-06 Thread Janet Valade
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);

[PHP] compiling PHP error, please help (configure: error: libjpeg.(a|so) not found.)

2005-01-02 Thread Aaron Paulley
The error I'm getting when running ./configure is this: configure: error: libjpeg.(a|so) not found. I know libjpeg is installed, I just installed it. Here is my ./configure: ./configure --with-mysql --with-apxs=/www/bin/apxs --with-xml --enable-ftp --with-gd --enable-magic-quotes

Re: [PHP] compiling PHP error, please help (configure: error: libjpeg.(a|so) not found.)

2005-01-02 Thread Rasmus Lerdorf
Aaron Paulley wrote: The error I'm getting when running ./configure is this: configure: error: libjpeg.(a|so) not found. I know libjpeg is installed, I just installed it. Here is my ./configure: ./configure --with-mysql --with-apxs=/www/bin/apxs --with-xml --enable-ftp --with-gd

Re: [PHP] compiling PHP error, please help (configure: error: libjpeg.(a|so) not found.)

2005-01-02 Thread Jason Wong
On Monday 03 January 2005 08:18, Aaron Paulley wrote: The error I'm getting when running ./configure is this: configure: error: libjpeg.(a|so) not found. I know libjpeg is installed, I just installed it. Here is my ./configure: Assuming that you have installed it in a fairly standard

Re: [PHP] Error with system() when running convert

2004-12-21 Thread Richard Lynch
with anything else. Has anyone run across error 127 from system, or have any idea what's going on? For future reference, find a convenient way to look up 127 error code number in your OS. man errno is sort of okay in most Un*xes, except then you have to count 127 lines down to get the right

<    1   2   3   4   5   6   7   8   9   10   >