Thursday, 28 June 2018

File Read Operation in PHP





<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Read Operation</title>

</head>



<body>



<?php

$fiepath="Resources/salman.txt";

$handle=fopen($fiepath,"r");

$content=fread($handle,filesize($fiepath));

echo "<h1>".$content." </h1>";

fclose($handle);

?>







</body>

</html>

No comments:

Post a Comment

Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC

Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...