Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将Jquery变量发送到Php以调整大小_Php_Jquery - Fatal编程技术网

将Jquery变量发送到Php以调整大小

将Jquery变量发送到Php以调整大小,php,jquery,Php,Jquery,我正在尝试从jquery脚本发送一个变量(图像的url)。。。到一个php字符串 我需要使用timthumb“resizeimagenoecho($value,64,64,auto,2)”处理show.showimage jQuery('.dj_name').html(show.dj_name); jQuery('.show_name').html(show.show_name); if(show.show_图像){ jQuery('.show_image').attr('src',show.s

我正在尝试从jquery脚本发送一个变量(图像的url)。。。到一个php字符串

我需要使用timthumb“resizeimagenoecho($value,64,64,auto,2)”处理show.showimage

jQuery('.dj_name').html(show.dj_name);
jQuery('.show_name').html(show.show_name);
if(show.show_图像){
jQuery('.show_image').attr('src',show.show_image).show();
$.post($)http://www.digitalark.ro/dieselfm/wp-content/themes/vice/p_player_trance.php“,”val='+show.show_图像,函数(响应){
});
}否则{
jQuery('.show_image').hide();
}
});
}
当前显示信息();
设置间隔(当前显示信息,60000);
我不确定我走的是对的。。嗯


谢谢

您的问题是什么?show.show\u name的价值是什么?show.showname是一个图像URL。。。我需要在javascript之外使用它。。。。在php中$resizedimg='';echo($resizedimg)。。。其中$value是show.show_name您应该更新您的问题,以明确您期望的结果是什么以及当前的问题是什么。
jQuery('.dj_name').html(show.dj_name);
                    jQuery('.show_name').html(show.show_name);
                    if (show.show_image) {
                        jQuery('.show_image').attr('src',show.show_image).show();

                        $.post('http://www.digitalark.ro/dieselfm/wp-content/themes/vice/p_player_trance.php', 'val='+ show.show_image, function (response) {

   });

                    } else {
                        jQuery('.show_image').hide();
                    }
                });
            }
            curr_show_info();
            setInterval(curr_show_info,60000);

</script>

<?
$value = $_POST['val'];
$resizedimg = '<img class="resizedimg" src=" ' . resizeimagenoecho( $value, 64, 64, auto, 2 ) . ' "/>';
echo ($resizedimg);
?>