Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 4th, 2004, 03:00 PM
Registered User
 
Join Date: Aug 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Please help. I have a domain website, and in that index html i want a hidden redirect to a site with an ip adres for example http://123.233.44.55:81 (it's fake i know). this last site uses php and mysql. first i had the redirect with frames (because i want to show the site name instead of the ip adres. but it's not parsing any of the php variables. i have looked on the web and i found some stuff (also on here ) but no one exactly with the same problem as me. (weird?!), what i tried last time was this:

<HTML>
<TITLE> Site name</TITLE>

<frameset>
<frame name="tkb" src="
<?php
if (isset($_SERVER['QUERY_STRING']))
{
 echo "http://123.456.78.90?".$_SERVER['QUERY_STRING'];
}
else {
 echo "http://123.456.78.90";
}
?>">;
</frameset>

<BODY>
<NOFRAMES>
</NOFRAMES>

</BODY>


but it always goes to the first if, even when there's no query string. is this the right way?
if not: does anybody have the solution? or should i use global variables in php? but isn't that a security risk? or should i change my apache configuration? please help.

Greetings,
Klokkie ([email protected])









Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in Globals class pedroabs BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 8 June 12th, 2008 01:11 PM
Globals nabeelalkaff BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 April 29th, 2007 08:26 PM
Chapter 3 code available w/globals off sambrose BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 5 November 20th, 2006 05:34 AM
register globals problem nulogix Beginning PHP 4 June 16th, 2004 08:49 AM
Register Globals Off cmiller Beginning PHP 4 August 18th, 2003 05:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.