真人网上娱乐双层foreach循环，取出key相等的元素，组成新数组返回，如何优化成一层循环？

( 真人网上娱乐 )

if(\$arr1 && \$arr2) {

``````        foreach(\$arr1 as \$key1 => \$val1) {
foreach(\$arr2 as \$key2 => \$val2) {
if(\$val1['orderId'] == \$val2['orderId']) {
\$arr1[\$key1]['transId'] = \$val2['transId'];
}
}
}
}``````

``````
if(\$arr1 && \$arr2) {
\$ids = array_column(\$arr2,'orderId');
foreach(\$arr1 as \$key1 => \$val1) {

if(in_array(\$val1['orderId'] , \$ids)) {
\$arr1[\$key1]['transId'] = \$val1['orderId'];
}

}
}``````

``````\$arr1 = array(
array(
'orderId' => 1,
),
array(
'orderId' => 2,
),
array(
'orderId' => 3,
),
array(
'orderId' => 4,
),
array(
'orderId' => 5,
),
array(
'orderId' => 6,
),
);
\$arr2 = array(
array(
'orderId' => 2,
'transId' => 100001,
),
array(
'orderId' => 4,
'transId' => 100002,
),
array(
'orderId' => 5,
'transId' => 100003,
),
);

if( \$arr1 && \$arr2) {
// `orderId` used for index
\$index_key = 'orderId';
\$column_key = 'transId';
\$columns = array_column(\$arr2, \$column_key, \$index_key);

foreach(\$arr1 as &\$val){
\$_key = \$val[\$index_key];
if( array_key_exists(\$_key, \$columns) ) {
\$val[\$column_key] = \$columns[\$_key];
}
}

print_r(\$arr1);
}``````

(看完/读完)这篇文章有何感想！ 真人网上娱乐的分享…

真人亚洲娱乐请问thinkphp这种情况U函数怎么生成？

( 真人亚洲娱乐 )

``````var id = 123;
XHR.open('get','{:U("shop/goods/type_del", array("id" => id))}',false);
``````

U方法在JS的这种情况下是不是无能为力了啊！！！

{:U(“shop/goods/type_del”)?id=}id

``````var id = 123;
XHR.open('get','{:U("shop/goods/type_del")}?id='+id,false);``````

``U("shop/goods/type_del")+'?id='+id``

(看完/读完)这篇文章有何感想！ 真人亚洲娱乐的分享…

真人娱乐PHP程序员学C语言？

( 真人娱乐 )

``````// cflags: -o /var/www/cgi-bin/test.cgi

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
printf("Content-Type: text/plain\n\n");

char *qs = getenv("QUERY_STRING");
if(!qs) exit(-1);

char* equ = strchr(qs, '=');
if(equ) *(equ++) = '\0';

if(strcmp(qs, "name"))
printf("Parameters incorrect.");
else
printf("Hello Mr./Mrs. %s", equ);

return 0;
}``````

c要和系统api结合起来，才能干些事情，不过说到底，这些功劳都是系统api的，与c关系不大。

C语言 能干什么 不重要 学编程C能让你彻底理解内存~彻底学会从程序的角度思考问题~

php就是c写的，你说呢？

c语言特别适合写操作系统等性能要求较高的地方

(看完/读完)这篇文章有何感想！ 真人娱乐的分享…

真人娱乐php索引数组按需处理成关联数组？

( 真人娱乐 )

``````//需求
\$arr = array('100', '101', '102', '103', '104', '105');
\$newArr = array(array('id'=>'100'), array('id'=>'101'), array('id'=>'102'), array('id'=>'103'), array('id'=>'104'), array('id'=>'105'));
//我的处理方式是
\$newArr = [];
foreach(\$arr as \$val) {
\$newArr[] = array('id'=>\$val);
}
``````

array_map()函数可以实现你的需求：

``````\$arr = array('100', '101', '102', '103', '104', '105');
function make(\$v)
{
return array('id'=>\$v);
}

\$newArr=array_map('make', \$arr);
var_dump(\$newArr);
//多谢楼下坛友建议
\$newArr=array_map(function (\$v){return array('id'=>\$v);},\$arr);``````

(看完/读完)这篇文章有何感想！ 真人娱乐的分享…

真人亚洲娱乐一个商品表需要销量这个字段吗？

( 真人亚洲娱乐 )

1. 在你有排序的场景下，销量字段是必须的，并且由于是经常更新的字段，很有可能会按实际情况拆分到子表里，举个例子，goods存储商品信息，goods_counter一对一goods表，并存储各种统计信息，包括不限于销量，查看数，收藏数，点赞数，并根据需要建立索引

2. 很多实际的一定规模（用户数或者数据量）的系统，未必还会使用MySQL做排序，会把数据放入搜索引擎，比如elasticsearch, solr, sphinx等等，然后利用搜索引擎做排序

(看完/读完)这篇文章有何感想！ 真人亚洲娱乐的分享…

真人亚洲娱乐配置apache的虚拟主机时出现这个是什么情况

( 真人亚洲娱乐 )

httpd.conf文件

``````#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "D:/server/apache" will be interpreted by the
# server as "D:/server/apache/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which httpd.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths to avoid confusion.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "D:/server/apache"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule charset_lite_module modules/mod_charset_lite.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_lock_module modules/mod_dav_lock.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
#LoadModule disk_cache_module modules/mod_disk_cache.so
#LoadModule dumpio_module modules/mod_dumpio.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
#LoadModule ldap_module modules/mod_ldap.so
#LoadModule logio_module modules/mod_logio.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
#LoadModule reqtimeout_module modules/mod_reqtimeout.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule ssl_module modules/mod_ssl.so
#LoadModule status_module modules/mod_status.so
#LoadModule substitute_module modules/mod_substitute.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule version_module modules/mod_version.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
###加载PHP模块
LoadModule php5_module 'd:/server/php/php5apache2_2.dll'

###加载PHP配置文件
PHPIniDir "D:\server\php"

###只要是 .PHP格式的文件，都交给PHP模块去处理
AddType application/x-httpd-php .php

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon

</IfModule>
</IfModule>

# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin 470266001@qq.com

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
###允许通过域名进行访问
ServerName www.ws.com:80

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "D:/server/apache/htdocs"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/server/apache/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "logs/error.log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

<IfModule log_config_module>
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common

<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
CustomLog "logs/access.log" common

#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
#CustomLog "logs/access.log" combined
</IfModule>

<IfModule alias_module>
#
# Redirect: Allows you to tell clients about documents that used to
# exist in your server's namespace, but do not anymore. The client
# will make a new request for the document at its new location.
# Example:
# Redirect permanent /foo http://www.ws.com/bar

#
# Alias: Maps web paths into filesystem paths and is used to
# access content that does not live under the DocumentRoot.
# Example:
# Alias /webpath /full/filesystem/path
#
# If you include a trailing / on /webpath then the server will
# require it to be present in the URL.  You will also likely
# need to provide a <Directory> section to allow access to
# the filesystem path.

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the target directory are treated as applications and
# run by the server when requested rather than as documents sent to the
# client.  The same rules about trailing "/" apply to ScriptAlias
# directives as to Alias.
#
ScriptAlias /cgi-bin/ "D:/server/apache/cgi-bin/"

</IfModule>

<IfModule cgid_module>
#
# ScriptSock: On threaded servers, designate the path to the UNIX
# socket used to communicate with the CGI daemon of mod_cgid.
#
#Scriptsock logs/cgisock
</IfModule>

#
# "D:/server/apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "D:/server/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

#
# DefaultType: the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

<IfModule mime_module>
#
# TypesConfig points to the file containing the list of mappings from
# filename extension to MIME-type.
#
TypesConfig conf/mime.types

#
# AddType allows you to add to or override the MIME configuration
# file specified in TypesConfig for specific file types.
#
#AddType application/x-gzip .tgz
#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

# For type maps (negotiated resources):
#AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
</IfModule>

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
#MIMEMagicFile conf/magic

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.ws.com/subscription_info.html
#

#
# MaxRanges: Maximum number of Ranges in a request before
# returning the entire resource, or one of the special
# values 'default', 'none' or 'unlimited'.
# Default setting is to accept 200 Ranges.
#MaxRanges unlimited

#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall is used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
#
#EnableMMAP off
#EnableSendfile off

# Supplemental configuration
#
# The configuration files in the conf/extra/ directory can be
# included to add extra features or to modify the default configuration of
# the server, or you may simply copy their contents here and change as
# necessary.

# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf

# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
#Include conf/extra/httpd-autoindex.conf

# Language settings
#Include conf/extra/httpd-languages.conf

# User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf

# Various default settings
#Include conf/extra/httpd-default.conf

# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
``````

httpd-vhosts.conf文件信息：

``````#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.ws.com
#    DocumentRoot "D:/server/apache/docs/dummy-host.ws.com"
#    ServerName dummy-host.ws.com
#    ServerAlias www.dummy-host.ws.com
#    ErrorLog "logs/dummy-host.ws.com-error.log"
#    CustomLog "logs/dummy-host.ws.com-access.log" common
#</VirtualHost>

#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host2.ws.com
#    DocumentRoot "D:/server/apache/docs/dummy-host2.ws.com"
#    ServerName dummy-host2.ws.com
#    ErrorLog "logs/dummy-host2.ws.com-error.log"
#    CustomLog "logs/dummy-host2.ws.com-access.log" common
#</VirtualHost>

#配置一个book.ws.com的虚拟主机
<VirtualHost *:80>
ServerName book.ws.com
DocumentRoot "D:/server/apache/htdocs/book"
</VirtualHost>``````

(看完/读完)这篇文章有何感想！ 真人亚洲娱乐的分享…

真人娱乐关于thinkphp的一个奇葩的问题

( 真人娱乐 )

``````1.原来增删改查正常
2.现表中添加两个字段use_coin 和 get_coin.
3.增改时post到的数据中可以获取到这个值。
4.但是执行save(\$data)后是这个两个值并没有起作用，其他字段都可以
5.打印\$data包含这两个值，但是打印最后执行sql却没有这两个值。``````

define(‘APP_DEBUG’,False);

define(‘APP_DEBUG’,True);

(看完/读完)这篇文章有何感想！ 真人娱乐的分享…

真人网上娱乐SQLite数据库如何存储图片/语音

( 真人网上娱乐 )

1、HttpConnect获取图片数据；

2、将图像数据转换二进制写入数据库
ContentValues values = new ContentValues();
final ByteArrayOutputStream os = new ByteArrayOutputStream();
bmp.compress(Bitmap.CompressFormat.PNG, 100, os);
values.put(“express_img”, os.toByteArray());
values.put(“express_name”,”zf”);
values.put(“express_no”,”zf”);
getContentResolver().insert(“express”, values);

3、从SQLite中读取Bitmap
byte[] in=cur.getBlob(cur.getColumnIndex(“express_img”));
bmpout=BitmapFactory.decodeByteArray(in,0,in.length);

4、 显示在ImageView上

ImageView imageView = (ImageView) view.findViewById(R.id.img);
ByteArrayInputStream stream = new ByteArrayInputStream(cur.getBlob(cur.getColumnIndex(“express_img”)));
imageView.setImageDrawable(Drawable.createFromStream(stream, “img”));

``````    \$url = "http://....../logo.png";
\$handle = fopen(\$url,"rb");
\$contents = fread(\$handle,filesize(\$url));``````

var_dump(\$contents);

(看完/读完)这篇文章有何感想！ 真人网上娱乐的分享…

真人网上娱乐PHP微信 图文消息详情页

( 真人网上娱乐 )

(看完/读完)这篇文章有何感想！ 真人网上娱乐的分享…

真人娱乐kcfinder管理图片加载速度太慢了

( 真人娱乐 )

(看完/读完)这篇文章有何感想！ 真人娱乐的分享…

真人娱乐Yii2中数据模型问题

( 真人娱乐 )

RT，刚开始用Yii2，现在想把一些个默认的数据保存在数据表中(setting)，如站点信息、模板设置等，表分为俩字段 key => value，我现在的代码是：

(看完/读完)这篇文章有何感想！ 真人娱乐的分享…

真人娱乐php如何把表单接收到的一些字段转化为图片保存？

( 真人娱乐 )

(看完/读完)这篇文章有何感想！ 真人娱乐的分享…

真人网上娱乐php加载时间的问题

( 真人网上娱乐 )

add，时间都耗在waiting那里…

(看完/读完)这篇文章有何感想！ 真人网上娱乐的分享…

真人网上娱乐在乌云上看到的,一个线程并发漏洞,有人愿给讲讲原理和修复方案吗?

( 真人网上娱乐 )

http://www.wooyun.org/bugs/wooyun-2010-0102881

1. 读取余额

2. 判断是否大于0

3. 余额减一

4. 写回余额

(看完/读完)这篇文章有何感想！ 真人网上娱乐的分享…

真人娱乐写了一个PHP程序，本地测试正常，传到主机上就出问题了

( 真人娱乐 )

``` \$sql = “SELECT * FROM `user` WHERE `name` =
‘”.\$_SESSION[‘username’].”‘”; ``` 这里面的 \$_SESSION[‘username’]

session_start了吗

(看完/读完)这篇文章有何感想！ 真人娱乐的分享…

真人娱乐如何自己搭建在线代码编译器?

( 真人娱乐 )

(看完/读完)这篇文章有何感想！ 真人娱乐的分享…

真人亚洲娱乐laravel中针对session操作的flash类型函数翻译问题？

( 真人亚洲娱乐 )

(看完/读完)这篇文章有何感想！ 真人亚洲娱乐的分享…

真人娱乐如何在php環境 發表文章到facebook fan page?

( 真人娱乐 )

http://stackoverflow.com/ques…

https://developers.facebook.c…

(看完/读完)这篇文章有何感想！ 真人娱乐的分享…

真人娱乐七牛云的内容管理一栏是否不能显示Js文件？怎么没有见到？只是见到图片，CSS文件？问题已解决！

( 真人娱乐 )

(看完/读完)这篇文章有何感想！ 真人娱乐的分享…