Hi Kapil,
I am having an issue with a PHP site that i am building. I know this is a bit offtrack but i will really appreciate it if anyone could suggest a solution.
I have a php script which is generating some dynamic content. The file also contains other php scripts. I want to store the content generated by the php script in a string rather than outputting it to the browser window.
I would want to know why you want to do this. There are better ways to cache content.
If you don't want to display content if a particular script fails, than you should use output buffering. Refer the PHP manual. It's invaluable.
Since you are still building a site, I suggest you have a look at this link. It's a recent article that I wrote, perhaps it may be of some help to you. http://www-106.ibm.com/developerworks/web/library/wa-phprock1/index.html
And if you still want content in a variable, lets talk off-the-list. :)
With warm wishes,
Amol Hatwar.