Created
April 2, 2016 11:09
-
-
Save hsleonis/b50d39bb0bf09048d88b5722c9bcd21d to your computer and use it in GitHub Desktop.
Replace external url with different website URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $homepage = file_get_contents('http://www.w3schools.com/games/game_canvas.asp'); | |
| $str=str_replace("href=\"", "href=\"http://mysite.com", $homepage ); | |
| echo $str; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment