On install on systems with older versions of php, there is a bug with fgets, and that it requires a length param.
Attempting to setup Database...
Warning: Wrong parameter count for fgets() in /home/web/blog.paupau.org/htdocs/serendipity_admin_installer.inc.php on line 142
fix :
in serendipity_admin_installer.inc.php
on line 141 $line = trim(fgets($fp));
this should be $line = trim(fgets($fp, '4096'));
This will fix the problem.
fgets
-
- Regular
- Posts: 5
- Joined: Fri Jul 25, 2003 7:42 pm
As for the fgets() problem, I can assume that you are using php 4.1 or earlier. As of php version 4.2, the length argument to fgets is now optional.
string fgets ( resource handle [, int length])
That is the current function spec for php 4.3. If you put a length in it will work. Or you can upgrade to php 4.2 or later.
string fgets ( resource handle [, int length])
That is the current function spec for php 4.3. If you put a length in it will work. Or you can upgrade to php 4.2 or later.
-
- Regular
- Posts: 5
- Joined: Fri Jul 25, 2003 7:42 pm