GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   hide link with php (https://gfy.com/showthread.php?t=335626)

tonkagunner 08-03-2004 01:14 PM

hide link with php
 
how do I hide link with php script? I want to do something where I make link something like link2.php and then have that redirect to another page.

TonyL 08-03-2004 01:16 PM

PHP Code:

<?
header("Location: http://gofuckyourmom.com");
?>

-Tony

tonkagunner 08-03-2004 01:19 PM

Thanks Tony.

Your code is close, but I'm looking for redirector type php script that I can point to from regular html page, not php page. I have rotator thing, but code isn't quite right for one site I think.

<?php
$id=md5(uniqid(rand()));
$location=sprintf("Location: http://$id.sitetogoto.com");
header($location);
?>

TonyL 08-03-2004 01:48 PM

I don't quite understand what you want to do.

Let me take a guess at what you are are trying to say.

You need a PHP program that redirects to a URL of your specification from a normal HTML doc? So I assume you are going to submit the URL you would like the PHP script to redirect to through a POST or GET request. So lets try this.

In the HTML doc place an anchor to the PHP script.

** HTML DOC
href="redirect.php?URL=www.suckme.com"
**

** PHP SCRIPT
<?
header("Location: $URL");
?>
**

This more in line with what you are looking for?

-Tony

Basic_man 08-03-2004 02:01 PM

Quote:

Originally posted by TonyL
I don't quite understand what you want to do.

Let me take a guess at what you are are trying to say.

You need a PHP program that redirects to a URL of your specification from a normal HTML doc? So I assume you are going to submit the URL you would like the PHP script to redirect to through a POST or GET request. So lets try this.

In the HTML doc place an anchor to the PHP script.

** HTML DOC
href="redirect.php?URL=www.suckme.com"
**

** PHP SCRIPT
<?
header("Location: $URL");
?>
**

This more in line with what you are looking for?

-Tony

I think this one will work fine!


All times are GMT -7. The time now is 08:39 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123