How to Translate a URL into its file (string) of HTML code?

1 view
Skip to first unread message

PHPBABY3

unread,
Oct 31, 2009, 2:31:52 PM10/31/09
to PHP Hacks

I use Snoopy but want to know if I can do it with a little PHP code.

Thanks.

P.

Ahmad Saleh

unread,
Nov 13, 2009, 5:46:53 AM11/13/09
to php-...@googlegroups.com

Rune Kaagaard

unread,
Nov 13, 2009, 5:58:22 AM11/13/09
to php-...@googlegroups.com
Is this what you mean? It echos the HTML of a http address.

<?php
echo file_get_contents('http://example.com');
Reply all
Reply to author
Forward
0 new messages