Re: [PHP] Re: two php installations

2003-06-19 Thread Terje Torkelsen
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)... // DvDmanDT Terje Torkelsen [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED

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

[PHP] Re: Help with my code

2003-06-18 Thread Terje Torkelsen
To echo multiple lines you have to write echo END html headtitle ... .. 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

Re: [PHP] Re: Help with my code

2003-06-18 Thread Terje Torkelsen
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 at 08:23, Terje Torkelsen wrote: To echo multiple lines you have to write

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

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( substr(

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

[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