javascript call php function for baidu
Moderator: General Moderators
-
jason123456
- Forum Newbie
- Posts: 1
- Joined: Mon Sep 22, 2014 9:12 pm
javascript call php function for baidu
Last edited by jason123456 on Tue Sep 23, 2014 1:22 am, edited 4 times in total.
Re: javascript call php function
First things first, have you confirmed that the PHP script is working properly? If you hit the script directly without the AJAX request, do you get the expected output?
Re: javascript call php function
Code: Select all
function b($o){
// no show out logic
$text=json_decode(language_text($url));
$text = $text->trans_result;
return $text[0]->dst;
}