Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Dziwne Błędy
Matimor
post
Post #1





Grupa: Zarejestrowani
Postów: 287
Pomógł: 10
Dołączył: 22.08.2009

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


Mam takie błędy (niżej). Nie wiem o co chodzi na innym hostingu mi nawet błędu nie pokazało, a tutaj mi ich mase pokazuje, że nie ma pliku itp duperele.

  1. touch("data/".$acc_login.".sid");
  2. file_put_contents("data/".$acc_login.".sid", $NS.".".time());
  3. setcookie("session_id", $NS);
  4. setcookie("acc_login", $acc_login);
  5. header("Location: index.php");
  6. $chmod = "data/".$acc_login.".sid";
  7. chmod($chmod, 777);



Błędy
  1.  
  2. Warning: touch() [function.touch]: Unable to create file <a href="http://www.domena.pl/file/Test_Test.sid" target="_blank">http://www.domena.pl/file/Test_Test.sid</a> because No such file or directory
  3.  
  4. Warning: file_put_contents(file/Test_Test.sid) [function.file-put-contents]: failed to open stream: Permission denied
  5.  
  6. Warning: Cannot modify header information - headers already sent by (output started at index.php:9)
  7.  
  8. Warning: Cannot modify header information - headers already sent by (output started at index.php:9)
  9.  
  10. Warning: Cannot modify header information - headers already sent by (output started at index.php:9)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Matimor
post
Post #2





Grupa: Zarejestrowani
Postów: 287
Pomógł: 10
Dołączył: 22.08.2009

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


Tego błędu NIE DA się pozbyć, robiłem to całą noc i bez efektu.

Folder ma chmod 777
Skrypt ma prawo do zapisu

Nie wiem o co chodzi ale na innym hostingu www działa mi TEN SAM skrypt bez błędnie, może na serwerze www jest coś nie zainstalowane? Dajcie mi dane co mam zainstalować bo administracja sama nie wie dlaczego to nie działa. Serwer VPS jak by co.


Aha i tam pisze, że plik nie istnieje, skoro istnieje w danym katalogu.

Ten post edytował Matimor 20.09.2009, 08:13:02
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: 15.10.2025 - 05:29