By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,975 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

php.exe does not php a page

P: 14
i mean , i have a page page.php and i have <?php kadfsdkfsdkfbdfjkbdsfjb ?> 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 :

Expand|Select|Wrap|Line Numbers
  1. <?php       //// i see the tags !!!!!!!!!!!!!!!!!!!!!!!!!!!!! in source man
  2. ?>
  3. <form method="post" action="procesare.php" name="formular1">
  4. <input type=text name="text">
  5. <br>
  6. <input type="checkbox" name="bifat">
  7. <br>
  8. <select name="selectie">
  9. <?php 
  10.  
  11. for ($i=0;$i<=99;$i++){ //
  12. if (($i % 2) == 0 ){
  13.         echo "<option >" . $i . "</option>";
  14.         }
  15. }
  16. echo "<BR><BR>asdasdfsaf";
  17. ?>
  18. </select>
  19. <input type="submit" value="Trimite">
  20. </form>
  21.  
  22.  
  23.  
just try it on yout local machine and tell me what happens ok ?
Dec 12 '07 #1
Share this Question
Share on Google+
3 Replies


code green
Expert 100+
P: 1,726
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?
Dec 12 '07 #2

P: 14
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
Dec 12 '07 #3

100+
P: 105
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
Dec 15 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.