Horje
How to add PHP File Get Content | PHP URL Code
How to add PHP File Get Content

The file_get_contents() function in PHP is an inbuilt function that is used to read a file into a string. The function uses memory mapping techniques that are supported by the server and thus enhance the performance making it a preferred way of reading the contents of a file. The path of the file to be read, which is sent as a parameter to the function and it returns the data read on success and FALSE on failure.


Full Code

index.php
Example: PHP
<!DOCTYPE html>   
<body> 
    <?php 
        // Reading contents from the 
        // geeksforgeeks homepage 
        $homepage = file_get_contents( 
            "https://horje.com/"); 
        echo $homepage; 
    ?> 
</body> 
</html>

Output should be:

Full Code



Read Full::
PHP URL Code
Category:
PHP Tutorial Code
Sub Category:
PHP URL Code
Uploaded:
7 months ago
Uploaded by:
Admin
Views:
1

Related Articles
How to add PHP File Get Content PHP URL Code
How to add PHP cURL CURLOPT PHP URL Code
How to load XML Sitemap URLs PHP URL Code

Single Articles
Full Code

Share on: