Category: PHP (Page 7 of 15)

Learn PHP programming through practical examples and tutorials. This category covers core PHP concepts, form handling, file opera

How to replace string in file using PHP

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 […]

How to check PHP Script memory utilization

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 […]

How to read text file reverse using php

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 […]

How to find when table was last updated using PHP MySQL

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 […]

« Older posts Newer posts »