Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> new FTP
Cr3dO
post
Post #1





Grupa: Zarejestrowani
Postów: 154
Pomógł: 0
Dołączył: 13.07.2007
Skąd: łódź

Ostrzeżenie: (0%)
-----


Hej
Przerabiam metody w PHP na 5 - obiektowe.

Mam klase:

  1. <?php
  2. class ServerSideService {
  3.  
  4. function __construct () { // KONSTRUKTOR
  5. include_once('../../settings.php');
  6. $this -> FTPConnection = new ftp;
  7. $this -> FTPConnection -> connect($FTPserver);
  8. $this -> FTPConnection -> login($FTPuser, $FTPpassword);
  9. }
  10.  
  11. function createDirectory ($dir) { // utworzenie biblioteki [ boolean ]
  12. return $this -> FTPConnection -> mkdir($dir);
  13. }
  14. }
  15. ?>


i wywołując metodę: createDirectory z parametrem czy bez dostaje komunikat: Class 'ftp' not found

dlaczego?

Ten post edytował Cr3dO 7.08.2010, 10:21:04
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 18:12