PHP:
<?php
$p = $_GET['p'];
$filename="http://www.abc.com/bcd?cde=".$p;
$fp = fopen($filename,"r") or die("cant open file");
$data = fread($fp,4096);
echo $data;
?>
Is this the right way to do things? Of course, there is some manipulations to be done before $data is echoed back. It's working fine in my place and my friend's place. But in college it says "cant open file". Its not a firewall problem as the URL works fine if I enter it in the address bar of the browser. Any help appreciated.