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
已提问 1 年前189 查看次数
1 回答
0

Hi there!

Have you tried the guide in the AWS Documentation?

I hope this helps.

profile pictureAWS
专家
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容