php ¾ÖÓòÍø ͨ¹ý ip ·ÃÎʱ¾»ú
ÔÎÄÁ´½Ó http://94798.blog.51cto.com/84798/261991
¶ÔÓÚ´ËÎÊÌâµÄ½â¾ö°ì·¨£¬´ò¿ªapache°²×°Â·¾¶ÖеÄhttp.confÎļþ£¬
ÕÒ´òÒÔÏÂÄÚÈÝ
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
ÔÚDeny from all ǰ¼ÓÉÏ#À´×¢Ê͵ô´ËÐУ¬²¢ÔÚAllow from 127.0.0.1 ºóÃæ¼ÓÉÏÒ»ÐÐAllow from 192.168.1.* ¼´¿É¡£Ð޸ĺóÈçÏ£º
# onlineoffline tag - don't remove
Order Deny,Allow
# Deny from all
Allow from 127.0.0.1
Allow from 192.168.1.*
»òÕß Allow from all
Ïà¹ØÎĵµ£º
´î½¨PHP¿ª·¢»·¾³£º
1¡¢×¼±¸²¢°²×°ÏÂÁÐÈí¼þ£º
MySQL 5.1.30: http://dev.mysql.com/downloads/¡£
Apache 2.2.14: http://httpd.apache.org/. ÔÚ°²×°¹ý³ÌÖÐ,»á³öÏÖ3¸öÎı¾¿ò£¬ÉÏÃæÁ½¸öÊäÈëÄãµÄ±¾»úIP£¨È磺127.0.0.1£©£¬×îÏÂÃæÊäÈëÄãµÄEMAIL ......
http://blog.s135.com/read.php/142.htm
¡¡¡¡×î½üÔÚдPHP³ÌÐòʱ£¬ÐèҪʹä¯ÀÀÆ÷ÔÚhttpsºÍhttpÖ®¼äת»¯£¬ÉÏÍøËÑË÷Ïà¹ØÐÅÏ¢£¬ÎÞÄÎÖ»ÓÐ×î½üÔÚдPHP³ÌÐòʱ£¬ÐèҪʹä¯ÀÀÆ÷ÔÚhttpsºÍhttpÖ®¼äת»¯£¬ÉÏÍøËÑË÷Ïà¹ØÐÅÏ¢£¬ÎÞÄÎÖ»ÓÐһƪ½éÉÜÓÃASPʵÏÖ“ÔÚhttpºÍhttpsÖ®¼äת»¯”µÄÎÄÕ£¬ÓÚÊÇÖ»ºÃÐÐдÁËÓÃPHPʵÏÖhttpÓëhttpsת» ......
3¡¢PHP°²×°
1£©»¹ÊÇÏÂÔØÔ´Âë°ü£¬È磺php-5.1.1.tar.gz£¬ÏÂÔØµØÖ·£ºhttp://www.php.net
2£©½âѹËõ£¬>tar -zxvf php-5.1.1.tar.gz
3£©½øÈëphp-5.1.1£¬>cd php-5.1.1
4£©°²×°ÅäÖã¬>./configure --prefix=/opt/php
--with-apxs2=/opt/apache/bin/apxs --with-mysql=/opt/mysql
--with-mysqli=/opt/mysql/bin/ ......
<html>
<head>
<title>Uploading...</title>
</head>
<body>
<h1>Uploading file...</h1>
<?php
echo '<pre>';
print_r($_FILES);
echo '</pre>';
if ($_F ......
1¡¢
Ê×ÏÈÈ¥http://pear.php.net/package/Pager ÏÂÔØ Pager°ü£ºPager-2.4.8.tgz
£»
2¡¢
½âѹµ½×Ô¼ºµÄ¹¤×÷Ŀ¼
3¡¢
ʾÀýÈçÏ£º
<?php
require_once('Pager/Pager.php');
$params = array(
'itemData' => $re, //Òª½øÐзÖÒ³µÄ½á¹ûÊý×é
'perPage' => 12, //ÿҳµÄ¼Ç¼Êý
'd ......