I want to make a loop for php. I am loading a php file, and want to echo a loaded variable to flash, so flash can check if the file is loaded or not.
What is the best way to do this?
How should I echo() from php? Then how should I check it in flash?
How should I make my loop? If(loaded eq "true") etc..
Or is there a better way to approach this?
Here is what I am doing..
Loading a check.php
This checks a file to see if it has updated. If it has, it should send out update=true(or is there a better way, such as update=yes, etc)
Then if update eq true, we will load a new file, which will add the new line into the chat(That's what I am making) Then it will change the variable inside the mysql database back to false, until someone else submits a message.
What is the best way to organize this so each one loads, gets everything, then checks, then if it is true, load a new file, and check on it, and then if the first one is false, just reload the first file again and again. Each time this should be reloaded. Because I have had problems with the old variables still being used, and it not reloading the php file.