Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [Problem] CronTab
Malvegil100
post 28.03.2009, 13:16:02
Post #1





Grupa: Zarejestrowani
Postów: 40
Pomógł: 1
Dołączył: 15.10.2008

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


Mam problem z CronTab.

Mianowicie wpisuje ścieżke:



php -f /srv/www/vhosts/elenae.na15.pl/httpdocs/game/reset.php



W pliku reset.php jest:



  1. <?php
  2.     require_once("includes/config.php");
  3.     require_once("includes/resets.php");
  4.     smallreset();
  5. ?>



Po wywołaniu skryptu przez webcron nie przetwarza require_once(). Po przykładowym wpisaniu funkcji mail() przed require_once() wysyla e-maila ale po wpisuaniu funkcji mail() po require_once() juz nie wysylalo.

Czy istnieje jakaś inna komenda w CronTab żeby przetwarzało require_once() ?
Go to the top of the page
+Quote Post
phpion
post 28.03.2009, 13:30:37
Post #2





Grupa: Moderatorzy
Postów: 6 072
Pomógł: 861
Dołączył: 10.12.2003
Skąd: Dąbrowa Górnicza




Podaj pełne (bezwzględne) ścieżki do plików czyli np:
  1. <?php
  2. require_once("/twoja/pelna/sciezka/includes/config.php");
  3. ?>


Ten post edytował phpion 28.03.2009, 13:32:48
Go to the top of the page
+Quote Post
Malvegil100
post 28.03.2009, 13:45:08
Post #3





Grupa: Zarejestrowani
Postów: 40
Pomógł: 1
Dołączył: 15.10.2008

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


Dzieki wielkie, pomogło.
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: 25.07.2025 - 09:50