* Martin Justra <[EMAIL PROTECTED]>:
> I finally managed to grab the website via curl. Now the problen is that I 
> want to have a small piece of that site. I tried to cut that site by 
> explode. Now the browser hangs. He says "waiting for www.domain.de".... and 
> does nothing.
>
> Here is my listing:
> <?php
> $ch = curl_init();
> curl_setopt($ch, CURLOPT_URL, 
> "https://www.example?benutzer=aaa&passwort=bbb&ic=tracking";);
> curl_setopt($ch, CURLOPT_HEADER, 0);
> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
> $test = curl_exec($ch);
> $teil = explode("<!-- rows -->", $test);
> echo $teil[0];
> curl_close($ch);

Couple of things:
1) I'd close the curl connection before doing your explode
2) I'd check for an error returned by the curl_exec() -- you may have an
error and not even realize it.

-- 
Matthew Weier O'Phinney           | mailto:[EMAIL PROTECTED]
Webmaster and IT Specialist       | http://www.garden.org
National Gardening Association    | http://www.kidsgardening.com
802-863-5251 x156                 | http://nationalgardenmonth.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to