by Hiroshi on September 30th, 2008

With this PHP script you can find size and type (extension) of required file.

{ read more }

I have other solutions to find file path at server or file name using PHP. The thing is, some php scripts might not work with some versions of PHP or in some situations. So more methods you learn for each task with PHP, the better. Here goes more solutions; Enjoy! In this example I used [...]

{ read more }

by Hiroshi on June 23rd, 2008

File append means to add on to the existing data, then you need to open the file in append mode.

{ read more }

When you view the contents of a directory you can see all the files that exist in that directory because the operating system or application that you are using displays a list of filenames. You can think of these filenames as links that join the files to the directory you are currently viewing. If you [...]

{ read more }

by Hiroshi on June 23rd, 2008

We have to use the function fopen to open the file for reading. Here’s the code to read-open the file.

{ read more }

by Hiroshi on June 23rd, 2008

Now that you know how to open and close a file, lets get on to the most useful part of file manipulation, writing! There is really only one main function that is used to write and it’s logically called fwrite.

{ read more }

by Hiroshi on June 23rd, 2008

The next logical step after you have opened a file and finished your business with it is to close that file down. You don’t want an open file running around on your server taking up resources.

{ read more }

by Hiroshi on June 23rd, 2008

These three basic ways to open a file have distinct purposes. If you want to get information out of a file, like search an e-book for the occurrences of “cheese”, then you would open the file for read only. If you wanted to write a new file, or overwrite an existing file, then you would [...]

{ read more }

by Hiroshi on June 23rd, 2008

In PHP, a file is created using a command that is also used to open files. In PHP the fopen function is used to open files. However, it can also create a file if it does not find the file specified in the function call. So if you use fopen on a file that does [...]

{ read more }

Single php file based whole file handeling and listing PHP CMS which lets you create file or edit file in a fly. No database required. It stores its data in a file. User authentication system is available in it also. You can create users in it and then after login you can create directory or [...]

{ read more }