PDA

View Full Version : Unable to delete pics from an exhibition


TomKa
4th of November 2003 (Tue), 08:14
Hello Pekka,

on the php at my server there is no ftp-module installed, so probably this will cause the following error message when I try to delete a picture from an exhibition in "Photos - copy/move/delete":

Fatal error: Call to undefined function: ftp_connect() in /var/www/web32/html/foto/input/ftpbase.php on line 6

Line 6 in ftpbase.php: $ee_connection = ftp_connect($ftp_server);

Is there a workaround like deleting the picture directly in the MySQL database? Otherwise it can be hidden from public viewing.

Pekka
4th of November 2003 (Tue), 12:52
To suppress that error message:

in ftpbase.php replace line 6

$ee_connection = ftp_connect($ftp_server);

with

if (function_exists("ftp_connect")) {
$ee_connection = ftp_connect($ftp_server);
}