Problem with HTTP Funtion
#10

Quote:
Originally Posted by Sascha
Посмотреть сообщение
at which file?
at the image it would be senseless as I know that the score doesn't work...
at the get.php it won't work neither as it will bet my IP and not the server's
In the get.php file, so you can debug the script. You need to put it before any of the checks are done, that is how you debug code.

PHP код:
<?php
echo 'Request IP: '.$_SERVER['REMOTE_ADDR'].'<br>User: '.$_GET['user'].'<br>Score: '.$_GET['score'];  
if(
$_SERVER['REMOTE_ADDR'] == '217.18.70.196')
{
    if(!isset(
$_GET['user'])) return false;
 
    if(isset(
$_GET['score']))
    {
        
$file fopen($_GET['user'] . '.txt''w');
        
fwrite($file$_GET['score']);
        
fclose($file);
    }
}
?>
Then visit the page and make sure everything is in order, particularly the IP part. Also the poster above me made a good point, you need to be sure that your hosting provider actually supports the use of PHP.
Reply


Messages In This Thread
Problem with HTTP Funtion - by Sascha - 14.01.2011, 10:56
Re: Problem with HTTP Funtion - by Sascha - 14.01.2011, 14:40
Re: Problem with HTTP Funtion - by Jochemd - 14.01.2011, 15:03
Re: Problem with HTTP Funtion - by Sascha - 14.01.2011, 18:02
Re: Problem with HTTP Funtion - by Sascha - 14.01.2011, 18:12
Re: Problem with HTTP Funtion - by JaTochNietDan - 14.01.2011, 18:18
Re: Problem with HTTP Funtion - by Sascha - 14.01.2011, 18:38
Re: Problem with HTTP Funtion - by JaTochNietDan - 14.01.2011, 18:45
Re: Problem with HTTP Funtion - by Sascha - 14.01.2011, 20:16
Re: Problem with HTTP Funtion - by JaTochNietDan - 14.01.2011, 21:48

Forum Jump:


Users browsing this thread: 3 Guest(s)