Just started learning Php on my own, and got stuck at the beginning. This is the code I was compiling:
<?php
echo "Hello world!";
echo 6+2;
?>
The problem is that the Php portion isn't displayed in Firefox. Why? Firefox ver. 7.0.1., I am using NetBeans 7, with cygwin.
You said you're accessing the file directly like file:///C:/xampp/htdocs/PhpVjezba1/test1.php
Don't do that, access it via http://localhost/PhpVjexba1/test1.php, provided you have a server installed.
Click Here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With