#1 (permalink)  
Old 02-19-2007, 04:58 AM
manxman manxman is offline
Junior Member
 
Join Date: Jan 2007
Posts: 22
Default Links to a auto-forward php file

Learning new methods (Wordpress) can be so frustrating. The following works so easily on a traditional web site done with php. Wordpress is done with php, so why does it not work???

I have a php file (let's call the file 'autoforward.php') that I use to hide a clickbank link.

<?php
header("Location: http://xxxxx.yyyyyy.hop.clickbank.net/");
exit;
?>

Works just fine on my "regular" web sites. Put this on a page in my wordpress in this way :

http://www.my-domain.com/autoforward...utoforward.php

click on it on the finished page and nothing happens !!! (I use the php version as it is server sided so weird configurations of the browser should not get in the way! like it can with html)

Suggestions?

Richard
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2007, 05:10 AM
manxman manxman is offline
Junior Member
 
Join Date: Jan 2007
Posts: 22
Default

so then I tried this (used buffering)

<?php
ob_start(); //begin buffering the output
header("Location: http://manxman.dpsecrets.hop.clickbank.net/");
ob_flush(); //output the data in the buffer
exit;
?>

and it started working again, even on ones that do not have the buffering code yet.

!!! ??? who said computers are logical?

Richard
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2007, 04:41 PM
imported_Robert imported_Robert is offline
Member
 
Join Date: Jan 2007
Location: Australia
Posts: 79
Send a message via Yahoo to imported_Robert
Default

I use PHP redirects for my clickbank links.

I use:

Code:
<?php
header("Location:http://www.myclickbanklink.com");?>
It works fine with static HTML and PHP.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bigdump file not found? erwin Wordpress Installer 3 10-27-2007 06:04 AM
wp-config file and the night of the missing site FictionEditor WordPress & CMS 0 07-27-2007 03:11 PM
auto post uploader like autoresponder edseward WordPress & CMS 5 03-08-2007 03:53 PM
Is my CSS file bad? BigSmile WordPress & CMS 2 01-31-2007 06:29 AM
Roberts auto auction site charlie General Discussion 4 01-24-2007 01:46 AM


All times are GMT. The time now is 10:17 AM.


vBulletin style developed by Transverse Styles

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0