Redirect by PC or mobile phone access

Just the same domain, using the following code, you can let your computer and mobile phone show different contents. We have to design 2 pages, all named index.php, the first one will be put at your host root, and the other one will be put under wap.
Page 1.
0)
{
@header(“Location: /wap/”);
}

?>


Cheap Glasses



Cheap Prescription Glasses, and Non-Prescription Glasses.


Page 2.





Cheap Glases Mobile


Cheap Prescription Glasses Mobile

Cheap Non-Prescription Glasses Mobile



Live Demo: www.cheapglasses.mobi

Posted in Php Code. Comments Off on Redirect by PC or mobile phone access »

How to remove “New Products …, All Products” in Zen Cart main page?

Open tpl_categories.php under include/templates/template_default/siteboxes/

 1. Remove New Products…,

At line 80,

if ($show_this->RecordCount() > 0) {
        $content .= ‘<a class=”category-links” href=”‘ . zen_href_link(FILENAME_PRODUCTS_NEW) . ‘”>’ . CATEGORIES_BOX_HEADING_WHATS_NEW . ‘</a>’ . ‘<br />’ . “\n”;

Change the code to: (more…)

Posted in Zen Cart. Comments Off on How to remove “New Products …, All Products” in Zen Cart main page? »

Can’t login to admin after installation of Magento

I am running Vista Home basic system, and I play Xampp, after I have installed Magento, I found I can not login the admin panel.

I found the problem is in Session, magento can not set session and always create it again, that is why logination does not work.

-Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory.

-Find the code, (more…)

Posted in Magento. Comments Off on Can’t login to admin after installation of Magento »

Apache HTTP server has stopped working when install Magento

Today I am up to the configuration stage in the Installation of Magento on my own localhost server but when I press continue Iget a message from windows saying ‘apache http server has stopped working, close program’ .

I am install Magento under Xampp 1.7 for windows platform, and I use Vista Home Basic System. (more…)

Posted in Apache, Magento. Comments Off on Apache HTTP server has stopped working when install Magento »

Add one adsens ads except homepage.

It is very simple, copy the following code, and change YOU ADSENSE ADS CODE HERE. to your ads code. done!

 <div class=”storycontent”>

<?php if (($wp_query->current_post == 0)and (!is_home())) : ?>
<div style=”float:right”><br>
YOU ADSENSE ADS CODE HERE.
</div>
<?php endif; $postcnt++; ?>
  <?php the_content(__(‘(more KINGPHP details…)’)); ?>
 </div>

Posted in Php Skills, WordPress. Comments Off on Add one adsens ads except homepage. »

Chinese can buy Hostgator Web Hosting Via Paypal Now!

For a long time, hostgator(www.hostgator.com) does not allowed China IP customers to pay via paypal for the first time when they buy hostgator web hosting, they have to pay via Check or TT in advance.

Today I bought one hosting for my customer,  I did not receive the email asking me to pay via West Union or send a check to hostgator. So I tried to pay via paypal, successful!

I am still a little afraid that hostgator will close my account, so I called hostgator to make confirm! They told me my friend’s account is OK!

Hostgator Web Site: www.hostgator.com

Posted in Web Hosting. Comments Off on Chinese can buy Hostgator Web Hosting Via Paypal Now! »

WordPress Posts not indexing on Google

We are adding regular content everyday but for the past few weeks Google don’t seem to index the new posts at all.

Usually they were indexing within a few minutes.  At first I think their must be something wrong with my web hosting or SSL, so I changed the hosting from hostgator to dreamhost, same problem.  I search wordpress.org forum, and found that we have to set the folloing for our new wordpress now.

Log into WP and under Settings -> Privacy, make sure your WP isn’t blocking search engines.

At the same time,  check for a robots.txt file that is blocking bots,  get a Google account and use the Google Webmaster Tools to run a diagnostic on our site, and we will know what to do.

Posted in WordPress. Comments Off on WordPress Posts not indexing on Google »

How to hide x-cart v.3 home.php?

If you want home.php jump to your x-cart main domain name, add the following code in you .htaccess document under
RewriteBase / ,

RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*home.php\ HTTP/

Posted in X-Cart. Comments Off on How to hide x-cart v.3 home.php? »

How to change Vbulletin forum mysql db prefix?

Follow the following procedure:
– Backup your database and verify it is a complete backup
– Close your board
– goto: http://www.myboard.com/install/tableprefix.php
– Follow the instructions
– When finished, edit your ./includes/config.php with the new prefix.
– Reopen board

Note: Do not alter the tableprefix value in config.php until this script has completed and you are given a message telling you to edit the value.

Posted in Vbulletin. Comments Off on How to change Vbulletin forum mysql db prefix? »

How to chang Vbulleting Domain Name?

Sometimes we want to change vbulleting forum domain name, here are some tips on how to do:

1. Before you change your old domain name to your new domain name, login into you cpanel, go to vBulletin Options, Choose Site Name / URL / Contact Details, and change your Forum URL to your new forum url, that is to say, your new domains.

2. Copy all file under your old web host to your new web host.

 3. Back up your old database and import to your new forum database. (more…)

Posted in Php Study, Vbulletin. Comments Off on How to chang Vbulleting Domain Name? »
King Php Science Designed by:KingPhp.com Welcome, you are from: 54.205.172.57