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…
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…
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…
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…
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…
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….
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…
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”); ?>…
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…
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…
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”); ?>…
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…