Sandeep590 Posted September 12, 2016 Share Posted September 12, 2016 Hello Everyone, I have a PHP script which displays all the ISBNs one by one in a browser when I execute the script using XAMPP server. For example : 1) 9783993333332 2) 0502388384 3) 6525356723 4) 9787673287827 5) 097923978X ........................ ............ ............ ............ Now , Can anyone help me on how to transfer the output of the PHP script to a text file with the text displayed in it in above format shown as above ? All I need is , to copy the ISBNs to text file using PHP script . Note : All ISBNs should be formatted in a text file in such a way that each ISBN number should starts in next line. Kindly help me on this issue as I would be thankful to you Quote Link to comment https://forums.phpfreaks.com/topic/302167-how-to-transfer-the-contents-from-the-webpage-to-a-text-file/ Share on other sites More sharing options...
Jacques1 Posted September 12, 2016 Share Posted September 12, 2016 Why would you do that? You've just scraped the ISBNs from some text file (while completely ignoring our warnings), now you again store the numbers in a text file? What are you going to do with the ISBNs? Quote Link to comment https://forums.phpfreaks.com/topic/302167-how-to-transfer-the-contents-from-the-webpage-to-a-text-file/#findComment-1537466 Share on other sites More sharing options...
Solution Psycho Posted September 12, 2016 Solution Share Posted September 12, 2016 Here's a tutorial: http://www.tizag.com/phpT/filewrite.php Quote Link to comment https://forums.phpfreaks.com/topic/302167-how-to-transfer-the-contents-from-the-webpage-to-a-text-file/#findComment-1537467 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.