Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : php

PHP+AjaxʵÏÖTabЧ¹û

ÓÃAjaxʵÏÖTabЧ¹ûµÄ
ÏÈ´´½¨
ajax.php£¬ÔÚÆäÖÐÊäÈëÈçÏ´úÂ룺
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sample 2_1</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
<!--
//Create a boolean variable to check for a valid Internet Explorer instance.
var xmlhttp = false;
//Check if we are using IE.
function creatXMLHttp(){
 try
 {
  //If the Javascript version is greater than 5.
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  //alert ("You are using Microsoft Internet Explorer.");
 }
 catch (e)
 {
  //If not, then use the older active x object.
  try
  {
   //If we are using Internet Explorer.
   xmlhttp = new ......

PHP+AjaxʵÏÖTabЧ¹û

ÓÃAjaxʵÏÖTabЧ¹ûµÄ
ÏÈ´´½¨
ajax.php£¬ÔÚÆäÖÐÊäÈëÈçÏ´úÂ룺
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sample 2_1</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
<!--
//Create a boolean variable to check for a valid Internet Explorer instance.
var xmlhttp = false;
//Check if we are using IE.
function creatXMLHttp(){
 try
 {
  //If the Javascript version is greater than 5.
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  //alert ("You are using Microsoft Internet Explorer.");
 }
 catch (e)
 {
  //If not, then use the older active x object.
  try
  {
   //If we are using Internet Explorer.
   xmlhttp = new ......

phpµÄzipÀ©Õ¹Ó¦ÓÃÀý×Ó

$zip = new ZipArchive;
$res = $zip->open(UPLOAD_DIR.'/attach.zip', ZIPARCHIVE::CREATE);
if ($res === true) {
       foreach ($fileinfo as $value) {
             $zip->addFile(UPLOAD_DIR.'/'.$value['SAVE_NAME'], $value['REAL_NAME']);
      }
      $zip->close();
} ......

PHPÈëÃŵÚÒ»²½

Ò»£¬PHP½Å±¾´úÂë±ê¼Ç
PHPµÄ½Å±¾ÊÇÎļþÖÐÒ»¶ÔÌØÊâ±ê¼ÇËù°üÀ¨µÄÄÚÈÝ£¬ÈçASPÊÇ“<%....%>”,PHP¿É¿´³ÉÊÇ“<?...?>”¡£
È»¶øΪÁËÊÊÓ¦XML±ê×¼ÒÔ½«PHPǶÈëµ½XML»òXHTMLÖУ¬PHP²»½¨ÒéʹÓö̸ñʽµÄ“<?...?>”£¬¶ø½¨ÒéʹÓó¤¸ñʽ±ê¼Ç“<?php...?>”
´ËÍâPHP´úÂë¿é»¹Ö§³Ö <script language="php">ÌÔ±¦ÍøÍøÉϹºÎïÅ®×°...</script>µÄ±ê¼ÇÐÎʽ¡£
¶þ£¬PHPÖ¸Áî·Ö¸ô·û
PHPµÄÿÌõÓï¾äÐèÒªÓɷֺœ£»”¸ô¿ª£¬µ«¶ÔÓÚPHP½áÊø±ê¼Ç“?>”À´Ëµ£¬ÒòÆä×Ô¶¯Òþº¬Ò»¸ö·ÖºÅ£¬ËùÒÔ²»ÐèҪ׷¼Ó·ÖºÅ¡£
ËùÒÔ£¬Ò»¸öPHP½Å±¾µÄ¸ñʽ¿ÉÈçÏ£º
<?php
/*
............ ;
............ ;
............ ;
............
*/
//×¢Òâ×îºóÒ»ÐпÉÒÔûÓзֺÅ
?>
Èý£¬PHPµÄ×¢ÊÍ
PHP¶àÐÐ×¢ÊÍʹÓà “/* ......... */”
µ¥ÐÐ×¢ÊÍʹÓÓ#”»ò“//”
ËÄ£¬PHPµÄÊä³ö
ASPÖÐʹÓÓ<%=...%>”¿ìËÙÊä³öµ¥ÐУ¬»òʹÓÓ<%Response.Write("...")%>”
ÔÚPHPÖÐÖ±½ÓʹÓÓecho()”»ò“print()”£¬±ÈÈ磺
<?php
echo " ......

PHP: How to Get the Current Page URL

Sometimes, you might want to get the current page URL that is shown
in the browser URL window. For example if you want to let your visitors
submit a blog post to Digg you need to get that same exact URL. There
are plenty of other reasons as well. Here is how you can do that.
Add the following code to a page:
<?php
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
?>
You can now get the current page URL using the line:
<?php
echo curPageURL();
?>

Sometimes it is needed to get the page name only. The following example
shows ......

phpÖÐiconvº¯ÊýʹÓ÷½·¨(ת£©


iconvº¯Êý¿âÄܹ»Íê³É¸÷ÖÖ×Ö·û¼¯¼äµÄת»»£¬ÊÇphp±à³ÌÖв»¿ÉȱÉٵĻù´¡º¯Êý¿â¡£ 
1¡¢ÏÂÔØlibiconvº¯Êý¿âhttp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.9.2.tar.gz£» 
2¡¢½âѹËõtar -zxvf libiconv-1.9.2.tar.gz; 
3¡¢°²×°libiconv 
££configure --prefix=/usr/local/iconv 
#make 
#make install 
4¡¢ÖØбàÒëphp Ôö¼Ó±àÒë²ÎÊý--with-iconv=/usr/local/iconv 
windowsÏÂ
×î½üÔÚ×öÒ»¸öС͵³ÌÐò£¬ÐèÒªÓõ½iconvº¯Êý°ÑץȡÀ´¹ýµÄutf-8±àÂëµÄÒ³Ãæת³Égb2312£¬ ·¢ÏÖÖ»ÓÐÓÃiconvº¯Êý°Ñץȡ¹ýÀ´µÄÊý¾ÝһתÂëÊý¾Ý¾Í»áÎÞÔµÎ޹ʵÄÉÙһЩ¡£ ÈÃÎÒÓôÃÆÁ˺ÃÒ»»á¶ù£¬È¥ÍøÉÏÒ»²é×ÊÁϲÅÖªµÀÕâÊÇiconvº¯ÊýµÄÒ»¸öbug¡£iconvÔÚת»»×Ö·û"—"µ½gb2312ʱ»á³ö´í 
½â¾ö·½·¨ºÜ¼òµ¥£¬¾ÍÊÇÔÚÐèҪת³ÉµÄ±àÂëºó¼Ó "//IGNORE" Ò²¾ÍÊÇiconvº¯ÊýµÚ¶þ¸ö²ÎÊýºó.ÈçÏ£º 
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º 
iconv("UTF-8","GB2312//IGNORE",$data) 
ignoreµÄÒâ˼ÊǺöÂÔת»»Ê±µÄ´íÎó£¬Èç¹ûûÓÐignore²ÎÊý£¬ËùÓиÃ×Ö·ûºóÃæµÄ×Ö·û´®¶¼ÎÞ·¨±»±£´æ¡£
iconv²»ÊÇphpµÄĬÈϺ¯Êý£¬Ò²ÊÇĬÈÏ°²×°µÄÄ£¿é¡£ÐèÒª°²×°²ÅÄÜÓõġ£
    &n ......

Ö§³ÖUCenterµÄPHP½¨Õ¾³ÌÐòÒ»ÀÀ

½¨Õ¾³ÌÐòÊÇÕ¾³¤ÔËÓªÍøÕ¾µÄ¸ù±¾£¬ÈçºÎ½áºÏÕûºÏ¸÷¸ö²»Í¬ÏµÍ³µÄ³ÌÐò¡¢Êý¾Ý±í¡¢¼Ü¹¹£¬ÌṩͳһµÄÍøÕ¾»áԱϵͳ£¬Ò»Ö±ÊÇÀ§ÈźܶàÕ¾³¤µÄÎÊÌ⣬¶øʹÓÃUCenter¿ÉÒÔ½ÏΪ¼òµ¥µÄʵÏÖ²»Í¬ÏµÍ³Ö®¼äµÄÕûºÏÎÊÌâ¡£
¡¡¡¡UCenterÊÇ¿µÊ¢´´ÏëÍƳöµÄÃâ·Ñ¿ªÔ´µÄ½¨Õ¾¹¤¾ß£¬ÊǸ÷¸ö½¨Õ¾²úÆ·Ö®¼äÐÅÏ¢Ö±½Ó´«µÝµÄÒ»¸ö¹¤¾ß£¬¿µÊ¢µÄTeamÔÚÆäDiscuzÂÛ̳ÉÏÊÕ¼¯ÁËÒ»Åú¹Ù·½Ö§³ÖUCenterµÄ½¨Õ¾²úÆ·£¬ÒÔ¶ÔÆä½øÐÐË«ÏòÍƹ㣬ÕâÀïÎÒ¶ÔÕâ¸öÁбí½øÐÐһЩ²¹³ä£¬Ìí¼ÓһЩ×îеĹٷ½ºÍ·Ç¹Ù·½µÄÖ§³ÖUCenterµÄ²úÆ·¡£
¡¡¡¡Ö§³Ö UCenter ½¨Õ¾³ÌÐòÒ»ÀÀ±í
¡¡¡¡Ò»¡¢Discuz!
¡¡¡¡http://www.comsenz.com/products/discuz
¡¡¡¡ÂÛ̳£¨BBS£©³ÌÐòÕ¾³¤Ó¦ÓÃÂʵÚÒ»£¬php£¬¿ªÔ´£¬70ÍòÒÔÉÏÓû§
¡¡¡¡¿µÊ¢´´Ïë¹Ù·½Ö§³ÖUCenter²úÆ·£¬¹Ù·½Discuz!ÂÛ̳»ù´¡Ö®ÉÏÍƳöµÄUCenter²úÆ·
¡¡¡¡ÀúÊ·°æ±¾ Discuz! 6.1.0
¡¡¡¡µ±Ç°°æ±¾ Discuz! 7.0.0
¡¡¡¡¶þ¡¢UCenter Home
¡¡¡¡http://www.comsenz.com/products/uchome
¡¡¡¡¹úÄÚSNS£¨Éç½»ÍøÂ磩½¨Õ¾³ÌÐòÕ¾³¤Ó¦ÓÃÂʵÚÒ»£¬php£¬¿ªÔ´£¬5ÍòÒÔÉÏÓû§
¡¡¡¡¿µÊ¢´´Ïë¹Ù·½Ö§³ÖUCenter²úÆ·
¡¡¡¡ÀúÊ·°æ±¾ UCenter Home 1.0.0 UCenter Home 1.2.0 UCenter Home 1.5.0
¡¡¡¡µ±Ç°°æ±¾ UCenter Home 2.0.0
¡¡¡¡Èý¡ ......
×ܼǼÊý:2174; ×ÜÒ³Êý:363; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [35] [36] [37] [38] 39 [40] [41] [42] [43] [44]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ