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)
-   -   Anyone Good With PHP? (https://gfy.com/showthread.php?t=498278)

Agnosticism 07-30-2005 09:48 PM

Anyone Good With PHP?
 
Here's the code...
$DEFAULT_EXIT_PAGE = "$HTTP_REFERER/hey.html";
When I try to use the code it adds an extra blackslash "/" so when it referrs back to the code it looks something like http://www.aol.com//hey.html which makes the url invalid.

I have tried
$DEFAULT_EXIT_PAGE = "$HTTP_REFERER hey.html";
When this code is implemented it creates http://www.aol.com/%20hey.html
And when I implement
$DEFAULT_EXIT_PAGE = "$HTTP_REFERER hey.html";
Syntax is incorrect and doesn't even properly proces the php file.

So I was wondering how to make it so it simply referrs http://www.aol.com/hey.html

azguy 07-30-2005 09:49 PM

use {$HTTP_REFERER}

(I'd use $_SERVER[''], but you can go with this)

Sams_gfy 07-31-2005 11:55 AM

$DEFAULT_EXIT_PAGE = $HTTP_REFERER."hey.html";

:pimp


All times are GMT -7. The time now is 10:22 PM.

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