memcached±¾µØwindowsϵͳ²âÊÔ
ÓõÄÊÇwindowsϵͳ¡£
1.ÏÂÔØMemcache for win32
ÏÂÔØµØÖ·: http://jehiah.cz/projects/memcached-win32/
Ñ¡Ôñmemcached 1.2.1 for Win32 binaries (Dec 23, 2006) ÊÇexeµÄ³ÌÐò
memcached.exe -d install
memcached -d start
2.ÏÂÔØphp_memcache.dll
ÏÂÔØµØÖ·: http://www.wesoho.com/article/Safe_Other/2755.htm php_memcache-5.2-Win32-vc6-x86-20090408.zip
Ñ¡ÔñºÍPhp°æ±¾¶ÔÓ¦µÄ£¬ÎÒphp°æ±¾ÊÇ5.2.12µÄ(×¢Ò⣬һ¿ªÊ¼ÎÒµÄÊÇ5.1.14°æ±¾£¬¿Éϧϲ»µ½ÏàÓ¦µÄmemcache£¬Ö»ÄÜÏÂÔØ¸ö5.2.12µÄphp£¬²»È»²»ÄܼÓÔØphp_memcacheÄ£¿é£¬PHP Warning: PHP Startup: Unable to load dynamic library 'D:/Php5/ext\\php_memcache.dll' - The specified procedure could not be found.\r\n in Unknown on line 0£¬Ã÷Ã÷ÔÚĿ¼À°æ±¾²»¶Ôº¦ÈËѽ)
´ò¿ªphp.iniÎļþ(ÎÒµÄÕâ¸öÎļþλÓÚc:/windowsĿ¼ÏÂ)£¬Ìí¼ÓÀ©Õ¹extension=php_memcache.dll£¨Ã»Óзֺţ©
ÖØÆôapache
phpinfo¿´Ò»Ï£¬ÏÖÔÚÓ¦¸ÃÓÐmemcachedµÄÁË
memcacheÖ÷ÒªÓ¦Ó÷½·¨£º
(1) Memcache::getVersion ·µ»ØmemcacheµÄ°æ±¾ÐÅÏ¢.
(2) Memcache::connect ´´½¨Ò»¸ömemcacheÁ¬½Ó¶ÔÏó. ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE 9.2, 9.3, 10.0 & 10.1 operating systems, but most of the steps ought to be valid for all Linux-like operating systems.
Contents:
MySQL 5 Installation
Prerequisites
Download the Source
Unpack, Copy, Configure
Create my.cnf File
Additional Settings
Start Server, Check It, Connect
Set the Root Password
Restart MySQL Server
Automatic Startup
Apache 2 Installation
PHP 5 Installation
MySQL 5.0 installation
Since Apache and MySQL servers must be installed prior to the PHP installation, I recommend installing the triad in this order: MySQL, Apache, PHP. You may well have some MySQL server already installed – in that case you can skip directly to the Apache 2 installation. However, it's a good idea to reinstall everything, in order to have the most recent versi ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE 9.2, 9.3, 10.0 & 10.1 operating systems, but most of the steps ought to be valid for all Linux-like operating systems.
Contents:
MySQL 5 Installation
Prerequisites
Download the Source
Unpack, Copy, Configure
Create my.cnf File
Additional Settings
Start Server, Check It, Connect
Set the Root Password
Restart MySQL Server
Automatic Startup
Apache 2 Installation
PHP 5 Installation
MySQL 5.0 installation
Since Apache and MySQL servers must be installed prior to the PHP installation, I recommend installing the triad in this order: MySQL, Apache, PHP. You may well have some MySQL server already installed – in that case you can skip directly to the Apache 2 installation. However, it's a good idea to reinstall everything, in order to have the most recent versi ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating systems.
Contents:
MySQL 5 Installation
Apache 2 Installation
Prerequisites
Download Source
Unpack, Configure, Compile
Edit httpd.conf
Set up Access Privileges
Start and Stop Apache Server
Automatic Startup
PHP 5 Installation
apache 2 installation
prerequisites
Before you begin, it is highly recommended (though not inevitable) to create
a system user and user group under which your Apache server will be
running.
# groupadd www
# useradd -g www apache2
What is it good for? All actions performed by Apache (for instance your PHP
scripts execution) will be restricted by this user's privileges. Thus you can
explicitly rule which directories you ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating systems.
Contents:
MySQL 5 Installation
Apache 2 Installation
Prerequisites
Download Source
Unpack, Configure, Compile
Edit httpd.conf
Set up Access Privileges
Start and Stop Apache Server
Automatic Startup
PHP 5 Installation
apache 2 installation
prerequisites
Before you begin, it is highly recommended (though not inevitable) to create
a system user and user group under which your Apache server will be
running.
# groupadd www
# useradd -g www apache2
What is it good for? All actions performed by Apache (for instance your PHP
scripts execution) will be restricted by this user's privileges. Thus you can
explicitly rule which directories you ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating systems.
Contents:
MySQL 5 Installation
Apache 2 Installation
Prerequisites
Download Source
Unpack, Configure, Compile
Edit httpd.conf
Set up Access Privileges
Start and Stop Apache Server
Automatic Startup
PHP 5 Installation
apache 2 installation
prerequisites
Before you begin, it is highly recommended (though not inevitable) to create
a system user and user group under which your Apache server will be
running.
# groupadd www
# useradd -g www apache2
What is it good for? All actions performed by Apache (for instance your PHP
scripts execution) will be restricted by this user's privileges. Thus you can
explicitly rule which directories you ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating systems.
Contents:
MySQL 5 Installation
Apache 2 Installation
PHP 5 Installation
Prerequisites
Download Source
Unpack, Configure, Compile
Edit httpd.conf
Create php.ini File
Restart Apache Server
PHP 5 installation
We will set up PHP as a shared module, being loaded into Apache2 dynamically
during the server startup. These instructions are known to work for PHP
versions: 5.0.4
through 5.2.1
.
prerequisites
At this point Apache web server must be installed. If you want MySQL support
in PHP, MySQL server also must have been installed prior to the next steps.
download source
Get the source from http://www.php.net/downloads.php
.
At the ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating systems.
Contents:
MySQL 5 Installation
Apache 2 Installation
PHP 5 Installation
Prerequisites
Download Source
Unpack, Configure, Compile
Edit httpd.conf
Create php.ini File
Restart Apache Server
PHP 5 installation
We will set up PHP as a shared module, being loaded into Apache2 dynamically
during the server startup. These instructions are known to work for PHP
versions: 5.0.4
through 5.2.1
.
prerequisites
At this point Apache web server must be installed. If you want MySQL support
in PHP, MySQL server also must have been installed prior to the next steps.
download source
Get the source from http://www.php.net/downloads.php
.
At the ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating systems.
Contents:
MySQL 5 Installation
Apache 2 Installation
PHP 5 Installation
Prerequisites
Download Source
Unpack, Configure, Compile
Edit httpd.conf
Create php.ini File
Restart Apache Server
PHP 5 installation
We will set up PHP as a shared module, being loaded into Apache2 dynamically
during the server startup. These instructions are known to work for PHP
versions: 5.0.4
through 5.2.1
.
prerequisites
At this point Apache web server must be installed. If you want MySQL support
in PHP, MySQL server also must have been installed prior to the next steps.
download source
Get the source from http://www.php.net/downloads.php
.
At the ......
ÏÖÔÚ¶ÔPHP¸Ð¾õÔ½À´Ô½Ë³ÊÖÁË£¬¶ÔHTMLµÄ±êǩԽÀ´Ô½ÊìϤÁË£¬¿ÉÊǶÔPHPµÄ²å¼þµÄÈÏʶ»¹ÎªÖ®ÉõÉÙ¡£
µ«ÊÇ£¬ËµÊµ»°£¬Ä¿Ç°µÄÎÒÃ²ËÆÒ²²»ÐèҪʹÓÃPHPµÄ²å¼þ£¬Óòå¼þµÄÄ¿µÄ¿ÉÄÜÊÇΪÁËÏԵñȽÏÅ£°É£¬ºÇºÇ¡£
µ«ÊÇ»¹ÊÇ̤̤ʵʵµÄѧϰ°É£¬±Ï¾¹¶îµÄC++»¹Ã»ÓÐѧ£¬¶ÔÓÚPHPµÄ·â×°ºÍ±à³ÌÒ»µãÒ²²»Á˽⡣
Õ¾³¤Ëµ¹ýÁËѧC++µÄʱºòÒª°ÑËüºÍCÓïÑÔ·Ö¿ª£¬±ä³ÉÁ½¸öÓïÑÔÀ´Ñ§£¬µ«ÊÇĿǰû¸Ð¾õµ½¡£
Á˽âC++µÄÕâ¶Îʱ¼ä£¬¸Ð¾õºÜ¶àµØ·½»¹ÊǺÍCÒ»Ñù¡£¸ß¼¶£¨ÎÒ×ÔÈÏΪ£©µÄµØ·½£¬×Ô¼º»¹²»ÉõÁ˽⡣Ôõô°ìÄØ£¿
¡£¡£¡£¡£¡£¡£¡£
ÕæµÄÓ¦¸ÃÈçÕ¾³¤ËµµÄÄÇÑù°É£¬ÂýÂýÀ´£¬²»Òª¸¡Ô꣡
ÂýÂýµÄ×Ô¼ºÕÒµ½ÁËѧϰµÄ¹æÂÉ£¬ÂýÂýµÄ×Ô¼º·¢ÏÖ×Ô¼ºÉÆÓÚ±í´ïÁË£¬Ò²ÂýÂýµÄ·¢ÏÖ×Ô¼º±äµÄ±È½Ï³ÁĬÁË£¬Õâ¿ÉÄܾÍÊdzɳ¤°É¡£
³É³¤µÄµÀ·ÉÏ£¬ËÖªµÀ»áÔõÑùÄØ£¿ ......
$_FILES['myFile']['name'] ¿Í»§¶ËÎļþµÄÔÃû³Æ¡£
$_FILES['myFile']['type'] ÎļþµÄ MIME ÀàÐÍ£¬ÐèÒªä¯ÀÀÆ÷Ìṩ¸ÃÐÅÏ¢µÄÖ§³Ö£¬ÀýÈç"image/gif"¡£
$_FILES['myFile']['size'] ÒÑÉÏ´«ÎļþµÄ´óС£¬µ¥Î»Îª×Ö½Ú¡£
$_FILES['myFile']['tmp_name'] Îļþ±»ÉÏ´«ºóÔÚ·þÎñ¶Ë´¢´æµÄÁÙʱÎļþÃû£¬Ò»°ãÊÇϵͳĬÈÏ¡£¿ÉÒÔÔÚphp.iniµÄupload_tmp_dir Ö¸¶¨£¬µ« Óà putenv() º¯ÊýÉèÖÃÊDz»Æð×÷Óõġ£
$_FILES['myFile']['error'] ºÍ¸ÃÎļþÉÏ´«Ïà¹ØµÄ´íÎó´úÂë¡£['error'] ÊÇÔÚ PHP 4.2.0 °æ±¾ÖÐÔö¼ÓµÄ¡£ÏÂÃæÊÇËüµÄ˵Ã÷£º(ËüÃÇÔÚPHP3.0ÒÔºó³ÉÁ˳£Á¿)
UPLOAD_ERR_OK
Öµ£º0; ûÓдíÎó·¢Éú£¬ÎļþÉÏ´«³É¹¦¡£
UPLOAD_ERR_INI_SIZE
Öµ£º1; ÉÏ´«µÄÎļþ³¬¹ýÁË php.ini ÖÐ upload_max_filesize Ñ¡ÏîÏÞÖÆµÄÖµ¡£
UPLOAD_ERR_FORM_SIZE
Ö ......