FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » install.php does nothing
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: install.php does nothing [message #13277 is a reply to message #13276] Sat, 27 September 2003 05:24 Go to previous messageGo to previous message
kala123 is currently offline  kala123   China
Messages: 31
Registered: September 2003
Karma:
Member
i have tried serveral time to modify the below script ,
i removed ! from "if( !($fs = fsockopen($url_data['host'], $url_data['port']" ,so it can go to else,but i got this:
Warning: Supplied argument is not a valid File-Handle resource in /z1/kevin8e/public_html/forum/install.php on line 482

so i remove all portion of if ,but it cannot work.

here is :
if( !($fs = fsockopen($url_data['host'], $url_data['port'], $errno, $errstr, 10)) ) {
echo "<br>\nWARNING: Couldn't connect to ".$url_data['host']." on port ".$url_data['port']."<br>\nSocket Error #: $errno<br>Socket Error Reason: $errstr<br>\n";
@unlink($SERVER_ROOT.'WWW_ROOT_CHECK');
}
else {
fwrite($fs, "GET ".$url_data['path']."WWW_ROOT_CHECK HTTP/1.0\r\nHost: ".$url_data['host']."\r\n\r\n");
if( function_exists("socket_set_timeout") ) @socket_set_timeout($fs, 10);
$ret_code = fgets($fs, 1024);
fclose($fs);
@unlink($SERVER_ROOT.'WWW_ROOT_CHECK');

if( !strstr($ret_code, "200") )
seterr('WWW_ROOT', 'Your WWW_ROOT does not correspond with the SERVER_ROOT path you have specified. (unable to retrive: '.$WWW_ROOT.'WWW_ROOT_CHECK, on disk as: '.$SERVER_ROOT.'WWW_ROOT_CHECK, received: '.$ret_code);
}
what should i uncommented?

BTW,I have the same problem on my PC,but the third time i installed successfully.
thank U!

[Updated on: Sat, 27 September 2003 05:25]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: private messaging in 2.3.8
Next Topic: cache/.htaccess for write
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 21:00:07 GMT 2024

Total time taken to generate the page: 0.03823 seconds