Hopefully this isn't a particular bizarre question, because I am sure other people have come across a similar need, I'm just not sure if there is a suitable answer!
I am modifying a piece of PHP code. Currently it reads a definition file, anduses that file to generate a menu.
The definition file is opened as such:
$f=fopen("filename.def","r") or die("Can't open filename.def");
Now, for the application I am developing, I need to do away with the need to have the separate definition file, so ideally I want to create a string containing what would normally be in the definition file, and use that as the menu defintion information.
Does anyone know of a way to convert a string to a
stream such that this functionality is possible?
Thanks in advance!