| Author |  | 
| arrow21987 
 
 
 Joined: 14 Aug 2006
 Posts: 5
 
 
 | 
|  Posted: Mon 14 Aug '06 14:52    Post subject: php wont show.. |   |  
| 
 |  
| ok i am following this post: http://www.apachelounge.com/viewtopic.php?t=570 
 and i have done everything it says to do, but when i add a php file to my htdocs folder, it doesnt show the php. is there something i missed?
 |  | 
| Back to top |  | 
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Mon 14 Aug '06 15:16    Post subject: |   |  
| 
 |  
| Did you start the script with <? or <?php  ? |  | 
| Back to top |  | 
| Xing Moderator
 
  
 Joined: 26 Oct 2005
 Posts: 49
 
 
 | 
|  Posted: Mon 14 Aug '06 15:17    Post subject: |   |  
| 
 |  
| When you followed the guide exactly it should work. What do you get, an error/warning or is the code displayed ?
 
 Is phpinfo() working ?
 
 X
 |  | 
| Back to top |  | 
| arrow21987 
 
 
 Joined: 14 Aug 2006
 Posts: 5
 
 
 | 
|  Posted: Mon 14 Aug '06 15:25    Post subject: |   |  
| 
 |  
| blank... 
 
 the code i used was:
 
 
  	  | Code: |  	  | <? echo "it works!";
 ?>
 | 
 
 ill look over what i may have done wronge when setting it up...
 |  | 
| Back to top |  | 
| Xing Moderator
 
  
 Joined: 26 Oct 2005
 Posts: 49
 
 
 | 
|  Posted: Mon 14 Aug '06 15:38    Post subject: |   |  
| 
 |  
| When you try as James said above: 
 <?php
 echo "it works!";
 ?>
 
 X
 |  | 
| Back to top |  | 
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Mon 14 Aug '06 15:38    Post subject: |   |  
| 
 |  
| try to set in php.ini 
  	  | Code: |  	  | short_open_tag = On
 
 | 
 |  | 
| Back to top |  | 
| arrow21987 
 
 
 Joined: 14 Aug 2006
 Posts: 5
 
 
 | 
|  Posted: Mon 14 Aug '06 15:52    Post subject: |   |  
| 
 |  
| woot it works! thanks a bunch! i found out i had installed it wronge... then when it started to display something like this: 
 
 
 so i did what you said which was change the short_open_tag to on and it works! thanks a bunch!
 |  | 
| Back to top |  |