Hi There,

I have used this php script in the past on several web hosts and have had no problems.

Here it is

I save this as a php file. jump.php or whatever
<?
if ($link == "1"){$visit = "http://affiliatelink";}
if ($link == "2"){$visit = "http://affiliatelink";}
header("Location: $visit");
die();
?>

Replace affiliate link in database with:
jump.php?link=1
jump.php?link=2

It has worked fine when I upload the files to another web host but not when I use it where the site is now.

I have contacted my hosting company but because I have a VPS server I need to install ???? I have cpanel access but not sure what I would need.

Any help would be greatly appreciated.

Many thanks

Craig

can youn help me to make this work?

This sample program shows how to print the current month, now using the "Calendar" object (instead of the Date object which has been deprecated, meaning it has been slated for removal from the language).
// Program prints the current month

import java.util.Calendar;

public class ShowToday {
static String[] monthArray = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };

public static void main(String[] args) {
Calendar rightNow = Calendar.getInstance();
int month = rightNow.get( Calendar.MONTH );
// This will be a number from 0 to 11, representing January to December
System.out.println("month: " + month );
// Using the above array, this will print "Jan" thru "Dec"
System.out.println("month: " + monthArray[month] );
}
}

This article has been dead for over six months. Start a new discussion instead.