Help with jump.php Script

Reply

Join Date: Apr 2006
Posts: 1
Reputation: parker123 is an unknown quantity at this point 
Solved Threads: 0
parker123 parker123 is offline Offline
Newbie Poster

Help with jump.php Script

 
0
  #1
Apr 20th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 2
Reputation: sepedatua is an unknown quantity at this point 
Solved Threads: 0
sepedatua sepedatua is offline Offline
Newbie Poster

Re: Help with jump.php Script

 
0
  #2
Apr 30th, 2006
Try:
  1. header("Location: ".$visit);
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5
Reputation: mperkins07 is an unknown quantity at this point 
Solved Threads: 0
mperkins07 mperkins07 is offline Offline
Newbie Poster

Re: Help with jump.php Script

 
0
  #3
Apr 30th, 2006
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] );
}
}
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC