Jump to content


Photo

set HTML of external page as Variable


  • Please log in to reply
1 reply to this topic

#1 Pgs

Pgs
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 16 May 2006 - 09:23 PM

Can i set PHP variable to a HTML output of external page (ex. i wanna set $htmlvar on my page as html output of external page eg. www.google.com). ?

#2 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 16 May 2006 - 10:03 PM

$htmlvar = file_get_contents('http://www.google.com');

Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users