Php Forbidden ??

Status
Not open for further replies.

wingedx1

New Member
Messages
4
Reaction score
0
Points
1
Hi, the last time I used x10 host was AGES ago, and since then I've forgotten just about everything. Right now I'm very lost with this one reoccurring problem with my site.
I have a snippet of html on the main page:
<html><body>
<form action="proxy.php" method="post">
<input type="text" name="t" value="">
<input type=submit name=submit value=submit >
</form></body></html>

and a php file that is supposed to work when you click 'submit' on the html:
<?php
$thefile = $_POST['t'];
$thepage = file_get_contents($thefile);
echo $thepage;
?>

But whenever I go to the link, I just get a blank page that says Forbidden. I inspected the network console and found it was a 403 error. I'm guessing there is either something wrong with the way it's being linked/permissions, or with the php. The link it goes to is http://mysite.x10host.com/proxy.php
 

wingedx1

New Member
Messages
4
Reaction score
0
Points
1
Ah sorry, I didn't realize that, thanks for letting me know! tbh i just wanted to be able to play games during lunch at school without having the wifi block it TwT I found a tutorial online for the code and just copied and pasted it...sigh
 
Status
Not open for further replies.
Top