PHP Web2.0开发实战

1. p14页加上了Allow from all 才行
<VirtualHost 192.168.0.80>
    ServerName phpweb20
    DocumentRoot /var/www/phpweb20/htdocs

    <Directory /var/www/phpweb20/htdocs>
        AllowOverride All
        Options All
        Allow from all
    </Directory>

    php_value include_path .:/var/www/phpweb20/include:/usr/local/lib/pear
    php_value magic_quotes_gpc off
    php_value register_globals off
</VirtualHost>


2.
grant all privileges on phpweb20.* to phpweb20@'%' identified by '123456';
flush privileges 

你可能感兴趣的:(PHP)