[PHP] Re: Problems with MySQL-Link [3:14370:14592] (Solved)

2002-02-12 Thread Berthold
Hi all, Do not use "||" instead of "or" !!! Example: $result = mysql_query("select now()") OR die (mysql_error()); -- Berthold -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-02-01 Thread Berthold
hell-version. Jason Wong wrote: > On Friday 01 February 2002 16:23, Berthold wrote: > >>Hi again! >> >>If it would be so simple I would not ask... >> >>OK, once more: >>#!/usr/local/bin/php -q >> > > > 1) Has the mysql functions ever wo

Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-02-01 Thread Berthold
27;ve tested all settings for MySQL in the php.ini. Jason Wong wrote: > On Friday 01 February 2002 15:38, Berthold wrote: > >>Hi! >> >>Thank you. >>But I cannot use that $link1 and/or $link2 to select two databases on >>different servers... >>If I use $li

Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-01-31 Thread Berthold
ul select of test2'; > }else{ > echo 'Failed to select test2'; > } > > ?> > which gives this output > Link 1: Resource id #1 > Link 2: Resource id #2 > Successful select of test > Successful select of test2 > > seems to indicate that php is smart enough not to open a new link even if > requested if there is already a link for the user! Removing the "a" in > the first mysql_connect gives me two links with a resource ID of 1. > > I can force errors of course by feeding a wrong username/password which > eventually leads to a 'Not a valid resource id' error but has other error > messages as well. You aren't by chance hiding other error responses by > using @ or 'or die'? > > -- Berthold -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-01-31 Thread Berthold
y different links with different servers I >>use! The resource-id is always '1'. >> >>Strange... >> > > Not a valid resource ID usually means a problem with the query - in fact > this might be in the FAQ. Use mysql_error() after the database query

[PHP] Re: [PHP General] RE: Problems with MySQL-Link [3:14370:14592]

2002-01-31 Thread Berthold
;id=14592&thread=14370 > > Sorry, Berthold! > > I can't think of anything else either. > And now, I saw also in your "phpinfo"-page > that you are running Php in CGI mode. > And that explains that "mysql.allow_persistent" shows "Off". > When Ph

Re: [PHP] Link-Identifyer MySQL Problem

2002-01-17 Thread Berthold
Hello again! Yes, there is a setting! But the value is '-1' for 'unlimited' It seems that mysql_connect returns always 'false' or '1'. Strange... Berthold wrote: > Hello! > > I have a problem with the connection-identifyer, comming from >

[PHP] Link-Identifyer MySQL Problem

2002-01-17 Thread Berthold
without that link it works well! I use php 4.1.1 on Linux. The value of link is '1'. The second link is '1' too! Is there a php.ini-setting for allowing only one connection??? -- Berthold -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

[PHP] disable_functions... Was: about your mail on php list

2002-01-16 Thread Berthold
; Prune > > > -- > List: php-general > Subject: [PHP] Problem with disable_functions > From: "Berthold Tenhumberg" <[EMAIL PROTECTED]> > Date: 2001-09-20 9:29:53 > [Download message RAW] > > Hi all!

[PHP] how to free some memory

2001-12-07 Thread Berthold
Hello! How can I free some memory after using it in an huge array? Testing with $oldX = array(); doesn't even free the memory... :-( -- Berthold -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: [PHP]

2001-11-28 Thread Berthold
php version >= 4 I think faeton wrote: > Does anyone know that is equal , eh? :) > Just wanted you to know :) > > > > Ivan 'Faeton aka xetrix' Danishevsky > ICQ(240266) [EMAIL PROTECTED] www.xemichat.com

[PHP] First CGI, then PHP

2001-11-15 Thread Berthold
Hi! Is it possible to add PHP-code into the html-templates of ht://dig? The problem is the execution after or before the CGI-prog has run. Of course I need 'after'. But how can I do that? What is the default order in a builtin-PHP? -- Berthold (live long and prosper...) -- P

[PHP] Problem with disable_functions

2001-09-20 Thread Berthold Tenhumberg
Hi all! Did I find a bug? Disabling the function 'system' per php.ini works well. OK. Disabling the same function per Apache-directive does not. Why? php_admin_value disable_functions system -- (live long and prosper...) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

[PHP] Performance with encoded files

2001-06-19 Thread Berthold Tenhumberg
Hi! I've testet the performance on plain code and encoded code. Both done with the optimizer 1.1.0 on the same maschine. The encoded skript needs 30 % more time to execute! Is that ok? -- B Tenhumberg (live long and prosper...)