![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 9 Pomógł: 0 Dołączył: 10.03.2013 Ostrzeżenie: (20%) ![]() ![]() |
Ehh nie wiem jak do tego podejsc zabardzo i wedlug mnie zrobilem wszystko wedlug wzoru tak jak powinno byc (IMG:style_emoticons/default/snitch.gif)
Kod $result = curl_exec($curl); $html = str_get_html($result); $ret = $html->find('input[name=ukrytawartosc]'); kod przedstawia sie mniej wiecej tak... Kod $curl = curl_init(); curl_setopt($curl, dalsza czesc kodu) $result = curl_exec($curl); $html = str_get_html($result); $ret = $html->find('input[name=ukrytawartosc]'); curl_setopt($curl, dalsza czesc kodu) curl_close($curl); i wywala blad w tej linijce (IMG:style_emoticons/default/snitch.gif) Kod $html = str_get_html($result); jakas rada? zalezy mi na ukrytawartosc = nazwa ukrytej wartosci (IMG:style_emoticons/default/tongue.gif) musi byc pobrana i taki sposób obrałem, innego nie znam. chodzi o pobranie takiej wartosci <input type="hidden" value="123" name="ukrytawartosc"> (IMG:style_emoticons/default/tongue.gif) Ten post edytował wamxx0 1.04.2013, 16:15:15 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 103 Pomógł: 17 Dołączył: 15.12.2012 Ostrzeżenie: (0%) ![]() ![]() |
jeśli chodzi o o pobranie tego co jest w wartości to masz masę funkcji do tego. Najpopularniejsze to:
- operacja na ciągach np strstr - wyrażenia regularne np preg_replace - gotowy parser http://simplehtmldom.sourceforge.net/ -polecam. a co dalej zrobisz z id sesji to zależy od ciebie |
|
|
![]() ![]() |
![]() |
Aktualny czas: 7.10.2025 - 07:19 |