php Mod rewrite test
In the directory where you plan to install Elgg, do the following:
Create the file .htaccess and add these two lines
RewriteEngine on
RewriteRule ^testing.php$ modrewrite.php
This tells the webserver to load modrewrite.php when testing.php is
requested.
In order to get this test to work on some virtual servers, you
may need to add:
RewriteBase /
prior to the RewriteRule line.
Create the file modrewrite.php with this line
<?php echo "mod_rewrite works"; ?>
Create the file testing.php with this line
<?php echo "mod_rewrite does not work"; ?>
Now use your web browser to load testing.php. The text that shows will
tell you whether mod_rewrite is working
Ïà¹ØÎĵµ£º
ÔÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/20100410/55.html
ÔÚPHPÖиüÐÂÊý×éµÄÄÚÈÝ¿ÉÒÔÖ±½ÓÖ¸¶¨¼üÃû²¢ÇҶԸüüÃû¸³Öµ¡£ ÀýÈ磺
<?php
$php = array(“php”,”phpdo”,”phpdo.net”);
$php[2] = “www.phpdo.net”;
print_r($php);
&nbs ......
Magento×ñÑÒ»°ãµÄ·½·¨Ê¹ÓõÚÈý·½PHP¿â,¼´£º½«php¿â·Åµ½Ä³¸öĿ¼Ï£¬ÔÚphp.ini»ò³ÌÐòÍ·²¿Ö¸¶¨¸ÃĿ¼»òÕ߸¸Ä¿Â¼Ö¸¶¨Îªinclude_path£¬È»ºó³ÌÐòÖÐʹÓÃinclude_onceÏà¶Ô·¾¶°üº¬¾ßÌåÒýÓõÄphpÎļþ
MagentoµÄlibĿ¼ÒѾĬÈÏÖ¸¶¨Îªinclude_pathÀïÁË£¬ËùÒÔÈç¹ûÓÐ3rd°üÈçVarien·Åµ½libĿ¼ÏÂ,ÓÐÒ»¸öphpÎļþÈ«ÃûΪ$magento_h ......
niginx°²×°Á÷³Ì
Èí¼þÏÂÔØ:--->
mkdir -p /home/dancebear/programe
cd /home/dancebear/programe
wget http://sysoev.ru/nginx/nginx-0.6.31.tar.gz
wget http://www.php.net/get/php-5.2.6.tar.gz/from/this/mirror
wget http://php-fpm.anight.org/downloads/head/php-5.2.6-fpm-0.5.8.diff.gz
wget http://dev ......
°²×°
$cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin/';//phpMyAdminµÄ°²×°Â·¾¶
$cfg['blowfish_secret'] = '123456';//¼ÓÃÜÃܳף¬¿ÉËæÒâ¸ü¸Ä¡£
$cfg['Servers'][$i]['user'] = 'root'; // MySQLÓû§£¬Èç root
$cfg['Servers'][$i]['password'] = 'pswd'; // MySQLÓû§ÃÜÂë
$cfg['DefaultLang'] = '';¡¡¸ÄÎ ......
¿´yii¿ò¼ÜÔ´ÂëµÄʱºò£¬·¢ÏÖÁË
ReflectionClassÕâ¸ö·½·¨£¬²Å·¢ÏÖÔÀ´ÊÇphp5µÄж«Î÷£¬ÓÚÊÇÉÔ΢Ñо¿ÁËÏ¡£phpµÄ·´ÉäapiÒ»¹²ÓУº
class
Reflection
{ }
interface Reflector
{ }
class
ReflectionException
extends
Exception
{ }
class
Re ......