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



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to