phpµ¥ÒýºÅºÍË«ÒýºÅµÄÇø±ð
±¾ÎÄת×Ôhttp://xfs39.javaeye.com/blog/411508 ¸Ðл×÷Õß·ÖÏí
phpµ¥ÒýºÅºÍË«ÒýºÅµÄÇø±ð
½ñÌ죬ÓÐÒ»ÐÂѧPHPµÄÍøÓÑÎÊÁ˲èÅ©Ò»¸öÎÊÌ⣺“µ¥ÒýºÅºÍË«ÒýºÅµÄÇø±ðºÍÓ÷¨£¿”£¬ÏÖ½«´ð°¸×ܽáÁËÏ£¬Ð´³ÉÕâƪС¶ÌÎÄ¡£
" "Ë«ÒýºÅÀïÃæµÄ×ֶλᾹý±àÒëÆ÷½âÊÍ£¬È»ºóÔÙµ±×÷HTML´úÂëÊä³ö¡£
' 'µ¥ÒýºÅÀïÃæµÄ²»½øÐнâÊÍ£¬Ö±½ÓÊä³ö¡£
ÀýÈ磺
$abc='my name is tome';
echo $abc //½á¹ûÊÇ:my name is tom
echo '$abc' //½á¹ûÊÇ:$abc
echo "$abc" //½á¹ûÊÇ:my name is tom
ÌرðÔÚʹÓÃMYSQLÓï¾äµÄʱºò£¬Ë«ÒýºÅºÍµ¥ÒýºÅµÄÓ÷¨ÈÃÐÂÊÖ²»ÖªËù´ë£¬ÔÚÕâÀ¾Ù¸öÀý×Ó£¬À´½øÐÐ˵Ã÷¡£
¼ÙÉè²éѯÌõ¼þÖÐʹÓõÄÊdz£Á¿£¬ÀýÈ磺
select * from abc_table where user_name='abc';
SQLÓï¾ä¿ÉÒÔд³É:
SQLstr = "select * from abc_table where user _name= 'abc'" ;
¼ÙÉè²éѯÌõ¼þÖÐʹÓõÄÊDZäÁ¿£¬ÀýÈ磺
$user_name = $_REQUEST['user_name']; //×Ö·û´®±äÁ¿
»ò
$user=array ("name"=>
$_REQUEST['user_name‘,"age"=>$_REQUEST['age'];//Êý×é±äÁ¿
SQLÓï¾ä¾Í¿ÉÒÔд³É£º
SQLstr = "select * from abc_table where user_name = ' " .
$user_name . " ' ";
SQLstr = "select * from abc_table where user_name = ' " .
$user["name"] . " ' ";
¶Ô±ÈÒ»ÏÂ:
SQLstr="select * from abc_table where user_name = ' abc ' " ;
SQLstr="select * from abc_table where user_name =' " . $user _name .
" ' ";
SQLstr="select * from abc_table where user_name =' " . $user["name"]
. " ' ";
SQLstr¿ÉÒÔ·Ö½âΪÒÔÏÂ3¸ö²¿·Ö:
1£º"select * from table where user_name = ' " //¹Ì¶¨SQLÓï¾ä
2£º$user //±äÁ¿
3£º" ' "
1,2,3²¿·Ö×Ö·û´®Ö®¼äÓÃ"." À´Á¬½Ó
Ïà¹ØÎĵµ£º
php¹Ø¼ü´Ê
phpÖÐÓÃÓÚÎļþ°üº¬µÄ¹Ø¼ü´ÊÓÐ:include¡¢include_once¡¢require¡¢require_once¡£Ò»°ãÀ´Ëµ£¬°ÑincludeºÍrequire·ÖÔÚÒ»×éÀ¶øinclude_onceºÍrequire_onceÊÇÒ»ÖָĽøÍêÉÆÐÎʽ¡£±¾ÎÄͨ¹ýÑо¿includeºÍrequireµÄÐÔÖÊ£¬¼æ¹Ëinclude_onceºÍrequire_once£¬»ñµÃphpÎļþ°üº¬µÄ»ù±¾ÖªÊ¶ºÍDZÔÚ ......
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 ......
$_FILES['myFile']['name'] ¿Í»§¶ËÎļþµÄÔÃû³Æ¡£
$_FILES['myFile']['type'] ÎļþµÄ MIME ÀàÐÍ£¬ÐèÒªä¯ÀÀÆ÷Ìṩ¸ÃÐÅÏ¢µÄÖ§³Ö£¬ÀýÈç"image/gif"¡£
$_FILES['myFile']['size'] ÒÑÉÏ´«ÎļþµÄ´óС£¬µ¥Î»Îª×Ö½Ú¡£
$_FILES['myFile']['tmp_n ......
±¾ÎÄת×Ô http://hi.baidu.com/kxw102/blog/item/f1303188d9c148bb0e2444f2.html£¬¸Ðл×÷ÕߵķÖÏí
ÔÚ
PHP
ÖУ¬»ù±¾Êý¾Ý¿ÉÒÔ·ÖΪ³£Á¿ºÍ±äÁ¿Á½ÖÖ¡£³£Á¿ÃûºÍ±äÁ¿Ãûͨ³£³ÆΪ±êʶ·û¡£(
ÐèҪעÒâµÄÊDZêʶ·û±ØÐëÒÔ×Öĸ»òÕßÏ»®Ïß¿ªÍ·£¬²¢ÇÒÖ»ÄÜ°üÀ¨×Öĸ¡¢Êý×ÖºÍÏ»®Ïß
)
ÀýÈ磺
my_function¡¢Size¡¢
_BlackµÈµÈ
1.ÏÂÃæËµÏ ......