Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]dostep
Cr3dO
post 9.11.2009, 17:57:57
Post #1





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

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


hej wydaje mio sie ze to jakis bug bo na logike to jest.

mam klase a w niej kilka metod, wywoliue jedna i chce aby ona wywolala druga i mam blad ze taka metoda jest niezdefiniowana, a jest smile.gif

  1. function createProject ($name, $autor, $date, $preproductionCatalogs, $productionCatalogs, $postproductionCatalogs) {
  2. include_once('../../settings/toolbox/database.php');
  3. createDirectory($name);
  4. mysql_connect($host, $user, $password);
  5. mysql_select_db($dataBase);
  6. @mysql_query("SET NAMES 'utf8';");
  7. @mysql_query('SET CHARACTER SET utf8;');
  8. $query = "INSERT INTO projectProperties (`label`, `autor`, `date`, `preproductionCatalogs`, `productionCatalogs`, `postproductionCatalogs`) VALUES ('$name', '$autor', '$date', '$preproductionCatalogs', '$productionCatalogs', '$postproductionCatalogs')";
  9. $execute = mysql_query($query);
  10.  
  11. return $execute;
  12. }
  13.  
  14. function createDirectory ($name) {
  15. include_once('../../settings/toolbox/FTP.php');
  16. $ftpConnection = ftp_connect($server, 21);
  17. ftp_login($ftpConnection, $user, $password);
  18. if (@ftp_mkdir($ftpConnection, '/www/'.$name)) {
  19. $success = true;
  20. } else {
  21. $success = false;
  22. }
  23. ftp_close($ftpConnection);
  24. return $success;
  25. }



blad :

Fatal error: Call to undefined function createDirectory() in /home/virtual/film2/www/toolbox/assets/serverside/amfphp/services/toolbox/ToolBoxService.php on line 40

fajne nie?

pozdrawiam

Ten post edytował Cr3dO 9.11.2009, 17:59:51


--------------------
Pesymista widzi ciemny tunel. Optymista widzi światełko w tunelu. Realista widzi światło pociągu. Maszynista widzi trzech debili na torach.
Go to the top of the page
+Quote Post
Cr3dO
post 9.11.2009, 18:05:19
Post #2





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

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


Cytat(MateuszScirka @ 9.11.2009, 18:03:05 ) *
a sprobuj zamienic kolejnosc metod


niestety nic nie pomaga


--------------------
Pesymista widzi ciemny tunel. Optymista widzi światełko w tunelu. Realista widzi światło pociągu. Maszynista widzi trzech debili na torach.
Go to the top of the page
+Quote Post
MateuszS
post 9.11.2009, 18:07:15
Post #3





Grupa: Zarejestrowani
Postów: 1 429
Pomógł: 195
Dołączył: 6.10.2008
Skąd: Kraków/Tomaszów Lubelski

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


$this->createDirectory($name);

Ten post edytował MateuszScirka 9.11.2009, 18:08:01


--------------------
O! Zimniok :P
Go to the top of the page
+Quote Post
Cr3dO
post 9.11.2009, 18:08:56
Post #4





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

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


Cytat(MateuszScirka @ 9.11.2009, 18:07:15 ) *
$this->createDirectory($name);


dziala smile.gif

+

pozdrawiam, eot


--------------------
Pesymista widzi ciemny tunel. Optymista widzi światełko w tunelu. Realista widzi światło pociągu. Maszynista widzi trzech debili na torach.
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 14.07.2025 - 10:04