Przerabiam metody w PHP na 5 - obiektowe.
Mam klase:
<?php class ServerSideService { function __construct () { // KONSTRUKTOR include_once('../../settings.php'); $this -> FTPConnection = new ftp; $this -> FTPConnection -> connect($FTPserver); $this -> FTPConnection -> login($FTPuser, $FTPpassword); } function createDirectory ($dir) { // utworzenie biblioteki [ boolean ] } } ?>
i wywołując metodę: createDirectory z parametrem czy bez dostaje komunikat: Class 'ftp' not found
dlaczego?