| | |
Help with jump.php Script
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2006
Posts: 1
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Apr 2006
Posts: 2
Reputation:
Solved Threads: 0
Try:
PHP Syntax (Toggle Plain Text)
header("Location: ".$visit);
•
•
Join Date: Apr 2006
Posts: 5
Reputation:
Solved Threads: 0
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 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] );
}
}
![]() |
Similar Threads
- How can I send variables from a PHP script to another URL using POST without......... (PHP)
- how to make member expire after so many days with php script (PHP)
- How many clients can access a PHP script at a time from a MySQL server? (MySQL)
- How many clients can access a PHP script at a time? (PHP)
- how to find stock information with php script (PHP)
- need help with PHP Script translation (PHP)
Other Threads in the PHP Forum
- Previous Thread: URL Redirection in PHP
- Next Thread: HTML Form post to PHP?
| Thread Tools | Search this Thread |
# 5.2.10 access alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search server sessions sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube





