andre Posted October 26, 2010 Report Share Posted October 26, 2010 ir skripts, kas izdod Warning: fopen(http://www.volvoklubs.lv/e107_plugins/forum/forum_viewtopic.php?251696586 ) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in functions.php on line 50 nevar atveert failu - http://www.volvoklubs.lv/e107_plugins/forum/forum_viewtopic.php?251696586 citus linkus mieriigi ver, a sho negrib :( function get_template3($filename) { if (!$handle = fopen($filename, 'rb')) { }else{ while (!feof($handle)) { $contents .= fread($handle, 8192); } fclose($handle); } return $contents; } Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted October 26, 2010 Report Share Posted October 26, 2010 volvoklubs saka, ka lapa neeksistē... HTTP request failed! HTTP/1.1 404 Not Found varbūt pēdiņu vaina... vai arī foruma skripts atseko, ja nav padoti pārlūkam raksturīgie headeri... Quote Link to comment Share on other sites More sharing options...
andre Posted October 26, 2010 Author Report Share Posted October 26, 2010 volvoklubs saka, ka lapa neeksistē... HTTP request failed! HTTP/1.1 404 Not Found varbūt pēdiņu vaina... vai arī foruma skripts atseko, ja nav padoti pārlūkam raksturīgie headeri... kaa var tos raksturiigos headerus padot ? un kas ir raksturiigie ? Quote Link to comment Share on other sites More sharing options...
andre Posted November 4, 2010 Author Report Share Posted November 4, 2010 atbildeesu pats ja neviens nevareeja paliidzeet. vajadzeeja lietot curl: $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, "RSS Feed fetcher"); curl_setopt($ch, CURLOPT_TIMEOUT, 15); curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); curl_setopt($ch, CURLOPT_URL, $filename); $contents = curl_exec($ch); if(curl_errno($ch)) die( curl_error($ch) ); echo $contents; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.