Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: PHP Problems

  1. #1
    New Coder
    Join Date
    Feb 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post PHP Problems

    [n00bish post]http://forums.winforums.org/showthread.php?t=11381
    [/n00bish post]

    Go there to see the problem.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Don't be lazy. It doesn't hurt to repost your question.

    This is his/her question for those of you not wanting to navigate to another forum:
    Quote Originally Posted by megajosh2
    Whenever I run my Apache server, it says that PHP 5.1.2 (My PHP version) is running and whenever I open a PHP file, it always says that windows doesn't recognize the file type if I open it on. When I open one on my web site, it shows the code. Ex:
    PHP Code:
    <html>
    <head>
    <title>PHP test</title>
    </head>
    <body>
    <?php phpinfo() ?>
    </body>
    </html>
    I can't seem to figure out the problem. I don't know what to do. Can anyone help? (I know what your'e thinking. You think I'm a n00bhead.)
    Make a .php file called phpinfo.php and put this only in it.

    phpinfo.php
    PHP Code:
    <?php phpinfo(); ?>
    Upload it to your server. Navigate to it. It would help if you gave us a link to your site as well. It could be that your server isn't setup to handle php files.
    Last edited by _Aerospace_Eng_; 02-11-2006 at 08:05 PM.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Do you have the line:
    [code]
    AddType application/x-httpd-php .php
    [/php]
    (or something similar)
    somewhere in your httpd.conf?
    If you have other install problems you could use this tutorial.
    I'm not sure if this was any help, but I hope it didn't make you stupider.

    Experience is something you get just after you really need it.
    PHP Installation Guide Feedback welcome.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •