PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I understand that PHP does not support multi-threading. However, this is what I would like to do and maybe there is a solution.
I currently have a script that calls a function I wrote 10 times with different criteria. As it stands, it goes down the line.. finishing one, going to the next, etc. Is there anyway I can have it call the 10 functions concurrently... without having to execute 10 different files.
Not in complete syncronisation like threading no. You can fork new processes with pcntl_fork(), or you can use fsockopen() to spawn new processes over HTTP. PHP isn't the right language for anything that needs syncronized events.