Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
File() Function alert for updating
Besically, if your host has disabled the PHP file() function, you won't be able to check for updates. You'll get an error like this:
Warning: file() [function.file]: URL file-access is disabled in the server configuration in ---/library/Framework/Framework.Control.UpdateCheck.php on line 49
Warning: file(http://lussumo.com/updatecheck/vanilla.php?Application=Vanilla&Version=1&Language=English) [function.file]: failed to open stream: no suitable wrapper could be found in ---/library/Framework/Framework.Control.UpdateCheck.php on line 49
Warning: implode() [function.implode]: Bad arguments. in ---/library/Framework/Framework.Control.UpdateCheck.php on line 54
In a future Vanilla 1 update could it also have error reporting for that please?
0
This discussion has been closed.
Comments
Also, are you sure that even socket connections won't be limited by the php.ini?
;;;;;;;;;;;;;;;;;; ; Fopen wrappers ; ;;;;;;;;;;;;;;;;;; ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. allow_url_fopen = Off
That applies to the wrapper for fopen/file/file_get_contents/whatever that allows urls to be treated like normal files when reading them, not a setting for actual socket functions. In fact, according to php.net: I'm afraid it's sort of late at the moment so I can't make an example for you myself, but there are plenty online. A simple google search will give you lots of classes and libraries to achieve this type of thing; even that php.net page has a simplistic HTTP client example on it.
$fp = fsockopen("www.example.com", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { $out = "GET / HTTP/1.1\r\n"; $out .= "Host: www.example.com\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); while (!feof($fp)) { echo fgets($fp, 128); } fclose($fp); }
it's very easy to use.
//edit: or, what SirNot said. but i don't like to refresh before posting. i like to live on the edge.
SirNot is talking about something entirely different.
And SirNot: I looked at that page and didn't find any decent examples in the comments below. Maybe I'm daft.
Notice: Undefined index: port in /var/www/...domain.../docs/forum/library/Framework/Framework.Functions.php on line 469
$Port = $ParsedUrl['port'];
and I see nothing wrong with that at first glance, I'll have a run through this in a bit and see if I can hack it into shape.
So, I've dummy proofed it. Get the latest svn and it should work.
Bad Request Your browser sent a request that this server could not understand. Apache/2.0.54 (Debian GNU/Linux) DAV/2 SVN/1.1.4 PHP/4.3.10-16 mod_ssl/2.0.54 OpenSSL/0.9.7e Server at (removed).linode.com Port 80
there.
are you happy now?
ARE YOU @#@#!NG HAPPY NOW?!