Register Advertise with usHelp Desk Today's Posts Search

Thread Tools Search this Thread
Unread 19th Sep 2017, 03:10 PM   #1
Knowledge is power
War Room Member
 
hometutor's Avatar
 
Join Date: 2004
Location: Honolulu,Hawaii , USA.
Posts: 1,354
Thanks: 406
Thanked 243 Times in 191 Posts
Default
Giving back a bit PHP redirect
Share on: 
fb share twitter share gplus share more share

I couldn't use header since it had already tranfered

I tried a javascript redirect but got an undefined page

I used this

file_put_contents('logs.txt', "<script>window.location =' .$rsslink.'.php</script>".PHP_EOL , FILE_APPEND | LOCK_EX);

to find the problem

The . was appearing in the actual redirect. So I made the whole thing a variable

Code:
$redirect="<script>window.location ='";


$redirect.=$rsslink.'.php';

$redirect.="'</script>";

echo $redirect;
It worked! It redirected to my generated page. I'm sure someone has a smoother solution, but I just wanted to give back a bit.

Rick

hometutor is offline   Reply With Quote


Bookmarks

Tags
back, bit, giving, php, redirect


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 05:02 AM.