<?php class FanyiAction extends Action { public function _empty(){ header("HTTP/1.0 404 Not Found"); $this->display("Public:404"); } public function index() { $User = A("Index"); $User->head(); $User->right(); $User->footer(); $this->display(); } public function fanyi() { $value=$_POST['value']; $from="auto"; $to="auto"; $value_code=urlencode($value); $appid="xxxxxxxx";//這里填寫(xiě)你在百度上申請(qǐng)的API key $languageurl = "http://openapi.baidu.com/public/2.0/bmt/translate?client_id=" . $appid ."&q=" .$value_code. "&from=".$from."&to=".$to; $text=json_decode($this->language_text($languageurl)); $text = $text->trans_result; $rs=$text[0]->dst; $this->assign('value',$value); $this->assign('rs',$rs); $User = A("Index"); $User->head(); $User->right(); $User->footer(); $this->display('index'); }
Baidu Translation? Baidu? ??? ??? ?? ????, ??? ??? ??? ??? ?? ??? ??? ???? ???? ?? ??? ???? ??? ???? ???? ??? ?? ? ??? ?????.
??? ??? ???, ??, ???, ???, ????, ???, ????, ???, ?????, ????, ???, ?????, ?????, ????, ??????, ????? ? ? ?? 28? ?? ??? ??? ?????. ????, ????, ????, ???, ?????, ????, ??????, ????, ????, ???, ??? ?? ? ??? ??? 756? ?? ??? ?????.
"??? ???? Baidu? ??? ? ? ?????." Baidu Translate? ? ??, ??? APP ? ??? ?? ??? ??? ??? ???? ?? ??? ???? ????? ???? ???? ?? ?? ?? ??? ?????. ??. ??? ?? ??? ???? ??? ?? ??? ???? ? ??? ??, ??? ??, ??? ??, ?? ?? ??, ???? ??, ?? ??, ?? ??, ?? ??, ?? ?? ?? ??? ??????. , ???? ?? ?? ??? ?? ? ??? ???.
??? ??? 2013? 2? 28? ??? ?? ????? ???? ????? ??? ?????? ?? ????, 2013? 3? 7? iOS ??? ?????? ?? ??????. 2015? 5??? ?? ??? ??? NMT ??? ??? ?????(NMT) ???? ???????. 2015? 6??? ???, ??, ???, ??? ? ???? ???? ???? ???? NMT ???? ????. 2016? 7? 5?, Baidu Human Translation? ?? ???? ????? ??? ?? ?? ???? ???? ??? ?????? ???? ?? ?? ??? ?? ????? ???? ?? ??? ??? ????.
? ???? ?? ???? ???? ????? ?? ???? ????? ????????. ?????? ???? ?? ??????! ? ???? ?? ???? ?? ?????? ?????. ??? ???? ???? ??? ????. ??? ??? ?? ??? ?? ??? ???? ????! ??? ?? ?? ??? ???? ????? ????. ???: admin@php.cn
?? ??

29 Jul 2016
??? ?? ??? ?? ?? ?????: ??? ?? ??? ?? ?? ????? ??? ?? ????(1): ? ??? ?????? ???? ??? ??? ??: # ------ --- --------------------- # # ??? ??? ?? 'author' # CREATE TABLE ??? ( author_id int (6) DEFAULT '0' NOT NULL auto_increment, first_name varchar(20)

29 Jul 2016
??? ?? ??? ?? ??: ??? ?? ??? ?? ?? php ??? ?? ?? ?? ??? ??: ??? ?? ??? ?????: <?php /** ?? ????**/ class DefaultController extends AppController { public function index() { $len = 5 ; $str = "ABCDEFGHIJKLNMPQRSTUVWXYZ123456789"; $im = imagecreatetruecolor (70, 20);

29 Jul 2016
??? ?? ??? ?? ?? : ??? ?? ??? ?? ?? ?? ?? ???? (2) : ?? ???? ?? ?? : <? if(!$UploadAction): ?> <? ??? ???. //???: Kong Xiuxiang. Date: 2001/3/24 /* session_start(); if (!isset($auth_passed)) { echo "? ??? ??? ???? ??? ? ????." } if(isset($u_name)) {

26 Mar 2025
? ??? & lt; thread & gt; ???, ?? ? ??? ?? ??. ?? ??? ??????? ?? ??? ???? ??? ?????.


??? ??

??? ?? ????? PHP ?????
??? ?? ????? PHP ?????

50?? ??? ??? PHP ???? ??
??? PHP ????, ??? ????? ??? ???? ?????

??? ???? ?? ?? PHP ?????
??? ???? ?? ?? PHP ?????
