Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Co to za błąd (file_put_contents)
Morale
post
Post #1





Grupa: Zarejestrowani
Postów: 152
Pomógł: 2
Dołączył: 28.03.2007

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


błąd:
Cytat
Fatal error: Cannot redeclare file_put_contents() (previously declared in /home.14/www/plik.php:290) in /home.14/www/plikphp on line 290
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
webdice
post
Post #2


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




Musisz mieć gdzieś zdeklarowaną funkcje file_get_contents" title="Zobacz w manualu PHP" target="_manual, poza tym masz błąd w tej funkcji, powinno być:
  1. <?php
  2. function file_put_contents1($zone1, $content) {
  3.  $f=fopen($zone1, 'w');
  4.  fwrite($f, $content);
  5.  fclose($f);
  6. }
  7. ?>


Ten post edytował webdicepl 11.08.2007, 12:06: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: 1.10.2025 - 15:21