Ok, I have a bit of an odd request for help here, but bare with me.
Ok, I have a PHP script that does a simple loop, and echos something each time:
$x=0
while($x<1){
echo $somevariable;
}
I am aware that it is infinite, but this isn't a problem if you read on...
Ok, this isnt the whole of it.
I am using a program called PriadoBlender, which turns PHP scripts into stand alone executables. When ran the executables are run as a command line program, outputting the data to the command line (so the for loop is processed real time, and doesnt wait for the script to finish)
My problem is that it outputs the data until there is about 40 lines, then cuts out. I want to know:
What the problem could be (is it to do with a memory buffer?)
How it could possibly be remedied?
My current solution for this problem is to open another instance and close it every 30, but that can get really annoying.
For additional information, the script sends get data to a URL and opens the page, parsing the data to see the result, then outputs succeed or FAIL lol.
It needs to be standalone because my colleagues on a forum are so stupid and lazy to install PHP and apache, so I don't want any "just run it under a webserver as a standard script ha ha hee hee" crap 😉
Thanks.