php.exe does not php a page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cozsmin
    New Member
    • Mar 2007
    • 14

    #1

    php.exe does not php a page

    i mean , i have a page page.php and i have <?php kadfsdkfsdkfbdf jkbdsfjb ?> inside , when i go http://localhost/.../page.php i get its source and i see <?php
    "the code" ?> ,weird man, i mean i have done a lot of other php pages and all show only the html script in source man; if u are interested here is the code :

    Code:
    <?php       //// i see the tags !!!!!!!!!!!!!!!!!!!!!!!!!!!!! in source man
    ?>
    <form method="post" action="procesare.php" name="formular1">
    <input type=text name="text">
    <br>
    <input type="checkbox" name="bifat">
    <br>
    <select name="selectie">
    <?php 
    
    for ($i=0;$i<=99;$i++){ //
    if (($i % 2) == 0 ){
            echo "<option >" . $i . "</option>";
            }
    }
    echo "<BR><BR>asdasdfsaf";
    ?>
    </select>
    <input type="submit" value="Trimite">
    </form>
    just try it on yout local machine and tell me what happens ok ?
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    #2
    i have a page page.php when i go http://localhost/.../page.php i get its source and i see <?php
    "the code" ?>
    You will see the php as source if the file is a html file.
    Are you sure it is page.php you are looking at?

    Comment

    • cozsmin
      New Member
      • Mar 2007
      • 14

      #3
      yes i am shure (i`m not that dumb) , actually it does not reproduce on other computers only on one :)
      so it it the software not the code

      10x anyway man

      Comment

      • aktar
        New Member
        • Jul 2006
        • 105

        #4
        Hi cozsmin

        It sounds like its a problem with your web server setting not php.
        Just to make sure its not a php problem, why dont you run that script through php in cli mode?

        I had lots of problems like that. The best thing to do is to install php from the installer to save you a lot of hassel

        Comment

        Working...