benphelps Posted October 24, 2008 Share Posted October 24, 2008 I have a php file i would like loaded into a div. The php file has an infinite loop in it and i would like anything it echos out to load into the div. Can this be done with ajax ? Link to comment https://forums.phpfreaks.com/topic/130011-continuously-load-a-php-file-into-a-div-or-other-html-tag/ Share on other sites More sharing options...
F1Fan Posted October 24, 2008 Share Posted October 24, 2008 It wouldn't work how you are thinking. AJAX loads PHP-generated data through JS, but only once the PHP is done loading. If your PHP has an infinite loop, it won't ever finish loading, and therefore won't load into your div. Link to comment https://forums.phpfreaks.com/topic/130011-continuously-load-a-php-file-into-a-div-or-other-html-tag/#findComment-674071 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.