Category: PHP (Page 9 of 15)

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

How to view edit and save text file using PHP

Last updated on May 7th, 2025 at 09:05 amManaging text files directly through a web interface can be incredibly useful for content updates, configuration changes, or simple data management tasks. With PHP, you can create a straightforward interface to view, edit, and save text files without needing FTP access or backend tools. Prerequisites Before proceeding, […]

How to Generate an Image and Add Text Using PHP

Last updated on May 7th, 2025 at 08:04 amCreating dynamic images with custom text can enhance user engagement on your website. PHP’s GD library provides a straightforward way to generate images and overlay text. Prerequisites Before diving in, ensure the following: Step-by-Step Guide Here’s a simple PHP script that creates a 400×200 red image and […]

How to use pear in PHP to connect to MySQL

Last updated on November 11th, 2024 at 02:31 pmPEAR stands for PHP Extension and Application Repository. This PHP script uses the PEAR DB library to connect to a MySQL database, execute a query, and retrieve results. Create a Database of your choice and run these sql queries in the database. Now our PHP file for […]

How to find size of a directory using php

Last updated on May 7th, 2025 at 07:54 amIn this tutorial we are going to find the size of each files within a folder and then display the total size of folder or directory. We are using 4 inbuilt functions for this Very first step is to provide the path of the directory you would […]

« Older posts Newer posts »