How to integrate Python with PHP? |
(01-19-2020, 05:08 AM)jreklund Wrote: The only way I know are to read the content of the file. Append your new data at the beginning and saving it again. Anything done with fwrite from the beginning has the problem with overwriting any text that is ahead so appending from the end as "a" does, avoids that overwriting. I would like to know how to "reverse it after it has been read". But I'm not sure if you & I are thinking of the same function. It is the last message that I want at the top, not end at the beginning. I should get the last message at the top by using fseek & fwrite but the overwriting makes that impossible. Apparently backspace \b works in other languages & I assume includes Python, but it doesn't work in PHP. Backspace \b is similar to Newline \n. |
Messages In This Thread |
How to integrate Python with PHP? - by christaliise - 01-18-2020, 06:13 AM
RE: How to integrate Python with PHP? - by jreklund - 01-18-2020, 03:43 PM
RE: How to integrate Python with PHP? - by christaliise - 01-18-2020, 06:22 PM
RE: How to integrate Python with PHP? - by jreklund - 01-19-2020, 05:08 AM
RE: How to integrate Python with PHP? - by christaliise - 01-19-2020, 08:05 AM
RE: How to integrate Python with PHP? - by eggbert - 01-19-2020, 08:31 AM
RE: How to integrate Python with PHP? - by christaliise - 01-19-2020, 10:03 AM
RE: How to integrate Python with PHP? - by eggbert - 01-19-2020, 01:12 PM
RE: How to integrate Python with PHP? - by includebeer - 01-20-2020, 04:23 AM
RE: How to integrate Python with PHP? - by jreklund - 01-19-2020, 11:49 AM
|