Problem 189 - Dynamic Website Help

Back to General discussions forum

Eddie_Hitler     2021-05-04 12:43:44
User avatar

Hello fellow nerds,

I'm wondering what I'm doing wrong here. I'm trying to solve this problem and I think I've done it but when I submit I'm given an error saying "Output does not start with "Random Value is", which it totally does.

Would somebody mind casting their eye over my site and telling me what in the heck I'm doing wrong here.

http://dubwhores.great-site.net/codeab.php

Thanks, Eddie.

Eddie_Hitler     2021-05-04 13:05:18
User avatar

made another,

http://dubwhores.great-site.net/yo.php

same problem. Last one was written in HTML which I thought could be the problem, so I made a php script

<?php

echo "Random value is " . rand(100,200)*i;

still have the same issue, it says "Output does not start with Random value is" when the page only displays

Random value is ********

ugh, really stumped here.

Rodion (admin)     2021-05-04 13:32:35
User avatar

Eddie, Hi!

That seems easy to figure out, but not easy to fix:

$ curl http://dubwhores.great-site.net/yo.php

says

<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>

seemingly this hosting doesn't like when pages are requested by non-human. Checker for this problem is not human, of course :)

So probably you may want to try some other hosting provider.

Eddie_Hitler     2021-05-04 14:03:22
User avatar

Thanks Rodion! I was pulling my hair out with this one, such a simple solution too haha it's hard to find decent free hosting, i'll get back to the drawing board with it :)

Thanks again,

Eddie.

Eddie_Hitler     2021-05-04 14:52:48
User avatar

Sorted it now, if anybody has a similar issue i used "https://freehostingnoads.net/" to host my site. I don't know if it's trustworthy or not but seemed okay for me.

Please login and solve 5 problems to be able to post at forum