Dynamic Web Page

Back to Problem Solutions forum

Y_VICTORY     2020-04-27 22:57:00
User avatar

why my answer is wrong? need help plz

Dead Forest Foundation     2020-04-29 16:40:16
User avatar

Which language you use? First I tried to solve this on html, but there is no ways. Only php.

Y_VICTORY     2020-04-30 12:32:28
User avatar

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

Y_VICTORY     2020-05-02 05:34:43
User avatar

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?

Diriansyah     2020-05-02 06:09:34

I have solved this problem Thanks for responding my problem :)

Quandray     2020-05-02 06:21:22
User avatar

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));
Please login and solve 5 problems to be able to post at forum