-
Parse a webpage
Hi,
How could I parse a webpage so that i can replace a specific piece of code (ad tag) with my own code, and then display this modified page?
Greetz
-
-
$content = file_get_contents("mypage.html");
$content = str_replace("a", "b", $content);
However, what do you want to achieve actually? maybe you'd try SSI if you want to add heders and footers.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks