Mysql link issue…
Hi,
I have a column in my database to store a url, but the url is not quite the standard url, it’s in a form such as this:
Code:
$f = fopen('http://reunitemysite.com/scripts/amp/show.php?z=1&incl=1&ip='.getenv('REMOTE_ADDR').'&url='.urlencode(getenv('HTTP_HOST').getenv('REQUEST_URI')),'r');
echo stripslashes(fread($f,100000));
fclose($f);Could I store that url in the database and will it still work? I have tried it unsuccessfully. I don’t mean just the http part either, because that is the exact code generated for the page to output certain data from another script on my site. I also have the option to use javascript like:
Code:
<script type="text/javascript"><!--
document.write('<s'+'cript type="text/javascript" src="http://reunitemysite.com/scripts/amp/show.php?z=1&j=1&code='+new Date().getTime()+'"></s'+'cript>');
// --></script>
<noscript>
<iframe src="http://reunitemysite.com/scripts/amp/show.php?z=1" width="120" height="240" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
</noscript>I prefer to use the first code though, not the javascript one.
View full post on Tycoon Talk
Issue, Link, mySQL