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%)
-----


No katalogi itd wszystko co tam jest ma chmod 777. Weź mi lepiej powiedz jak się tego pozbyć:
  1. Warning: Cannot modify header information - headers already sent by (output started at index.php:9)


Robił wszystkie kroki z wiki i dalej mam te błędy, co do put to tak samo nie da się tego pozbyć... Na innym hostingu mi działało normalnie

Jak dam te kody tyam gdzie jest ten błąd pod @ to nic się nie stanie nie? (IMG:style_emoticons/default/winksmiley.jpg)


Aha i przy tworzeniu pliku acc_login.sid nie nadaje mu chmod 777 dlaczego?
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: 9.10.2025 - 16:31