RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1948 | Replies: 2
Reply
Join Date: Apr 2006
Posts: 1
Reputation: parker123 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
parker123 parker123 is offline Offline
Newbie Poster

Troubleshooting Help with jump.php Script

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2006
Location: -=paradise=-
Posts: 2
Reputation: sepedatua is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sepedatua sepedatua is offline Offline
Newbie Poster

Re: Help with jump.php Script

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

Re: Help with jump.php Script

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:06 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC