FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
SQL errors from the API
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=161968&th=119170#msg_161968
I'm thinking of moving my site from SMF to fud, in SMF I use an include file "SSI.php" and then fetch stuff from it.
Of what I can figure out using:
require_once '/PATH/forum/GLOBALS.php';
require_once '/PATH_TO_DATA/scripts/fudapi.inc.php';
is the same as require("forum/SSI.php") in SMF
However, as soon as I enter that data I get this:
Citat:
Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /PATH_TO_DATA/include/theme/default/db.inc on line 27
Fatal error: SQL Error has occurred, please contact the administrator of the forum and have them review the forum's SQL query log in /PATH_TO_DATA/include/core.inc on line 201
My forum works fine so the database is running good. What could cause this? I just copied an example from the wiki, but even if I comment out everything except those two lines I still get that error.
Thanks!]]>Slicke2010-02-27T23:16:50-00:00Re: SQL errors from the API
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=161969&th=119170#msg_161969
]]>Slicke2010-02-28T02:35:23-00:00