Your are here: Home // Posts Tagged With PHP

Integrating Active Directory with PHP

Software engineering is not unlike other industrial craft; the actors in each respective trade are engaged in the practice of creating something out of nothing. Often their products are the result of skills within several disciplines. For example, a furniture designer might require knowledge working within wood, metal, and glass, while often a software product’s quality is often the function... 
Tags:

Fix egrg deprecated in PHP 5.3

If you install OSCommerce solution in PHP 5.3 or higher currently, you will get an error message: Deprecated: Function eregi() is deprecated in D:wwwcatalogincludesclasseslanguage.php on line 87 The original line 87 in the catalogincludesclasseslanguage.php is: if (eregi(‘^(‘ . $value . ‘)(;q=[0-9]\.[0-9])?$’, $this->browser_languages[$i]) && isset($this->catalog_languages[$key]))... 
Tags:

Fix phpMyAdmin Errors

After I unzip the phpmyadmin and create a virtual directory for phpmyadmin, it keeps giving you two warning messages: The configuration file now needs a secret passphrase (blowfish_secret). The additional features for working with linked tables have been deactivated. To find out why click here.   1. To enter secret passphrase If you use cookie based authentication to encrypt password in cookie... 
Tags:

A simple example of PHP shopping mart

简单购物车   这篇教程会教你如何定一个简单的PHP购物车。 这个购物车会从普通的文件中读取商品,完全不用数据库。 使用者可以新增,移除商品,清除或更新购物车的商品价格。 程序是使用 session 来记录资料,不是用 cookie。 当然这个购物车是不可能用来当商业用途,它的功能只有加減和计算商品价格。... 

Using Proper Header Redirects In PHP

This article is extracted from http://mattiasgeniar.be/2008/07/30/using-proper-header-redirects-in-php/ Let’s say you have an old web-page that’s no longer in use. Of course, you’ll want to redirect your users to the correct (new) page. Using PHP, you can modify the headers of a web-page to redirect them to the correct page. <?php header("Location: http://www.mydomain.com/newpage.html"); exit(); ?> This... 

Share a virtual host with several domains

 1. ASP 空间 - virtual host hosts several domains: index.asp 方法其实很简单,就是利用一个asp文件通过浏览器输入的域名,判定他是要打开那个文件夹里的站点,来实现一个虚拟放置多个站点。 其他说明:如果虚拟主机不支持子目录绑定,这是唯一有效的办法 实现方法如下: 可以这样,你先建立一个默认主页index.asp 然后把A站放在A文件夹下 B站放在B文件夹下 C站放在C文件夹下 index.asp网页文件如下 <%if... 
Copyright © 2009 HAPPY RICKY. All rights reserved.
Designed by Theme Junkie. Powered by WordPress. Hosted by 3WBLOG.NET