Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16
Like Tree5Likes

Thread: How to connect to a URL in PHP?

  1. #11
    Junior Member
    Join Date
    Feb 2017
    Location
    Belper
    Posts
    1
    Member #
    56182
    Liked
    1 times
    The php command file_get_contents will get the HTML contents of a web page
    from the php manual

    <?php
    $homepage = file_get_contents('http://www.example.com/');
    echo $homepage;
    ?>
    apptunix1 likes this.

  2.  

  3. #12
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,852
    Member #
    5580
    Liked
    728 times
    Not all shared webhosts, like the one I use, will allow file_get_contents .... thus the need for CURL.
    apptunix1 likes this.


  4. #13
    Member
    Join Date
    Feb 2017
    Location
    India
    Posts
    33
    Member #
    56118
    Liked
    2 times
    Thanks to all of you for giving me a useful information regarding to curl . I really appreciate your effort. if any one have more information regarding to this topic please suggest me.


    Thanks with Sharing us
    Last edited by apptunix1; Mar 03rd, 2017 at 05:28 AM.

  5. #14
    Junior Member
    Join Date
    Jun 2017
    Posts
    2
    Member #
    56786
    Check out this static website for an instance FamousAstrologer.co
    Last edited by mlseim; Jun 15th, 2017 at 07:04 AM.

  6. #15
    Junior Member
    Join Date
    Mar 2018
    Location
    Santa Clara, California, USA
    Posts
    7
    Member #
    58555
    URLs can only be sent over the Internet using the ASCII character-set. If a URL contains characters outside the ASCII set, the URL has to be converted.
    URL encoding converts non-ASCII characters into a format that can be transmitted over the Internet
    URL encoding replaces non-ASCII characters with a "%" followed by hexadecimal digits.
    URLs cannot contain spaces. URL encoding normally replaces a space with a plus (+) sign, or %20.

    HTML 101: <a href="http://www.website.com/page.html">Click here</a>"

  7. #16
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,852
    Member #
    5580
    Liked
    728 times
    Daniel,
    You're answering thread from Feb 2017.
    This is an old thread.
    And once again, you're posting only to display your link to Techtiq Solutions.
    Can you quit advertising? We don't care about Techiq Solutions.



Page 2 of 2 FirstFirst 1 2

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:37 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com