Archive for category PHP code
Permanet Redirect in PHP
Posted by in PHP code on August 6th, 2010
<?php
// Permanent redirection
header(”HTTP/1.1 301 Moved Permanently”);
header(”Location: http://www.website.com/”);
exit();
?>
Import Mochimedia Feed
Posted by in PHP code on July 21st, 2010
Just make a code for importing Mochimedia game feed.
It will import the feed by creating post, add tag, insert into category, and schedule it dailly. It is using wordpress technology. You need to put these files in wp root.
Download it here.
PayPal Subscriptions HTML Code
Posted by in PHP code on January 6th, 2010
Manipulating The HTML Code for Your Subscription Button
The following tables show the different parameters within the Subscriptions HTML code and the Subscriptions hyperlink.
The terms for the following subscription are:
-Free for the first week
-$5.00 USD for the next 2 months
-$50.00 USD per year thereafter. Recurs at regular rate for 5 payments
border=”0″ name=”submit”
alt=”Make payments with PayPal – it’s fast, free and secure!”>
|
Table 9.1
|
Source: https://www.paypal.com/en_US/ebook/subscriptions/html.html
Showing PHP error
Posted by in PHP code on November 28th, 2009
error_reporting(E_ALL);ini_set('display_errors', '1');
Get value of TinyMCE
Posted by in PHP code on November 9th, 2009
tinyMCE.getInstanceById(”eventdescription”).getBody().innerHTML;
Autoscroll with PHP
Posted by in PHP code on October 16th, 2009
Here’s the code for auto scroll with php:
.scrollbar {
height: 70px;
overflow: auto;
width:100px;
}
</style>
<div class=scrollbar>
money <br />
stock<br />
finance<br />
option<br />
forex<br />
currency<br />
loan<br />










