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!
That code is written a specific file each time a script is run. However, the variable "$type" is never defined within the file to which I've written. I always get blank spots
On the other hand: PHP only compiles once. Meaning: if you write these file-contents to a file stored on your server which then is requested by a browser, it'll work. However, if you create this file on the fly - it won't. Reason: PHP only compiles once.