Hello all! I have a problem. First, the Gallery stands with me already a few months thanks to your help! If all excellent one functions. Now I would like to insert the Mod (ssi.php v1.4) which one can see in another seite the pictures inserted last. Have done everything after instruction. And thinks which I have given wrong absolute path. So, this error message comes with me:
Coppermine critical error:
Unable to connect to database !
MySQL said: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
This is an example of the usage of ssi.php
This is how to ouput a table containing the thumbnails linking to the most recent pics:
Fatal error: Call to undefined function: cpg_thumb() in /homepages/18/d74591556/htdocs/coppermain-gallery/example.php on line 41
In ssi.php I have the other stand:
/////////////////// edit the following lines //////////////////////////////
$url_of_cpg_dir='
http://www.taboschar.net/coppermain-gallery/'; // full path to your coppermine gallery (with trailing slash)
$absolute_path_to_coppermine= '/coppermain-gallery/'; // absolute path on your server to coppermine gallery (with trailing slash)
// to find more about absolute paths, check
http://www.php.net/manual/en/function.phpinfo.php and look for 'DOCUMENT_ROOT' in your phpinfo.php
$cpg_decimal_point=","; //what character is used to separate decimals in your country, e.g. in Germany ",", in GB "."
$cpg_thousands_separator="."; //what character is used to separate thousands in your country, e.g. in Germany ".", in GB & US ",", in France " "
$cpg_lang_pics = "Фото"; //translate this
$cpg_lang_views = "посмотреть"; //translate this
$cpg_lang_random = "Последние добавления"; //translate this
$cpg_lang_keywords = "Keywords"; //translate this
/////// don't edit below this line unless you know what your're doing /////////
include_once( $absolute_path_to_coppermine.'/include/config.inc.php');
and in exsample.php:
<? include_once("
http://www.taboschar.net/coppermain-gallery/ssi.php"); ?>
<!-- edit above line to match the absolute path to ssi.php on your server -->
What is wrong and where now? Please, helps me!!!