Hi All,
I'm trying to create a script to extract the variables from a file on the same server.
The problem is, I don't know what else is going to be in the file all of the time (the script is for other people to use), so I don't really want to load all of the contents or execute any of the code.
I've thought of using file_get_contents rather than anything like require or include, but I'm stuck... is there a way to parse all of the variables within the string? Alternatively, is there a "safe" way to include files?
Many thanks, James