Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-03-2004, 01:14 PM   #1
tonkagunner
Confirmed User
 
Join Date: Mar 2003
Posts: 830
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.
tonkagunner is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2004, 01:16 PM   #2
TonyL
Confirmed User
 
TonyL's Avatar
 
Join Date: Feb 2002
Location: "A measure of a man is his post count". Write that down.
Posts: 900
PHP Code:
<?
header("Location: http://gofuckyourmom.com");
?>
-Tony
TonyL is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2004, 01:19 PM   #3
tonkagunner
Confirmed User
 
Join Date: Mar 2003
Posts: 830
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);
?>
tonkagunner is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2004, 01:48 PM   #4
TonyL
Confirmed User
 
TonyL's Avatar
 
Join Date: Feb 2002
Location: "A measure of a man is his post count". Write that down.
Posts: 900
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
TonyL is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2004, 02:01 PM   #5
Basic_man
Programming King Pin
 
Basic_man's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: Montreal
Posts: 27,360
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!
__________________
UUGallery Builder - automated photo/video gallery plugin for Wordpress!
Stop looking! Checkout Naked Hosting, online since 1999 !
Basic_man is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.