| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
| | Thread Tools | Display Modes |
| |||
| 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 |
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |