euphoric Posted October 7, 2009 Report Share Posted October 7, 2009 Tāda lieta : Ir web lapa , tās saturā kkur izvadās kaut kādi skaitļi (kā piemērs). Šos skaitļus gribētu pārvietot uz savas mājas lapas saturu. Tb. Tur nomainas, man automātiski arī. Kaut kad sen biju uzmurgois tadu scriptu : $handle = fopen("http://some-site.lv", "r"); $contents = ''; while (!feof($handle)) { $contents .= fread($handle, 8192); } fclose($handle); Tad no $contents ar 'strpos', griezu ara $sakums, $beigas. Utt.. Man šķiet tāds neparasts risinājums varbūt ir kkādi citi veidi ? Paldies : ) Quote Link to comment Share on other sites More sharing options...
direktorss Posted October 11, 2009 Report Share Posted October 11, 2009 ?????????????????????????????????????? Quote Link to comment Share on other sites More sharing options...
waplet Posted October 11, 2009 Report Share Posted October 11, 2009 Direktor ko tu tur floodo visur? Varbūt var ar explode kko izdarīt? Quote Link to comment Share on other sites More sharing options...
marcis Posted October 11, 2009 Report Share Posted October 11, 2009 SimpleXML vai DOM, ja man ir izdevies uzminēt problēmu. P.S. Visa tā tava ielasīšanas koda vietā mierīgi var lietot file_get_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.