Login to MySQL and type
set password for root@localhost=PASSWORD('');
2007年6月1日金曜日
2007年5月10日木曜日
CodeIgniter: 404 Page not Found
I think you must set AcceptPathInfo in httpd.conf
AcceptPathInfo fails in conjuction with PHP. AcceptPathInfo is supposed to allow scripts such as
www.server.com/script.php to be referenced with additional URI
information to be passed to the script such as
www.server.com/script.php/value/value2. PHP calls this value PATH_INFO.<Directory />
Options FollowSymLinks
AllowOverride None
AcceptPathInfo On
</Directory>
Find all the listening or open ports on my computer
Dùng lệnh sau để xem những port đang được open trên Window:
netstat -an
netstat -ao
Export to file :
netstat -an |find /i "listening" > c:\ports.txt
netstat -an
netstat -ao
Export to file :
netstat -an |find /i "listening" > c:\ports.txt
You can then use PULIST with the FIND command:
C:\WINDOWS>pulist |find /i "1536"To see all open, established, closing and other used ports type:
C:\WINDOWS>netstat -a2007年5月8日火曜日
Set Proxy trên Apache Server
Open file httpd.conf, move xuống gần cuối file, thêm dòng sau đây để enable proxy
#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
<IfModule mod_proxy.c>
ProxyRequests On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
Chú ý: các module ve proxy đã phải được enable :
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
Thanks
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
<IfModule mod_proxy.c>
ProxyRequests On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
Thanks
2007年5月7日月曜日
Can I declare "use Strict" in PHP
Trong PHP không có khai báo use Strict như trong Perl. Thay vào đó có thể dùng error_reporting(E_ALL), được setting trong file php.ini. Hoặc chúng ta có thể setting trong chương trình.
登録:
投稿 (Atom)