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

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

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 file

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

[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) ?php class AddConfigs{ var $config; function

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

[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 : bWarning/b: socket_recvfrom() unable to recvfrom [11]: Resource temporarily unavailable in budp.php/b on line b94/bbr / udp packet size is fixed 1464 byte. Is there

Re: [PHP] Error when using built in functions

2003-09-07 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:

[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; and

[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

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

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

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 be

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 ? echo Hello world ? would not cause an error message. If you're trying to purposefully cause an error, you'll need to

Re: [PHP] error problem

2003-08-14 Thread Randy L Johnson Jr
there is something in the php.ini file that turnsthe 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 world&qu

RE: [PHP] error: cannot redeclare ()

2003-08-14 Thread Joe Harman
: [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 a no-name function could be generated? Line 19 contains

[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

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 When I have an error in my code nothing gets written

[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 ? echo Hello world; ? It will works normal. but if I have ? echo Hello world; ? 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

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 function that is being

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

[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

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

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

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 statements

RE: [PHP] weird php error

2003-08-01 Thread Matt Giddings
-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 on Sat, 2 Aug 2003 at 00:10, lines prefixed

Re: [PHP] weird php error

2003-08-01 Thread Jim Lucas
, 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 thats pointing to an invalid file/directory? ; Automatically add files before or after any PHP document

RE: [PHP] weird php error

2003-08-01 Thread Matt Giddings
-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 httpd.conf file. look in your VirtualHost block and see if something

RE: [PHP] weird php error

2003-08-01 Thread Matt Giddings
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 fine, but all it contains is ?php phpinfo(); ?. So I know apache/php is working, I

[PHP] php error log : productinfo finished message

2003-07-30 Thread Merlin
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? Thanx, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

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

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 -- lt;IFRAME SRC=http://saratoga.globosapiens/associates/report_member.php?u=3color=EEE EEE scrolling=no frameborder=0 TITLE=My

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

[PHP] Error - when trying to connect to postgresql

2003-07-20 Thread Paul Tun
When I try to connect to postresql with my php script below I got hhis eror: I can insert into the table from psql. Please help Thanks, --- Warning: pg_exec() query failed: ERROR:

Re: [PHP] error on array loop through foreach?

2003-07-08 Thread Lars Torben Wilson
On Mon, 2003-07-07 at 21:31, Micah Montoy wrote: It did help and I altered the script a bit. It now reads as: [snip] Now I am receiving the error message of: Warning: Invalid argument supplied for foreach() in c:\inetpub\wwwroot\webpage10\example\u_images\act_load_imgs.php on line 43

[PHP] error on array loop through foreach?

2003-07-07 Thread Micah Montoy
I'm using the foreach to loop through a array that is passed from a form. The form has a multiple select field and the field sends a list of selected image locations (i.e. c:\\myimages\\rabbit.gif). All the fields are selected by use of JavaScript before the form is submitted. Anyway, I am

Re: [PHP] error on array loop through foreach?

2003-07-07 Thread Lars Torben Wilson
On Mon, 2003-07-07 at 00:16, Micah Montoy wrote: I'm using the foreach to loop through a array that is passed from a form. The form has a multiple select field and the field sends a list of selected image locations (i.e. c:\\myimages\\rabbit.gif). All the fields are selected by use of

Re: [PHP] error on array loop through foreach?

2003-07-07 Thread Micah Montoy
It did help and I altered the script a bit. It now reads as: $count = 0; //get file size function function fsize($file) { $a = array(B, KB, MB); $pos = 0; $size = filesize($file); while ($size = 1024) { $size /= 1024; $pos++; } return round($size,2). .$a[$pos]; } //loop through all

[PHP] Error configure php 5.0.0b1 on Solaris 2.8 with openssl 0.9.7b

2003-07-03 Thread Ziying Sherwin
We are trying to build php 5.0.0b1 on our Solaris 2.8 platform with gcc 3.3 and openssl 0.9.7b. The configuration failed with the following message: Configuring extensions checking for OpenSSL support... yes checking for OpenSSL version... = 0.9.6 checking for CRYPTO_free in -lcrypto... yes

[PHP] Error in doc 'Changes in PHP 5/Zend Engine 2.0?'

2003-07-01 Thread Alan D'Angelo - Media Beat Information Technology
Hello, the example of the section Exceptions of document http://www.php.net/zend-engine-2.php in Windows does not work: Fatal error: Call to undefined method exception::__construct() in c:\appserv\www\php5\exception.php on line 4 this works: ?php class MyExceptionFoo extends

[PHP] Error reporting at runtime

2003-06-25 Thread Anthony
I have error reporting turned off in my php.ini file on my production server. I have an app I'm writing that I need to run on the same server (no one can see it though). Anyway. I want to turn on error reporting during runtime for this particular app while I'm debugging it. so I put

Re: [PHP] Error reporting at runtime

2003-06-25 Thread Robert Cummings
This is hardly perfect since it shows all errors, but it works for me: ini_set( 'display_errors', 1 ); ini_set( 'log_errors', 1 ); ini_set( 'error_reporting', -1 ); Anthony wrote: I have error reporting turned off in my php.ini file on my production server. I have an

RE: [PHP] Error reporting at runtime

2003-06-25 Thread Ford, Mike [LSS]
-Original Message- From: Anthony [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 12:36 I have error reporting turned off in my php.ini file on my production server. I have an app I'm writing that I need to run on the same server (no one can see it though). Anyway. I want to turn

Re: [PHP] Error reporting at runtime

2003-06-25 Thread Anthony
Thanks. That did the trick. According to a post from Mike Ford, it was ini_set( 'display_errors', 1 ); that was messing me up. I have display_error turrned off in php.ini too, so even though my reporting was on, nothing was sent to the browser. Thanks for the help guys :) - Anthony Robert

Re: [PHP] Error in php after uprading

2003-06-20 Thread Javier
[EMAIL PROTECTED] (John W. Holmes) wrote in news:[EMAIL PROTECTED]: Your query failed. Add some error reporting around mssql_query() to find out why. Hi, I recompiled an older version of php with freetds 0.60 instead of 0.61 and everything start to work again. Maybe there is

[PHP] error handling

2003-06-19 Thread Mignon Hunter
On my dev server the php.ini is set to log all errors and notices. Isnt there a way to over ride this on a per script basis to output to stdout (or my browser) ? Thx -- Mignon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] error handling

2003-06-19 Thread Jason Wong
On Friday 20 June 2003 02:11, Mignon Hunter wrote: On my dev server the php.ini is set to log all errors and notices. Isnt there a way to over ride this on a per script basis to output to stdout (or my browser) ? Yes, manual Error Handling and Logging Functions -- Jason Wong - Gremlins

RE: [PHP] error with null $HTTP_GET_VARS['field']

2003-06-18 Thread Ford, Mike [LSS]
-Original Message- From: Logan McKinley [mailto:[EMAIL PROTECTED] Sent: 17 June 2003 19:55 right now if a the 'field' key does not exist at all in the querystring it returns the following error: Notice: Undefined index: Register in c:\inetpub\wwwroot\PHP\Register.php on line 3

[PHP] Error in php after uprading

2003-06-18 Thread Javier
Hi, I've upgraded to the latest version of php last week. Suddenly parts of code that was working now displays error. The errors I've found until now are related to Sybase (I use MSSQL 2k as DB server) Here is an example: Warning: mssql_num_rows(): supplied argument is not a valid Sybase

Re: [PHP] Error in php after uprading

2003-06-18 Thread John W. Holmes
Javier wrote: Hi, I've upgraded to the latest version of php last week. Suddenly parts of code that was working now displays error. The errors I've found until now are related to Sybase (I use MSSQL 2k as DB server) Here is an example: Warning: mssql_num_rows(): supplied argument is not a

Re: [PHP] Error in php after uprading

2003-06-18 Thread Javier
[EMAIL PROTECTED] (John W. Holmes) wrote in news:[EMAIL PROTECTED]: Your query failed. Add some error reporting around mssql_query() to find out why. Thanks I'll check that. -- *** s2r - public key: (http://leeloo.mine.nu/s2r-gmx.sig) -- PHP General Mailing List (http://www.php.net/)

[PHP] error with null $HTTP_GET_VARS['field']

2003-06-17 Thread Logan McKinley
right now if a the 'field' key does not exist at all in the querystring it returns the following error: Notice: Undefined index: Register in c:\inetpub\wwwroot\PHP\Register.php on line 3 I think i can use the empty function but i pass in 11 different variables and it seems like there must be a

Re: [PHP] error with null $HTTP_GET_VARS['field']

2003-06-17 Thread Lars Torben Wilson
On Tue, 2003-06-17 at 11:55, Logan McKinley wrote: right now if a the 'field' key does not exist at all in the querystring it returns the following error: Notice: Undefined index: Register in c:\inetpub\wwwroot\PHP\Register.php on line 3 I think i can use the empty function but i pass in 11

[PHP] error reporting linenumber and filename

2003-06-16 Thread Bas Jobsen
Hi, Running the code below, shows an errror in line 2 as expected. How do i get the linenumber of the function call? 3 here. ? function test($x){if($x!='a')trigger_error('error: call test with argument 1 equals a',E_USER_ERROR);} test('b'); ? Best regards, Bas -- PHP General Mailing List

RE: [PHP] error reporting linenumber and filename[Scanned]

2003-06-16 Thread Michael Egan
Use the predefined constant: __LINE__ Regards, Michael Egan -Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED] Sent: 16 June 2003 12:50 To: PHP General Subject: [PHP] error reporting linenumber and filename[Scanned] Hi, Running the code below, shows an errror in line 2

Re: [PHP] error reporting linenumber and filename[Scanned]

2003-06-16 Thread Bas Jobsen
[mailto:[EMAIL PROTECTED] Sent: 16 June 2003 13:14 To: Michael Egan Subject: Re: [PHP] error reporting linenumber and filename[Scanned] Dear Michael, Thanks for your respons, maybe i don't inderstand your solution but: 1function line() 2{ 3 echo __line__; 4} 5line(); will print 3

RE: [PHP] error reporting linenumber and filename[Scanned]

2003-06-16 Thread Ford, Mike [LSS]
-Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED] Sent: 16 June 2003 14:39 I'm not sure that there is a way beyond this to show the line within the function but I don't see that this would be necessary - at least not for resolving errors. i'm building a class

Re: [PHP] error reporting linenumber and filename

2003-06-16 Thread Marek Kilimajer
Not possible with current php Bas Jobsen wrote: Hi, Running the code below, shows an errror in line 2 as expected. How do i get the linenumber of the function call? 3 here. ? function test($x){if($x!='a')trigger_error('error: call test with argument 1 equals a',E_USER_ERROR);} test('b'); ?

[PHP] Error display

2003-06-12 Thread John Nichel
I have error reporting set to E_ALL, but no matter what I do, no errors display. Is there somewhere else in the .ini that I have to set something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error display

2003-06-12 Thread Alex Earl
I have error reporting set to E_ALL, but no matter what I do, no errors display. Is there somewhere else in the .ini that I have to set something? I believe there is a print_errors or show_errors directive in the php.ini file. Check on php.net for sure. Alex -- PHP General Mailing List

Re: [PHP] Error display

2003-06-12 Thread John Nichel
Belay this question. Found it. display_errors = On John Nichel wrote: I have error reporting set to E_ALL, but no matter what I do, no errors display. Is there somewhere else in the .ini that I have to set something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Error display

2003-06-12 Thread John Nichel
Alex Earl wrote: I have error reporting set to E_ALL, but no matter what I do, no errors display. Is there somewhere else in the .ini that I have to set something? I believe there is a print_errors or show_errors directive in the php.ini file. Check on php.net for sure. Alex Thanks guys. --

[PHP] Error starting apache w/ php installed (or not?)

2003-06-06 Thread Ryan Vennell
ok when i try to start apache2 (on redhat 8, php 4.2.2) i get this: Starting httpd: Syntax error on line 176 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into server: libssl.so.4: cannot open shared object file: No such file or directory [FAILED] line 176 of the

Re: [PHP] Error capturing

2003-06-05 Thread Jason Wong
On Wednesday 04 June 2003 18:16, Svein Larsen wrote: Anybody got a good solution for capturing errors in php scripts? I can catch the errors by logging them to a log file (log_errors in php.ini) My problem is that i'm running a lot of sites on my server and i need to know wich site generate

RE: [PHP] Error capturing

2003-06-05 Thread Svein Larsen
Yes, set_error_handler work for soft errors. But parse-errors doesnt get catched by the errorhandler. - Sveni -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 19:43 To: [EMAIL PROTECTED] Subject: Re: [PHP] Error capturing

Re: [PHP] Error capturing

2003-06-05 Thread Jason Wong
On Thursday 05 June 2003 02:00, Svein Larsen wrote: Yes, set_error_handler work for soft errors. But parse-errors doesnt get catched by the errorhandler. But surely you check that your pages actually parse before deploying them? *boggles* -- Jason Wong - Gremlins Associates -

RE: [PHP] Error capturing

2003-06-05 Thread Svein Larsen
] Subject: Re: [PHP] Error capturing On Thursday 05 June 2003 02:00, Svein Larsen wrote: Yes, set_error_handler work for soft errors. But parse-errors doesnt get catched by the errorhandler. But surely you check that your pages actually parse before deploying them? *boggles

Re: [PHP] Error capturing

2003-06-05 Thread Jason Wong
On Thursday 05 June 2003 02:08, Svein Larsen wrote: Of course - but sometimes includes and other happenings make parse error. Even eval'ed code can cause parse error even if the page parse fine initially. AFAIK there's nothing that will catch parse-errors at runtime. Maybe you can use the

[PHP] Error capturing

2003-06-04 Thread Svein Larsen
Hello, Anybody got a good solution for capturing errors in php scripts? I can catch the errors by logging them to a log file (log_errors in php.ini) My problem is that i'm running a lot of sites on my server and i need to know wich site generate the error and cant find any way to get this in the

[PHP] Error with directories

2003-05-27 Thread j0rd1 adame
Hi, I compiled PHP 4.2.3 like this ./configure --with-oracle=/home/oracle/OraHome1/ -with-oci8=/home/oracle/OraHome1/ --with-mysql=/usr --with-apxs I have my DocumentRoot in /var/www when i access php files in /var/www everything's fine, but when I access files in /var/www/whatever i get this

[PHP] error while quering from MSSQL server from a Linux box

2003-04-05 Thread Dhaval
Hi All, I m trying to build a drop down dynamically. I m quering fields from MSSQL 2000 Server. Now look wat is happning when i run my php from a Win2K PC and from a Linux Box. Linux Machine ABIDA PARVEEN AHMED HUSSAIN MOHD.HUSSAIN AHMED HUSSAIN,MOHAMMED HUSSAIN ANWAR USSAI ARVINDER SINGHOHAMMED

[PHP] Error on mysql_num_rows

2003-03-20 Thread ed
I've been trying to count records that match my query in MySQL using the examples given in the on-line manual as well as the user comments and I'm still getting the error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource. Here's the code. mysql_connect

Re: [PHP] Error on mysql_num_rows

2003-03-20 Thread Tom Rogers
Hi, Thursday, March 20, 2003, 10:44:33 PM, you wrote: ehhc I've been trying to count records that match my query in MySQL using the ehhc examples given in the on-line manual as well as the user comments and I'm ehhc still getting the error: ehhc Warning: mysql_num_rows(): supplied argument is

Re: [PHP] Error on mysql_num_rows

2003-03-20 Thread ed
I think I've found my problem. The query does work if I place the exact same code directly into my script but I had previously been calling it as a function from an include file. It's working just great now. Thanks, Ed On Thu, 20 Mar 2003, Tom Rogers wrote: Hi, Thursday, March 20, 2003,

[PHP] error message ... never seen this one before.

2003-03-19 Thread Daniel McCullough
I get this error. Unknown column 'B' in 'where clause' From this code. $sql = SELECT * FROM store; $result = mysql_query($sql) or die(mysql_error()); $store = mysql_fetch_array($result); $count = mysql_num_rows($result); $id = $store['id']; $name = $store['name']; $address = $store['address'];

Re: [PHP] error message ... never seen this one before.

2003-03-19 Thread Marek Kilimajer
Put single quotes around the strings in your sql statementS: $sql2 = SELECT id FROM store_name WHERE name = '.$name[$i].'; ^ ^ if this does not help, print out the query strings. Daniel McCullough wrote: I get this error. Unknown

[PHP] Error message after upload with IE, not with Netscape

2003-03-11 Thread Kusel Reinhard
Hi all, I wrote a form for the upload of a file and some explaining text. The form is evaluated by a php-script upload.php (see below) and the data (text and file name) are stored in a MySQL-database on a Unix server. The script also shows a thanks-message. The login is controlled by means of

[PHP] Error Opening acid_main.php page

2003-03-11 Thread jsauer
Hello, This problem is probably an obvious configuration I am missing, but I am a bit new to this and I haven't found the answer yet. I have Apache on a Sun Ultra 1 running Solaris 8. When I try to bring up the acid_main.php page, my browser always comes back and asks Open using an application

Re: [PHP] Error Opening acid_main.php page

2003-03-11 Thread R'twick Niceorgaw
AM Subject: [PHP] Error Opening acid_main.php page Hello, This problem is probably an obvious configuration I am missing, but I am a bit new to this and I haven't found the answer yet. I have Apache on a Sun Ultra 1 running Solaris 8. When I try to bring up the acid_main.php page, my

[PHP] Error in $_POST

2003-03-10 Thread Aspire Something
Hi guys , I am getting this error in php ___What I am doing; 1. I am posting data from one form and collecting it for execution as follows $_POST['cust_id[0]']; // cust_id is an array of length 1 which is selected form an drop down menu 2. register_globals is off 3. Also when i try to

Re: [Fwd: Re: [PHP] error while reading google-search-results]

2003-03-08 Thread Jens Lehmann
James Holden wrote: Welcome to a mine field of problems :-) 1. The url you have entered is invalid. Thats a good first check to make usually. Try /search?q=test to get that bit sorted. Ok, this was just a typo. :) 2. Google prevents known useragents from accessing it's content as it

Re: [Fwd: Re: [PHP] error while reading google-search-results]

2003-03-08 Thread James
LWP is a perl thing. Curl is probably the best thing to use. Have you tried using googles php api which they provide free? http://www.google.com/apis/ Jens Lehmann [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] James Holden wrote: Welcome to a mine field of problems :-) 1.

[PHP] error while reading google-search-results

2003-03-07 Thread Jens Lehmann
For reading in and displaying a file $uri I use this short script: ?php $uri = 'http://www.google.de?q=test'; echo implode('',file($uri)); ? Of course this works well for almost every website, but I have problems reading in the results of google (for instance the URI above). The error message I

[Fwd: Re: [PHP] error while reading google-search-results]

2003-03-07 Thread James Holden
Welcome to a mine field of problems :-) 1. The url you have entered is invalid. Thats a good first check to make usually. Try /search?q=test to get that bit sorted. 2. Google prevents known useragents from accessing it's content as it believes you are acting as a spider or a search engine

Re: [PHP] error checking with fread

2003-03-06 Thread Marek Kilimajer
add this check John Taylor-Johnston wrote: http://www.php.net/manual/en/function.fread.php What about error checking if the file contains something as I include below? Is that enough? Is this the right way? ?php $filename = /usr/local/something.txt; $handle = fopen ($filename, r); if(!$handle)

[PHP] error checking with fread

2003-03-05 Thread John Taylor-Johnston
http://www.php.net/manual/en/function.fread.php What about error checking if the file contains something as I include below? Is that enough? Is this the right way? ?php $filename = /usr/local/something.txt; $handle = fopen ($filename, r); $contents = fread ($handle, filesize ($filename));

[PHP] Error Opening file

2003-02-17 Thread Pushpinder Singh Garcha
Hello All; I am trying to open a File called cmi_list.txt ( stored at the same level as the php file) and then load these into an array. Now I check the $passport_codes with the value the User has entered and set the $flag accordingly ? . $PASSPORT_CODES =file(cmi_list.txt);

[PHP] Re: PHP error messages

2003-02-16 Thread Lord Loh.
That is not an error! It is a Warning...I got it the other day when the file was empty (or did not exist or something). Use @ prefix to make it disappear ?php $ar=@file(http://www.something.com/the_filename.txt;); ? Hope this helps... Lord Loh. -- PHP General Mailing List

[PHP] PHP error messages

2003-02-15 Thread Brad Esclavon
and error docs) and i cannot find any. can anyone point me to a php error documentation file or tell me what is wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Error compiling php

2003-02-13 Thread Adam Plocher
/php_mysql.o: In function `zif_mysql_real_escape_string': /home/aplocher/php-4.3.0/ext/mysql/php_mysql.c:1671: undefined reference to `mysql_real_escape_string' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 My configure string looks like this - the MySQL directory should

[PHP] PHP error page not redirecting

2003-02-10 Thread Nick Holden
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/index.php

Re: [PHP] PHP error page not redirecting

2003-02-10 Thread Chris Hewitt
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

Re: [PHP] PHP error page not redirecting

2003-02-10 Thread Chris Hayes
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

Re: [PHP] Error in variable when looping

2003-01-14 Thread menezesd
- Original Message - From: menezesd [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 13, 2003 6:21 PM Subject: [PHP] Error in variable when looping Hello friends, I have made the following table of data and a button on every row to view the details. The code is working fine

Re: [PHP] Error in variable when looping

2003-01-14 Thread Tim Ward
Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: menezesd [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 12:21 AM Subject: [PHP] Error in variable when looping Hello friends, I have made the following table of data and a button

Re: [PHP] Error in variable when looping

2003-01-14 Thread Denis L. Menezes
Hello Tim. Could you help me a little further and tell me exactly where to put this? Thanks Denis - Original Message - From: Tim Ward [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 5:16 PM Subject: Re: [PHP] Error in variable when looping

Re: [PHP] Error in variable when looping

2003-01-14 Thread Tim Ward
://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Denis L. Menezes [EMAIL PROTECTED] To: Tim Ward [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 11:50 AM Subject: Re: [PHP] Error in variable when looping Hello Tim. Could you help me a little

[PHP] Error in variable when looping

2003-01-13 Thread menezesd
Hello friends, I have made the following table of data and a button on every row to view the details. The code is working fine and the table is displayed with the buttons. The problem I have is that the $SelectedItemNumber posted to the next page remains the same number no matter which row

<    3   4   5   6   7   8   9   10   11   12   >