Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Php code giving no results in firefox? [closed]

Tags:

php

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.

like image 706
40yearoldnewbie Avatar asked May 01 '26 03:05

40yearoldnewbie


1 Answers

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

like image 154
Mob Avatar answered May 03 '26 17:05

Mob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!