PHP include w/o echo -


I am coding a web site and I have a php function called site_nav.fpp which is the first $ list array Defines it present in a Jason form.

In this way, I can get my web site map with Ajax.

My problem is that, I want to get $ list object Php, without echoing the Jason object.

My question: Is there a way to include my PHP file without activating an echo call in it?

Thanks a lot!

Yes, just use the output buffering and see the documentation.

  ob_start (); ("File.php"); Ob_end_clean ();  

Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

sql server - SQL Query - Delete duplicates if more than 3 dups? -

c# 3.0 - Issue with getting 2 chars from string using indexer -