Last updated on September 21st, 2023 at 08:01 amIn this tutorial I will walk you through the process step by step to Read file line by line This is the first thing we have to do. Let us assume that the file that contains data is oldfile.txt . In order to read this file we […]
Category: PHP (Page 7 of 15)
Learn PHP programming through practical examples and tutorials. This category covers core PHP concepts, form handling, file opera
Last updated on February 22nd, 2022 at 01:19 pmPHP has a built in function memory_get_peak_usage() which help us to find the memory usage by a single php script in bytes. This function returns the peak of memory, in bytes, that’s been allocated to the php script. Here we are providing you a simple php function […]
Last updated on August 8th, 2022 at 10:06 amIn this tutorial we will read the text file from bottom to top using PHP. There is array_reverse function available in PHP we are utilizing that along with the regular file function to read the file. Once each line is read using foreach statement we can assign […]
Last updated on April 8th, 2022 at 11:34 amIt is always a requirement for the web developers to display the date in which their website record / table was last updated or the last date when a user has posted some comments etc., Here I am going to explain how to Find table update using […]