PHP Magic Book – Free PHP Scripts, Tutorials and Downloads, PHP AtoZ Reloaded, free php tutorials, free php downloads, php scripts, PHP tips

Archive for the ‘ File Manipulation ’ Category

Get File Size and File Type In PHP

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

(more…)

Tags: , ,
Posted in: File, File Manipulation, Info, Tricks
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

PHP – File Append

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

(more…)

Tags:
Posted in: File, File Manipulation
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

PHP – File Delete – Unlink Function

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 unlink a file, you are effectively causing the system to forget about it or delete it! Before you can delete (unlink) a file, you must first be sure that it is not open in your program. Use the fclose function to close down an open file.

(more…)

Tags:
Posted in: File, File Manipulation
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

PHP – File Read

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

(more…)

Tags:
Posted in: File, File Manipulation
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

PHP – File Write

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.

(more…)

Tags:
Posted in: File, File Manipulation
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment



  Subscribe Via RSS
  Subscribe Via Email