Diego, if I understand right: what you call a script is one php file. Includes or requires (and their functions) are thus treated as if they were in the same file, and that is where it is possible to have global scope for variables in one single script.
But as soon as you call another php page for form action or a hyperlink, or even call the same page again (which is what I am doing), the script ends, and all variable values are lost. Unless you send it in the URL or using the post method in a form for example. But there is no way to do this for arrays... (please tell me if I didn't understand right)
I see... Are there any solutions to this, other than writing a file? It seems you can send array values between scripts from a "select multiple " form elements? How about sessions? Can values be shared between several script (or several calls of the same script?)
Over to you... thanks.