Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Jak zmienic kody w cURL'a ?
Khan
post
Post #1





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 23.02.2006

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


Witam, na moim serwerze mam wylaczony allow_url_open i dlatego te kody ktore nie dzialaja
musze zmienic na kody cURL'a tylko nie potrafie wykombinowac za pomoca manuala php.net

oto fragment kodu:
  1. <?php
  2. $file = fopen($data['url'], 'r');
  3.        if($file)
  4.        {
  5.            while(!feof($file))
  6.            {
  7.                $buffer = fgets($file, 4096);
  8.              
  9.                if($quote_start && !$quote_end && strstr($buffer, $data['tag_end']))
  10.                    $quote_end = true;
  11.              
  12.                if($quote_start && !$quote_end)
  13.                    $result .= $buffer;
  14.              
  15.                if(!$quote_start && !$quote_end && strstr($buffer, $data['tag_start']))
  16.                    $quote_start = true;
  17.            }
  18.            fclose($file);
  19. ?>

czyli musze zmienic te co nie dzialaja to: fopen(), feof(), fgets(), fclose()

Moze ktos pomoze rozwiazac problem ?
Go to the top of the page
+Quote Post

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.09.2025 - 22:49