mr.echo Posted November 12, 2008 Share Posted November 12, 2008 hi guys,i made a fixture page here is the page http://75.126.157.112/~engin/ i want to save this match fixture results to a txt file. results identified and write as "$fikstur",anyone can help? Link to comment https://forums.phpfreaks.com/topic/132443-writing-php-page-to-a-text-file/ Share on other sites More sharing options...
premiso Posted November 12, 2008 Share Posted November 12, 2008 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! Link to comment https://forums.phpfreaks.com/topic/132443-writing-php-page-to-a-text-file/#findComment-688597 Share on other sites More sharing options...
PFMaBiSmAd Posted November 12, 2008 Share Posted November 12, 2008 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. Link to comment https://forums.phpfreaks.com/topic/132443-writing-php-page-to-a-text-file/#findComment-688649 Share on other sites More sharing options...
mr.echo Posted November 12, 2008 Author Share Posted November 12, 2008 i have a variable as $fikstur and it includes all fixture algorithm,i tried to write it to txt but i couldn't make it good,it also includes html codes such as <br>,it is a mess Link to comment https://forums.phpfreaks.com/topic/132443-writing-php-page-to-a-text-file/#findComment-688687 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.