Re: RES: CURL error help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Miller, Terion wrote:
> 
> 
> On 5/8/09 8:04 AM, "Jônatas Zechim" <zechim.php@xxxxxxxxx> wrote:
> 
> Try to change this:
> 
> curl_setopt($ch,CURLOPT_URL,$targets);
> 
> to:
> 
> curl_setopt($ch,CURLOPT_URL, $target_url);
> 
> Zechim
> zechim.com
> São Paulo/Brazil
> 
> Thanks for the suggestion:
> Tried it and get this error now:
> 
> Warning: file_get_contents($target_url) [function.file-get-contents]: failed to open stream: No such file or directory in /var/www/vhosts/getpublished.news-leader.com/httpdocs/Warrants/inc/dom.php on line 39
> 
> On line #39 from my dom.php file is this :
> // get html dom form file
> function file_get_html() {
>    $dom = new simple_html_dom;
>    $args = func_get_args();
>    $dom->load(call_user_func_array('file_get_contents', $args), true);
>    return $dom;
> }
> 
> I think somehow the array is not being read or it's trying to pass the full array of url's as one url? Therefore saying it does not exist? My best guess, am I making the array wrong?
> 
> 
Look at your function call in your original post:

$html = file_get_html('$target_url');

$target_url is single quoted why?


-- 
Thanks!
-Shawn
http://www.spidean.com

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux