php-install Digest 30 Jun 2002 06:52:47 -0000 Issue 908

Topics (messages 7529 through 7543):

Server don't knows what to do with *.php
        7529 by: Uwe Birkenhain
        7531 by: Uwe Birkenhain
        7533 by: Chris Hewitt
        7535 by: Uwe Birkenhain
        7536 by: Chris Hewitt
        7538 by: Uwe Birkenhain
        7543 by: Ostdeutschland.gmx.de

ext php4 and php3 running - but ext php not
        7530 by: Siggi

What's this error mean ...
        7532 by: Liz Marr
        7534 by: Chris Hewitt
        7542 by: Liz Marr

Variables
        7537 by: milton.ucol.mx
        7540 by: Uwe Birkenhain
        7541 by: Jason Reid

windows: apache with php module doesn't work
        7539 by: Alexander Braumann

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hallo,
on W98 I installed apache 1.3.26 and it's running (not as a service).
Then I installed PHP with the Installation-Setup (not as a module) and when
I call it from the DOS-Prompt with '-i' a lot of garbage is coming -
probably the Info-List.

But when I try to call (doubleclick or something) a simple PHP-Script ("say
hello to the world") I always get the message "with wich program you want to
open this file?"

And yes, I have inserted
"
   ScriptAlias /php/ "c:/php/"
   AddType application/x-httpd-php .php
   Action application/x-httpd-php "/php/php.exe"
"
in httpd.conf (and started then apache).

Any help would be greatly appreciated,
Uwe

BTW: Sorry, this message is now here for the third time - because my
systemdate was two weeks late (have a look at June, 14).


--- End Message ---
--- Begin Message ---
Hallo,
on W98 I installed apache 1.3.26 and it's running (not as a service).
Then I installed PHP with the Installation-Setup (not as a module) and when
I call it from the DOS-Prompt with '-i' a lot of garbage is coming -
probably the Info-List.

But when I try to call (doubleclick or something) a simple PHP-Script ("say
hello to the world") I always get the message "with wich program you want to
open this file?"

And yes, I have inserted
"
   ScriptAlias /php/ "c:/php/"
   AddType application/x-httpd-php .php
   Action application/x-httpd-php "/php/php.exe"
"
in httpd.conf (and started then apache).

Any help would be greatly appreciated,
Uwe

BTW: Sorry, this message is now here for the third time - because my
systemdate was two weeks late (have a look at June, 14).



--- End Message ---
--- Begin Message ---
Uwe,

I'm not familiar with php on windows, but maybe I can give some 
pointers. I assume apache is running. The lines you have added in 
httpd.conf are for when calling php via a url in apache e.g. 
"http://yourbox.com/foo.php";. The lines do not tell windows that 
extensions of ".php" are associated with any program. To run the cgi 
version from the command line do "php foo.php".

Use a simple file such as phpinfo.php for tests with this content:
<? php
phpinfo();
?>

Tell us what happens when you do this.
HTH
Chris

Uwe Birkenhain wrote:

>Hallo,
>on W98 I installed apache 1.3.26 and it's running (not as a service).
>Then I installed PHP with the Installation-Setup (not as a module) and when
>I call it from the DOS-Prompt with '-i' a lot of garbage is coming -
>probably the Info-List.
>
>But when I try to call (doubleclick or something) a simple PHP-Script ("say
>hello to the world") I always get the message "with wich program you want to
>open this file?"
>
>And yes, I have inserted
>"
>   ScriptAlias /php/ "c:/php/"
>   AddType application/x-httpd-php .php
>   Action application/x-httpd-php "/php/php.exe"
>"
>in httpd.conf (and started then apache).
>
>Any help would be greatly appreciated,
>Uwe
>
>BTW: Sorry, this message is now here for the third time - because my
>systemdate was two weeks late (have a look at June, 14).
>
>
>
>


--- End Message ---
--- Begin Message ---
Hello Chris,
thank's for your answer!

When I call this program with doubleclick or from the commandline a DOS-Box
opens a lot of text is running through and the Box closes again.
When I pause the text-flood I can see that is a lot of HTML-Code - probably
the sourcecode of the PHP-Info-Website which would normally appear in the
browser.

BTW: I don't know why all my messages appeared together - I tried to get one
on top of the list (but failed somehow - I'm not yet familiar with
newsboards). Hope that this one appears in the right position.

Greetings,
Uwe


Chris Hewitt schrieb in Nachricht <[EMAIL PROTECTED]>...
>Uwe,
>
>I'm not familiar with php on windows, but maybe I can give some
>pointers. I assume apache is running. The lines you have added in
>httpd.conf are for when calling php via a url in apache e.g.
>"http://yourbox.com/foo.php";. The lines do not tell windows that
>extensions of ".php" are associated with any program. To run the cgi
>version from the command line do "php foo.php".
>
>Use a simple file such as phpinfo.php for tests with this content:
><? php
>phpinfo();
>?>
>
>Tell us what happens when you do this.
>HTH
>Chris



--- End Message ---
--- Begin Message ---
Uwe,

I don't use php from the command line, so I've been looking in the 
manual! PHP assumes it is talking with a web browser so outputs html. 
Use "php -q" to stop the header output.  I sugggest you look at the 
manual Appendix H Using PHP from the Command Line.

Hope this helps.
Chris

Uwe Birkenhain wrote:

>Hello Chris,
>thank's for your answer!
>
>When I call this program with doubleclick or from the commandline a DOS-Box
>opens a lot of text is running through and the Box closes again.
>When I pause the text-flood I can see that is a lot of HTML-Code - probably
>the sourcecode of the PHP-Info-Website which would normally appear in the
>browser.
>
>BTW: I don't know why all my messages appeared together - I tried to get one
>on top of the list (but failed somehow - I'm not yet familiar with
>newsboards). Hope that this one appears in the right position.
>
>Greetings,
>Uwe
>
>
>Chris Hewitt schrieb in Nachricht <[EMAIL PROTECTED]>...
>
>>Uwe,
>>
>>I'm not familiar with php on windows, but maybe I can give some
>>pointers. I assume apache is running. The lines you have added in
>>httpd.conf are for when calling php via a url in apache e.g.
>>"http://yourbox.com/foo.php";. The lines do not tell windows that
>>extensions of ".php" are associated with any program. To run the cgi
>>version from the command line do "php foo.php".
>>
>>Use a simple file such as phpinfo.php for tests with this content:
>><? php
>>phpinfo();
>>?>
>>
>>Tell us what happens when you do this.
>>HTH
>>Chris
>>
>
>
>
>


--- End Message ---
--- Begin Message ---
Hi Chris,
sorry, I didn't tell correctly what I do - forget the commandline, that was
just one way I tried it.

I DO WANT PHP to talk to the browser.
But when I start info.php with doubleclick, the DOS-Box appears and shows me
the HTML-code.

All I want to know now is: how must I tell my system to send the code to the
browser?

Because PHP is working fine, I tried

for ($i=0; $i < 1000; $i++)
{
 echo "Hallo<br>\n";
}

and yes, it's appearing in the DOS-Box, line for line.

But I want to see it in the browser!!!!

And though apache is running - no webpage appears.

Any more hints?

Uwe

Chris Hewitt schrieb in Nachricht <[EMAIL PROTECTED]>...
>Uwe,
>
>I don't use php from the command line, so I've been looking in the
>manual! PHP assumes it is talking with a web browser so outputs html.
>Use "php -q" to stop the header output.  I sugggest you look at the
>manual Appendix H Using PHP from the Command Line.
>
>Hope this helps.
>Chris
>
>Uwe Birkenhain wrote:
>
>>Hello Chris,
>>thank's for your answer!
>>
>>When I call this program with doubleclick or from the commandline a
DOS-Box
>>opens a lot of text is running through and the Box closes again.
>>When I pause the text-flood I can see that is a lot of HTML-Code -
probably
>>the sourcecode of the PHP-Info-Website which would normally appear in the
>>browser.
>>
>>BTW: I don't know why all my messages appeared together - I tried to get
one
>>on top of the list (but failed somehow - I'm not yet familiar with
>>newsboards). Hope that this one appears in the right position.
>>
>>Greetings,
>>Uwe
>>
>>
>>Chris Hewitt schrieb in Nachricht
<[EMAIL PROTECTED]>...
>>
>>>Uwe,
>>>
>>>I'm not familiar with php on windows, but maybe I can give some
>>>pointers. I assume apache is running. The lines you have added in
>>>httpd.conf are for when calling php via a url in apache e.g.
>>>"http://yourbox.com/foo.php";. The lines do not tell windows that
>>>extensions of ".php" are associated with any program. To run the cgi
>>>version from the command line do "php foo.php".
>>>
>>>Use a simple file such as phpinfo.php for tests with this content:
>>><? php
>>>phpinfo();
>>>?>
>>>
>>>Tell us what happens when you do this.
>>>HTH
>>>Chris
>>>
>>
>>
>>
>>
>
>


--- End Message ---
--- Begin Message ---
what about opening the file with your favorit webbrowser?

Hold down shift and rightclick your *.php file -> Open with -> Internet
Explorer or whatever you like


> Hi Chris,
> sorry, I didn't tell correctly what I do - forget the
> commandline, that was
> just one way I tried it.
>
> I DO WANT PHP to talk to the browser.
> But when I start info.php with doubleclick, the DOS-Box appears
> and shows me
> the HTML-code.
>
> All I want to know now is: how must I tell my system to send the
> code to the
> browser?
>
> Because PHP is working fine, I tried
>
> for ($i=0; $i < 1000; $i++)
> {
>  echo "Hallo<br>\n";
> }
>
> and yes, it's appearing in the DOS-Box, line for line.
>
> But I want to see it in the browser!!!!
>
> And though apache is running - no webpage appears.
>
> Any more hints?
>
> Uwe

--- End Message ---
--- Begin Message ---
hi everybody
we try to figure out why the .php extension is not running on a
webserserver.
the php ext is given us for download, while php4 and php3 are working
correct,
showing us the php_test infopage.

we think that it is a version conflict but we don't know where to check.
we did several changes in httpd.conf without a positiv result.

any hints for us ??

thx upfront

siggi



--- End Message ---
--- Begin Message ---
... and how do I correct it.

[29-Jun-2002 07:19:21] PHP Fatal error:  Cannot redeclare 
displayhtmlheader() (previously declared in 
C:\squirrelmail\functions\page_header.php:17) in 
c:\squirrelmail\functions\page_header.php on line 17

-- 
 (\o/)   mailto:[EMAIL PROTECTED]       KA7MYM         
  /_\    http://cc-ent.com/Spiritbrook    ICQ 4014832
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Prayer - Don't give God instructions - just report for duty!

--- End Message ---
--- Begin Message ---
Liz,

Sounds like you are declaring it twice. Is it in a loop? Correct it by 
calling it once.

HTH
Chris

Liz Marr wrote:

>... and how do I correct it.
>
>[29-Jun-2002 07:19:21] PHP Fatal error:  Cannot redeclare 
>displayhtmlheader() (previously declared in 
>C:\squirrelmail\functions\page_header.php:17) in 
>c:\squirrelmail\functions\page_header.php on line 17
>


--- End Message ---
--- Begin Message ---
It's not my software - it's an out-of-the box install of Squirrel Mail.  Since I 
didn't develope the software, I have no clue where to even look for the 
problem.

On 29 Jun 2002, at 15:47, Chris Hewitt wrote:

> Sounds like you are declaring it twice. Is it in a loop? Correct it by 
> calling it once.


--- End Message ---
--- Begin Message ---
I have W2k and IIS 5.0 but i have a problem:

PHP don't cach the values of the form:
<?php
$usuario = strtoupper($usuario);
Echo "Hola $usuario";
?>

  This only print "hola" What happend?
--- End Message ---
--- Begin Message ---
Perhaps you should write a string into $usuario before you use strtoupper
...?


[EMAIL PROTECTED] schrieb in Nachricht
<[EMAIL PROTECTED]>...
>I have W2k and IIS 5.0 but i have a problem:
>
>PHP don't cach the values of the form:
><?php
>$usuario = strtoupper($usuario);
>Echo "Hola $usuario";
>?>
>
>  This only print "hola" What happend?


--- End Message ---
--- Begin Message ---
Or because its being passed from a querystring, make sure you pull the value
of the variable from the querystring via either $_POST['varname'] or
$_REQUEST['varname']

eg:
<?
$usuario = $_POST['usuario'];
$usuario = strtoupper($usuario);
Echo "Hola $usuario";
?>

----- Original Message -----
From: "Uwe Birkenhain" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 29, 2002 12:16 PM
Subject: [PHP-INST] Re: Variables


> Perhaps you should write a string into $usuario before you use strtoupper
> ...?
>
>
> [EMAIL PROTECTED] schrieb in Nachricht
> <[EMAIL PROTECTED]>...
> >I have W2k and IIS 5.0 but i have a problem:
> >
> >PHP don't cach the values of the form:
> ><?php
> >$usuario = strtoupper($usuario);
> >Echo "Hola $usuario";
> >?>
> >
> >  This only print "hola" What happend?
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
Hi,

I have to set up a xAMP system on windows, for testing purposes.
I installed mysql_latest and apache-2.0.39 with php-4.2.1

My problem: I need the module-mode, because I need php_value commands..

The thing is, that apache won't start with the lines in httpd.conf:
AddType application/x-httpd-php .php
LoadModule php4_module c:/LAMP/php/sapi/php4apache.dll
AddModule mod_php4.c

An error message appears: "The requested operation has failed!"

Can anyone tell me, who I can load php per module ?
please help.

alex.

-- 
Alexander Braumann
[EMAIL PROTECTED]
--- End Message ---

Reply via email to