What is Atom?
get output in .html file
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > PHP web-programming > get output in .html file 24 June 2009 12:17:45

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

get output in .html file

Martin 18 December 2003 06:18:49
 Does somebody know how to get the output of an .php file into an .html file
(server side). This in order to cache generated pages for futur visitors.

thanks

Martin

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Add comment
Shawn McKenzie 18 December 2003 09:14:58 permanent link ]
 Buffer output and then write it to a file. I do it all the time.

ob_start();

//output some stuff here

$content = ob_get_contents();
ob_end_flush();

if ($handle = fopen("yourfile.htm­l", "w")) {
fwrite($handle, $content);
fclose($handle);
}

-Shawn

"Martin" <maus@wanadoo.fr> wrote in message
news:20031218031849­.73819.qmail@pb1.pai­r.com...> Does somebody know how to get the output of an .php file into an .html
file> (server side). This in order to cache generated pages for futur visitors.>
thanks>
Martin

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


Add comment
bharath 30 June 2008 04:41:43 permanent link ]
 how to i get input as a output in html
Add comment
Guest 24 June 2009 12:17:45 permanent link ]
 how to get result of php file....
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > PHP web-programming > get output in .html file 24 June 2009 12:17:45

see also:
Subroutine interaction
the same script, the final step, and…
pass tests:
see also:

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .