Category: PHP Tutorials

Learn PHP for website development.

PHP Error Types

Types of Errors in PHP An error is a unwanted result of program. Error is a type of mistake. An error can also be defined…

Continue Reading PHP Error Types

PHP code for image upload and display

PHP File upload Example In this php tutorial example we do upload image using file upload and display image on same page in img control…

Continue Reading PHP code for image upload and display

PHP Create custom fileupload with submit button

PHP Custom File Upload using Submit Button We already know what is fileupload in our previous php tutorial and how to upload image on server…

Continue Reading PHP Create custom fileupload with submit button

PHP empty() function – Check variable is empty or not

PHP empty() Function The empty() function is used to check whether a variable empty or not. empty  function syntax empty(“variable”); The empty() function returns true…

Continue Reading PHP empty() function – Check variable is empty or not

PHP isset() – Check If Variable Is Set

PHP isset() function PHP isset() function is used to check if a variable has been set or not. This can be useful to check the…

Continue Reading PHP isset() – Check If Variable Is Set

PHP Rename image while image uploading

Change image name while image uploading In php we use file upload for uploading text file, image file and any document to our web application….

Continue Reading PHP Rename image while image uploading

PHP Upload only image using file upload

PHP upload only images In this php file upload tutorial we will learn to make restriction to upload image as per our requirement. Here, we…

Continue Reading PHP Upload only image using file upload

PHP opendir() Function – Open Directory

Open Directory in PHP – opendir() Function The opendir() function is used to open files from directory. opendir() function syntax <?php $dir = opendir(“directory_name”); ?>…

Continue Reading PHP opendir() Function – Open Directory

PHP readdir Function – Read Directory

PHP readdir() directory function Read files from directory in PHP. The readdir() function is used to read files from directory in PHP. readdir() function syntax…

Continue Reading PHP readdir Function – Read Directory

PHP rmdir() Function – Remove Directory

PHP rmdir() Function Remove Directory in PHP The rmdir() function is used to remove a directory from computer system. rmdir() function syntax <?php rmdir(“directory_name”); ?> rmdir() function Example…

Continue Reading PHP rmdir() Function – Remove Directory

PHP mkdir() function – Create Directory

PHP mkdir() Function Create Directory in PHP The mkdir() function is used to create a new directory in computer. mkdir() function syntax <?php mkdir(“directory_name”); ?>…

Continue Reading PHP mkdir() function – Create Directory

PHP Directory functions

PHP Directory Functions We all know what is directory in computer system. we can also known as folder in commuter system. Here, in this php…

Continue Reading PHP Directory functions