0

I am stuck with this, I've tried whole day solve this but i couldn't, I' ve installed WAMPSERVER 3.0.6, all looks fine, wampserver icon green, no error log, all services runing, but i can't get PHP works, when I try execute a PHP code, It just appear in my browser(I can see the whole code and it supposed wouldn't happen) and doesn't work. HELP!

I read this: WAMP server doesn't work properly on Windows 10 , but i dont understand how to solve neither why it occurs?

Community
  • 1
  • 1
Reymar
  • 1
  • 1
  • 2
  • you need to post your code and to tell us how you're using this as. Is it `http://localhost` or as `file:///` and a `.php` extension? Two different animals here. – Funk Forty Niner Jan 28 '17 at 19:36
  • thanks for your time, I am using this file:///C:/wamp64/www/Rancho/PHP/EnviarDatos.php, my code just $conexion = mysqli_connect("localhost", "root", "", "database"); if(!$conexion){ echo 'error'; }else{ echo 'success'; } – Reymar Jan 28 '17 at 19:38
  • Using file means it is not being executed, you would need to go on `localhost/Rancho/PHP/EnviarDatos.php` for it to be correctly parsed. – Antony Jan 28 '17 at 19:45

0 Answers0