Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]Jak otworzyc plik bez rozszerzenia?
lucas131
post
Post #1





Grupa: Zarejestrowani
Postów: 30
Pomógł: 0
Dołączył: 21.03.2005

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


Probowalem file fopen czy file_get_contents i nic nie dziala.
Zwraca mi error
Kod
failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in

Co robic?
Plik ma chmod 777 jak i folder

Ten post edytował lucas131 15.08.2007, 02:44:04
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
strife
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 605
Pomógł: 96
Dołączył: 22.10.2004
Skąd: UK

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


Raczej chodziło mi o kod z:

Cytat
Probowalem file fopen czy file_get_contents i nic nie dziala.


  1. <?php
  2. file_exists("http://xx.com/cgi-bin/atx/d/t/history.dat");
  3. if (file_exists($file) == false) 
  4. die ('Plik nie istnieje!');
  5. ?>


Spróbuj bez ścieżki bezwzględnej. I używaj klamer do instrukcji wtedy kod będzie bardziej czytelny : )

Ten post edytował strife 15.08.2007, 02:50:37
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 - 01:03