Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]Wyciąganie danych ze stringa, Jaką funkcją??
set4812
post 2.11.2010, 23:17:06
Post #1





Grupa: Zarejestrowani
Postów: 150
Pomógł: 3
Dołączył: 13.04.2010

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


Jaką funkcją mógę wyciagnać dane ze stringa jezeli w stringu mam cos takiego
|348|427244301|FUNiGuys_Bleach_-_294_400p_DL.mkv|68241

|| wartosci miedzy tymi danymi to maja byc np inne zmienne albo w tablicach indeksy inne.
Go to the top of the page
+Quote Post
Wicepsik
post 2.11.2010, 23:19:50
Post #2





Grupa: Zarejestrowani
Postów: 1 575
Pomógł: 299
Dołączył: 26.03.2009

Ostrzeżenie: (20%)
X----


explode


--------------------
Go to the top of the page
+Quote Post
icetab
post 2.11.2010, 23:21:05
Post #3





Grupa: Zarejestrowani
Postów: 226
Pomógł: 3
Dołączył: 3.04.2007

Ostrzeżenie: (50%)
XXX--


explode
Go to the top of the page
+Quote Post
set4812
post 2.11.2010, 23:27:08
Post #4





Grupa: Zarejestrowani
Postów: 150
Pomógł: 3
Dołączył: 13.04.2010

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


  1. <?php
  2. $str = '|348|427244301|FUNiGuys_Bleach_-_294_400p_DL.mkv|68241';
  3. print_r(explode('|', $str,-1));
  4. ?>


68241- pomija ta wartosc jakies pomysły??
Go to the top of the page
+Quote Post
ADeM
post 2.11.2010, 23:30:37
Post #5





Grupa: Zarejestrowani
Postów: 455
Pomógł: 69
Dołączył: 23.10.2004
Skąd: Oświęcim

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


  1. <?php
  2. $str = '|348|427244301|FUNiGuys_Bleach_-_294_400p_DL.mkv|68241';
  3. print_r( explode( '|', $str ) );
  4. ?>


--------------------
Go to the top of the page
+Quote Post
set4812
post 2.11.2010, 23:44:05
Post #6





Grupa: Zarejestrowani
Postów: 150
Pomógł: 3
Dołączył: 13.04.2010

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


  1. <?php
  2. if(!isset($_POST['przycisk'])){
  3. echo '<center> <form action="explode.php" method="post">
  4. <font color="red"><B> Podaj link</B></font><input type="text" name="url" size="30"><br/>
  5. <input type="submit" value="Odkoduj" name="przycisk" ></form> </center>';
  6. }
  7. else{
  8. $str = $_POST['url'];
  9. $str=$str.'|';
  10. $tab=explode('|', $str,-1);
  11. $url='http://rs'.$tab[1].'.rapidshare.com/cgi-bin/rsapi.cgi?sub=download_v1&cookie=13988D3F03056A5122EB32420C848BFCCCCB4A4E6F724D9956820A985CE384DE3F33B
    2669C4D1B253C3E0BD84CD14DC3&editparentlocation=1&fileid='
    .$tab[2].'&filename='.$tab[3].'&bin=1&dlauth=0&wantpremdl=1#!download|rs'.$tab[1].'|'.$tab[2].'|'.$tab[3].'|'.$tab[4].'';
  12. echo $url;}
  13. ?>


Proszę jakby kto chciał to cos podaje link do rs zeby sciagnac bez limitów
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 31.07.2025 - 07:59