PHP not working on the website

0

My php does not work on my linux server of aws ec2.

http://3.77.54.254/ any idea?

<?php echo "This a boar detector device"; $varboars = $_GET['boars']; //$varboars = 4; $filecontent = "The boars that trapped ".$varboars; $filestatus = file_put_contents( 'TimesVisitedForBoars.txt', $filecontent, FILE_APPEND ); echo" THISIS VISIBLE"; if( $filestatus != false ) { echo"Succes****************************** you hunt boars"; } else { echo"No succes you dont hunt boars"; } $filename = "TimesVisitedForBoars.txt"; $handle = fopen($filename, "r"); $BoarsVisited = fread($handle, filesize($filename)); echo "Boards that hit the floor are After writting".$BoarsVisited; fclose($handle); ?>
Ferran
preguntada hace un año191 visualizaciones
1 Respuesta
0

Hi there!

Have you tried the guide in the AWS Documentation?

I hope this helps.

profile pictureAWS
EXPERTO
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas