php - Load a html file -
Maybe I did not interpret it very well, I have updated the code to see what I want.
I need to load an external HTML file in that "div external_page ....", the best thing to do is to load the file into the file (external PHP content), tell me What is wrong :)
This is a demo:
(UPDATE)
script language = "javascript" src = "Js /jquery_1.5.2.js"></script> & Lt; Div id = "external_page_content_displayer" & gt; External page content goes here & lt; / Div & gt; & Lt ;! - External PHP content - & gt; & Lt ;? Php srand (float) microgram () * 10005224); $ Rows = file ('ajax / rssatam / rss-at_am' '); $ This_Page_Content = Array ($ rows, "test", "test", "test"); $ This_Page_Content_Rand_Keys = array_rand ($ This_Page_Content, 2); $ It_page_Content_Displayer = $ This_Page_Content [$ This_Page_Content_Rand_Keys [0]]. "\ N"; Echo strip_tags ($ This_Page_Content_Displayer); ? & Gt; & Lt ;! - Load function - & gt; & Lt; Script & gt; Function Load_external_content () {$ ('# external_page_content_displayer') Load ('external_content.php'). Hide (). Feedin (3000); } SetInterval ('Load_external_content ()', 10000); & Lt; / Script & gt;
Regards
You can try with:
$ lines = file ('ajax / rssatom / rss-atom.html');
Comments
Post a Comment