Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Błędy Deprecated
yank5532
post
Post #1





Grupa: Zarejestrowani
Postów: 29
Pomógł: 0
Dołączył: 23.12.2014

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


Witam!

Mam problem robilem wyszukiwarke na aby wyszukiwala mi w pliku tekstowym
i wyskakuja mi bledy:

  1. Deprecated: Function split() is deprecated in /home/u687011385/public_html/torrent-magnet/wyszukiwarka.php on line 9
  2.  
  3. Deprecated: Function eregi() is deprecated in /home/u687011385/public_html/torrent-magnet/wyszukiwarka.php on line 10
  4.  
  5. Warning: eregi() expects parameter 2 to be string, array given in /home/u687011385/public_html/torrent-magnet/wyszukiwarka.php on line 10
  6. Home
  7.  
  8. Deprecated: Function split() is deprecated in /home/u687011385/public_html/torrent-magnet/wyszukiwarka.php on line 9
  9.  
  10. Deprecated: Function eregi() is deprecated in /home/u687011385/public_html/torrent-magnet/wyszukiwarka.php on line 10
  11.  
  12. Warning: eregi() expects parameter 2 to be string, array given in /home/u687011385/public_html/torrent-magnet/wyszukiwarka.php on line 10
  13.  
  14. Deprecated: Function split() is deprecated in /home/u687011385/public_html/torrent-magnet/wyszukiwarka.php on line 9
  15.  
  16. Deprecated: Function eregi() is deprecated in /home/u687011385/public_html/torrent-magnet/wyszukiwarka.php on line 10
  17.  
  18. Warning: eregi() expects parameter 2 to be string, array given in /home/u687011385/public_html/torrent-magnet/wyszukiwarka.php on line 10
  19.  
  20. Deprecated: Function split() is deprecated in /home/u687011385/public_html/torrent-magnet/wyszukiwarka.php on line 9
  21.  
  22. Deprecated: Function eregi() is deprecated in /home/u687011385/public_html/torrent-magnet/wyszukiwarka.php on line 10
  23.  
  24. Warning: eregi() expects parameter 2 to be string, array given in /home/u687011385/public_html/torrent-magnet/wyszukiwarka.php on line 10


moj plik php:

  1. <?php
  2. $wyszukiwarka = $_POST['wyszukiwarka'];
  3. //warunek: jeżeli zmienna nie jest pusta
  4. if($wyszukiwarka!=""){
  5. echo "<ul>";
  6. $dane = file("dane.txt");
  7. for($index=0; $index < count($dane); $index++){
  8. $g = split(" | ", chop($dane[$index]));
  9. $eregi = eregi($wyszukiwarka, $dane);
  10. if(@eregi($wyszukiwarka, $dane[$index])){
  11. echo '<li><a href="'.$g[0].'" title="'.$g[1].'">'.$g[1]."</a></li>";
  12. $bl = true;
  13. }
  14. }
  15. echo "</ul>";
  16. }
  17. //w przypadku braku wyników
  18. if(!$bl){
  19. echo 'Brak wyników';
  20. }
  21. ?>


prosze o pomoc (ps. i przepraszam ze jak pisze nie dodaje polskich znakow poniewaz cos przycisk "Alt" mi nie dziala)
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: 3.10.2025 - 17:25