Jump to content

writing php page to a text file?


mr.echo

Recommended Posts

Do you have any starting code?

 

What you are asking for is confusing, but sounds like you want to parse the page and write what you want to a text file. If so then file_get_contents and fopen will be a major help for you to read and understand.

 

Good luck!

Instead of echoing the lines that make up the results, you would concatenate them into a variable and then write that variable to a file. Alternatively, you could use output buffering with the existing code to get the contents into a variable and then write that variable to a file.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.