Ok!
Thank you for the answer, so what i wanted to do was to load an external file to i will look into the documentation, i've read the documentation various times but i have no idea what e.g "enum" is. I also have no idea how to use the functions declared in the documentation, it doesn't really shows examples which i think would be good
so thats why i first posted an example of php and then i got that site with various functions written in JS but with same function as PHP.
But i will read the documentation more and try to understand and search more, and if i don't understand something and can't find answers i'll make a new thread.
So thank you
//Zeelia