heres the code that does NOT work -
Expand|Select|Wrap|Line Numbers
- $output = "hello world"; //note not the actual string
- $file = fopen("test.xml", "w") or exit("Unable to open file!");
- fwrite($file, $output);
- fclose($file);
and heres a variation that DOES work -
Expand|Select|Wrap|Line Numbers
- $file = fopen("test.xml", "w") or exit("Unable to open file!");
- fwrite($file, "hello world");
- fclose($file);
For some reason it does not want to let me pass variable in the place of "hello world". I cant seem to identify any reason for this.
Any Help would be greatly appreciated, Thanks