I am just wondering if anyone can help me create or place this code inside a block.
Quote:
<?php
# ENTER YOUR USERNAME HERE
$username="username";
$offset=$_GET['os'];
# $page is the path for this page
$page=basename($_SERVER['PHP_SELF']);
$url="http://host.phonetext.com/mms.php?domain=$username&os=$offset&page=$page";
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$xml = curl_exec ($ch);
curl_close ($ch);
echo $xml;
?>
Thanks
sting Site Admin
Joined: Jul 24, 2003
Posts: 1985
Location: Apparently ALWAYS Online. . .
Posted:
Mon Aug 20, 2007 1:12 pm
Try taking a block that already exists, copy the block, then rename and modify to suit your purposes...
-sting
_________________ Is it paranoia if they are really out to get you?
-------------------------------------------------------
sting usually hangs out at nukehaven.net
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum