---
title: "Discussion on \"PHP: File Handling\" | Hashnode"
description: "Discussion on \"PHP: File Handling\". File Opening\nWe can perform CRUD operations in files using PHP which is similar to file handling in C-Program. To perform any read or write operation, we have to open the file first:\n$fileName = \"myFile.txt\";\n$handler = fopen($fileName, \"r\");\n\nHere, ..."
url: "https://hashnode.com/posts/php-file-handling/653677ab7501e4bbaeb14fe9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [PHP: File Handling](https://giver-kdk.hashnode.dev/php-file-handling?utm_source=hashnode&utm_medium=feed)

File Opening We can perform CRUD operations in files using PHP which is similar to file handling in C-Program. To perform any read or write operation, we have to open the file first: $fileName = "myFile.txt"; $handler = fopen($fileName, "r"); Here, ...

Oct 23, 2023 · 2 min read · giver-kdk.hashnode.dev  
Read the article

-   [#file-handling](https://hashnode.com/tag/file-handling)
-   [#php](https://hashnode.com/tag/php)
-   [#file-read](https://hashnode.com/tag/file-read)
-   [#file-write](https://hashnode.com/tag/file-write)
-   [#php-file-handling](https://hashnode.com/tag/php-file-handling)

## Written by

[Giver Kdk](https://hashnode.com/@Giver)

@Giver · Kathmandu, Nepal

  
[View profile](https://hashnode.com/@Giver)

Music, Coding and Nature

I am a guy who loves building logic.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
