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 ? Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.