470,849 Members | 1,042 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

Writing source of a page to file

Is there an easy way to do this? Thanks!

I basically just want to write the entire source of a page to a text
file
Jun 27 '08 #1
1 1044
inexion schrieb:
Is there an easy way to do this? Thanks!

I basically just want to write the entire source of a page to a text
file
Yes
FIRST LINE:
ob_start();

LAST LINE:
$x = ob_get_contents();
And now write $x to the file.
Hope, that the code has no ob_start() in it

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by ishekar | last post: by
3 posts views Thread by mlybarger | last post: by
3 posts views Thread by nicolasg | last post: by
19 posts views Thread by rmr531 | last post: by
6 posts views Thread by Jeff | last post: by
6 posts views Thread by L. Ximenes | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.