   [web] help with php hello world
  I have set up php and apache on my vista computer and I am having trouble displaying a "hello world" string.  This is my index.html:<html><body><h1>it works!</h1><?php echo "Hello World"; ?></body></html>"it works!" prints out fine but hello world is not displayed.  Is there something wrong with my installation?   
  Have you tried renaming index.html to index.php?   ;  The default configuration of apache does not execute PHP inside HTML files. Rename your file to index.php and try again.   ;  Ok...so this is like the 3294890238490283094 language I've seen ToorVyk comment on how to fix something...how can someone KNOW that many programming languages!?   ;  Thanks, I renamed the file and it works now.   ;Quote:Original post by Chrono1081Ok...so this is like the 3294890238490283094 language I've seen ToorVyk comment on how to fix something...how can someone KNOW that many programming languages!?The first couple are hard but after that it's easy, they are all basically the same (until you start learning things like lisp! hehe)   ;Quote:Original post by Chrono1081Ok...so this is like the 3294890238490283094 language I've seen ToorVyk comment on how to fix something...how can someone KNOW that many programming languages!?Just takes time.  Currently I know 8, and I'm not remotely finished learning.   ;Quote:Original post by Chrono1081Ok...so this is like the 3294890238490283094 language I've seen ToorVyk comment on how to fix something...how can someone KNOW that many programming languages!?My original area of competence is programming language design. Being familiar with the underlying theory makes it much easier to learn programming languages [smile]