【发布时间】:2016-02-16 12:22:06
【问题描述】:
在这个question 中,我看到$handle = @fopen($thumb, 'r'); 更改为$handle = @file_get_contents($thumb); 的位置,因为他需要使用file_get_contents 作为字符串。
我遇到了同样的错误,但我没有看到需要更改的 fopen() 元素?这需要在哪里发生?
} elseif( strpos($post_id, 'user_') !== false ) {
$user_id = str_replace('user_', '', $post_id);
$user_id = intval( $user_id );
$v = get_user_meta( $user_id, $field['name'], false );
// value is an array
if( isset($v[0]) ) {
$value = $v[0];
}
【问题讨论】:
-
在strpos之前,使用var_dump($post_id)查看变量的值。
标签: php