Sep 27, 2016 04:31 PM
(This post was last modified: Sep 27, 2016 04:36 PM by imroot.)
Hello everybody!
I am currently facing a little problem with my project I am working on.
I have a php script which looks like this:
I narrowed the problem down to the flushes I have, as the problem does no occur when deleting those flushes - but then I dont get my echos immediatly as I need them.
So the thing is, that any kind of code I am putting below this php script (which is in the middle of my website) is being "deleted" for the time of the code running. After the code finishes the website looks normal again and the HTML content below my script "reappears". Also what I found out is, that my developer tools in chrome are empty when I try to analyze my HTML - it is just blank.
Thank you for your time
I am currently facing a little problem with my project I am working on.
I have a php script which looks like this:
PHP Code
<?php
echo '<li class="list-group-item list-group-item-info">Starting to gather data!</li>';
ob_flush();
flush();
$url = $unsplash;
$cmd = $unsplash . ' - ' . $amount;
exec($cmd);
echo '<li class="list-group-item list-group-item-success">Gathering Data Completed</li>';
ob_end_flush();
I narrowed the problem down to the flushes I have, as the problem does no occur when deleting those flushes - but then I dont get my echos immediatly as I need them.
So the thing is, that any kind of code I am putting below this php script (which is in the middle of my website) is being "deleted" for the time of the code running. After the code finishes the website looks normal again and the HTML content below my script "reappears". Also what I found out is, that my developer tools in chrome are empty when I try to analyze my HTML - it is just blank.
Thank you for your time


