href & php
Posted: Mon Mar 07, 2011 8:34 am
Hi,
I have a php file index.php that does a request to an add server as follows:
<?php
$BSMRT="75B1BE1F-C62B-2C35-3E48-D7B4D4FA5B97";
$ENDPOINT="http://www.addserver.net/ad_server/request";
$url="$ENDPOINT?adsiid=$BSMRT&mrkup=xhtml";
$adcode=file_get_contents($url);
?>
<?=$adcode ?>
This works on a normal server with php but the server this has to pass through has a "bot proxy". What I need to do is when the user clicks on the addserver image that it opens up in a new web page similar to onclick...
I must use <a href=" .... "></a> for the server to accept the code.
How do I put $adcode in the <a href syntax?
I've been trying this for days now and any help would be much appreciated.
Thanx in advance
I have a php file index.php that does a request to an add server as follows:
<?php
$BSMRT="75B1BE1F-C62B-2C35-3E48-D7B4D4FA5B97";
$ENDPOINT="http://www.addserver.net/ad_server/request";
$url="$ENDPOINT?adsiid=$BSMRT&mrkup=xhtml";
$adcode=file_get_contents($url);
?>
<?=$adcode ?>
This works on a normal server with php but the server this has to pass through has a "bot proxy". What I need to do is when the user clicks on the addserver image that it opens up in a new web page similar to onclick...
I must use <a href=" .... "></a> for the server to accept the code.
How do I put $adcode in the <a href syntax?
I've been trying this for days now and any help would be much appreciated.
Thanx in advance