17: PHP Include File
Telegraph
PHP Include File
PHP allows you to include file so that a page content can be reused many times. There are two ways to include file in PHP. include require Advantage Code Reusability: By the help of include and require construct, we can reuse HTML code or PHP script in…
21: PHP Open File
Telegraph
PHP Open File
PHP fopen() function is used to open file or URL and returns resource. The fopen() function accepts two arguments: $filename and $mode. The $filename represents the file to be opended and $mode represents the file mode for example read-only, read-write, write…
25: PHP Delete File
Telegraph
PHP Delete File
In PHP, we can delete any file using unlink() function. The unlink() function accepts one argument only: file name. It is similar to UNIX C unlink() function. PHP unlink() generates E_WARNING level error if file is not deleted. It returns TRUE if file is…
26: PHP File Upload
Telegraph
PHP File Upload
PHP allows you to upload single and multiple files through few lines of code only. PHP file upload features allows you to upload binary and text files both. Moreover, you can have the full control over the file to be uploaded through PHP authentication and…