Trying to run PHP with Apache

Why is it that whenever I try to run a PHP script - a simple one that prints out hello world - it just displays a blank HTML page? I have an Apache server running but i'm not entirely sure that it's set up properly. Sometimes when I try to run script it brings up the Windows File Download dialog - I'm pretty sure that's not right.
Can someone PLEASE help.

scotsDude

Comments

  • : Why is it that whenever I try to run a PHP script - a simple one that prints out hello world - it just displays a blank HTML page? I have an Apache server running but i'm not entirely sure that it's set up properly. Sometimes when I try to run script it brings up the Windows File Download dialog - I'm pretty sure that's not right.
    : Can someone PLEASE help.
    :
    : scotsDude
    :


    humm.. some have to be named .php3 or .php4

    make a .htaccess file in your main directory and put this in it:

    [code]AddType x-mapp-php4 .php3[/code]

    That helped me but i don't have my own web server =


    if you want to know the php data of my host checkout:
    http://s94621642.onlinehome.us/php.php



    As for the Windows Download Dialog.. has to do something with headers.. maybe yours are messed up..
    [b][blue]Snoochie Boochies[/blue][/b]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion