Re: [PHP] Re: two php installations

2003-06-19 Thread Terje Torkelsen
ease give me a >>> working binary PHP1 and PHP2 for windows? PLEASE!!!) installed and >>> working on the same server... Simply use the CGI version... But server >>> gets slower and slower on every request (well, maybe not _every_ >>> request but)... >>> >&

Re: [PHP] Re: Help with my code

2003-06-18 Thread Terje Torkelsen
-Mailer: Ximian Evolution 1.2.3 > Content-type: text/plain > Content-transfer-encoding: 7BIT > References: <[EMAIL PROTECTED]> > <[EMAIL PROTECTED]> > Subject: Re: [PHP] Re: Help with my code > From: [EMAIL PROTECTED] (Lars Torben Wilson) > > On Wed, 2003-06-18 a

[PHP] Re: Help with my code

2003-06-18 Thread Terje Torkelsen
To echo multiple lines you have to write echo << ... .. END; and in the beginning you have if( $action ) { if... elseif .. elseif.. if( $action ) { => why this? you have already checked if $action is true earlier... } } (nb! posting the what the error is might help solve a

Re: [PHP] Calling c function from php

2003-06-18 Thread Terje Torkelsen
if you want to integrate the c/c++ codes in php you can use the build_skel that follows php to do this. write: ./build_skel --extname=calculate --proto=/path/to/calculate.proto --assign-params where extname is the extension name and proto is a file containing the prototypes of the functions t

[PHP] Re: refreshing fopen

2003-06-17 Thread Terje Torkelsen
PHP is server-side language, so this would be possible. Would go for meta tag or a javascript. On Tue, 17 Jun 2003 22:18:56 +0200, Bryan Koschmann - Gkt wrote (in message <[EMAIL PROTECTED]>): > Hello, > > I'm wondering what the best way to go about this would be. I will be > opening a URL th

[PHP] Re: str_replace() problems actually *_replace() problems to be more accurate

2003-06-16 Thread Terje Torkelsen
take a look at the comments for the nl2br() functions, many nice examples for problems simular to this: http://no2.php.net/manual/en/function.nl2br.php On Mon, 16 Jun 2003 20:49:14 +0200, Thomas Bolioli wrote (in message <[EMAIL PROTECTED]>): > I am a perl/java/c++ programmer who is doing so

[PHP] two php installations

2003-06-16 Thread Terje Torkelsen
is there a way to install two phps on one apache server? want a stable php4 on my production site and a php5-dev to test on.. just use different virtualhosts, like php5.domain.com for the one with php5 installed. looked in the apache docs, seems like LoadModule cant be used inside , its a globa

Re: [PHP] Capturing the input of dynamic form fields (part II)

2003-06-16 Thread Terje Torkelsen
i think this query could be optimized by putting all the inserts in one query. something like this: $query = 'INSERT INTO test (test1, test2) VALUES '; foreach($_POST['test1'] as $i => $value ) { $query .= "('".$_POST['test1'][$i]."', '".$_POST['test2'][$i]."'), "; } $result = mysql_query( subs