Back to Problem Solutions forum
why my answer is wrong? need help plz
Which language you use? First I tried to solve this on html, but there is no ways. Only php.
i use python for this problem. I dont understand why my url look that "http://victory123.pythonanywhere.com/codeabbey/Dynamic-Web-Page.py" two example at "http://rodiongork.atwebpages.com/simple.php" and "http://rodiongork.atwebpages.com/simple.py" is error, I need example to check my answer
http://victory123.epizy.com/codeabbey/Dynamic-Web-Page.php It always returns Your output does not start with "Random value is "... what wrong in my page?
I have solved this problem Thanks for responding my problem :)
This is what I see with your urls
C:\Temp>curl http://victory123.epizy.com/codeabbey/Dynamic-Web-Page.php
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>
C:\Temp>curl http://victory123.pythonanywhere.com/codeabbey/Dynamic-Web-Page.py
import random
x=1397
while True:
Nilai_Acak=random.randint(10000,99999999)
if (Nilai_Acak%x)==0:
break
print("Content-Type: text/plain")
print("")
print("Random value is " + str(Nilai_Acak));