|
|
|
||||
|
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. |
|
|||||||
| New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
|
Thread Tools |
|
|
#1 |
|
Registered User
Join Date: Jun 2006
Posts: 45
|
Question about script
Does anyone in here know outgoing script like youramateurporn.com/out.php. How to do this? And youramateurporn.com has some advertise space between entries, I know that is a wordpress plugin but don't know what is it name. Anybody can help me?
|
|
|
|
|
|
#2 |
|
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
|
In its simplest form, an "out.php" or "out.cgi" script is nothing more than a redirect. Click on it and you get redirected to a designated place:
<?php header('Location: http://www.site.com/page.html') ; ?> They are typically used in conjunction with a tradescript and / or are used to pass other variables to the trade script and / or target site. Trade scripts all have their own syntax. |
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jun 2006
Posts: 45
|
Thanks for your help, Lycanthrope. I see they put iframe tag in out.php, so can you tell me more details about it?
|
|
|
|
|
|
#4 |
|
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
|
Well, in a case like that, they include some html to load their top frame and use a variable "q", which is the url they display in the main frame. I'm not real good with frame anymore so you are going to have to figure out the columns, rows, frame border, etc, but it would be something like this: (this is all one file - "out.php")
<?php $q = $_SERVER["QUERY_STRING"]; ?> // this grabs the variable "q" which is the various pages they are linking to and must be placed before the html tag <html> <head> <title>My Page</title> </head> <frameset> <frame src="myframe.html" /> <frame src="<?php echo('$q'); ?>" /> // loads the url called in the variable </frameset> </html> |
|
|
|
|
|
#5 |
|
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
|
Actually I messed that up... this is simplified
link to out.php?http://www.gallery.url <?php $q = $_SERVER["QUERY_STRING"]; ?> // this grabs the variable <html> <head> <title>My Page</title> </head> <frameset> <frame src="myframe.html" /> <frame src="<?php echo('$q'); ?>" /> // loads the url called in the variable </frameset> </html> |
|
|
|
|
|
#6 |
|
Registered User
Join Date: Jun 2006
Posts: 45
|
I got it, thank you very much!
|
|
|
|