Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi-
I use this mehod to redirect my domain to a virtual address(browser address doesn't change):Code: Select all
<?php
$domain="http://mydomain.com";
$req=$_SERVER[request_url];
$url=$domain.$req;
include($url);
?>and how can I fix this security bug?
Another thing:when I use this method $_SERVER[user_agent] doesn't return any value!
Thank you
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]