帮小弟我看一下两个有关问题
帮我看一下两个问题
1. 现有一张图片被切割成大小相同的4张小图片,现在怎样把这4张小图片合并生成原来的图片
2.请简述如果使用Discuz!搭建一个半小时10万人在线的论坛
第一个问题用imagecopy可以完成吗?(坐标通过计算可以获得的吧) 还是一定要用imagemagick
第二问题要怎样搭建,不是安装下就好了, 呵呵,本身discuz就有缓存了啊。。不要要怎么回答?呵
------解决方案--------------------
1、可以, imagecopy 就可以了
2、这人与你有同样的问题
------解决方案--------------------
晕 楼上连09年的帖子都找出来了。
------解决方案--------------------
第二个问题,半小时10万人在线,这个概念过于模糊。
如果是峰值同时10万人在线,请直接联系Discuz进行大客户支持,并确保有至少1千万RMB以上的资金可供随时使用。
简单说的话,可预见的最小架构 大致需要 前端2台负载均衡设备,后接3-5台web,后接2-5台cache,最后3-5台DB,这还只是单一机房、单一运营商的情况,如果需要要应对电信和网通的不同用户,还需要考虑在其他机房进行类似级别的部署、或者选择多线BGP机房。
如果对可用性和响应要求很高的话,还需要考虑异地灾备集群和CDN之类的。
.
.
.
.
.
.
所以一拍脑袋就给评估数据神马的最讨厌了...
------解决方案--------------------
这是什么面试题吧?
10万在线这是让开发php的去架设的么? 月薪低保能供养3个2奶么?
------解决方案--------------------
你直接说,靠:你扯淡的吧。
------解决方案--------------------
imagecopy 的用法
//先找一张图片读回来
$s = file_get_contents('http://www.jsgoldfoil.com/tongqi/images/D001-x.jpg');
$sim = imagecreatefromstring($s);
$w = imagesx($sim);//图片宽
$h = imagesy($sim);//图片高
$im =imagecreatetruecolor($w * 2, $h * 2);//建一图片
//分区拷贝
imagecopy($im, $sim, 0, 0, 0, 0, $w, $h);
imagecopy($im, $sim, 0 + $w, 0, 0, 0, $w, $h);
imagecopy($im, $sim, 0, 0 + $h, 0, 0, $w, $h);
imagecopy($im, $sim, 0 + $w, 0 + $h, 0, 0, $w, $h);
//生成
imagejpeg($im);
你看看,多简单
GD 还提供了你想象的到和你想象不到的众多的函数

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The solution to the Discuz background login problem is revealed. Specific code examples are needed. With the rapid development of the Internet, website construction has become more and more common, and Discuz, as a commonly used forum website building system, has been favored by many webmasters. However, precisely because of its powerful functions, sometimes we encounter some problems when using Discuz, such as background login problems. Today, we will reveal the solution to the Discuz background login problem and provide specific code examples. We hope to help those in need.

"Exploring Discuz: Definition, Functions and Code Examples" With the rapid development of the Internet, community forums have become an important platform for people to obtain information and exchange opinions. Among the many community forum systems, Discuz, as a well-known open source forum software in China, is favored by the majority of website developers and administrators. So, what is Discuz? What functions does it have, and how can it help our website? This article will introduce Discuz in detail and attach specific code examples to help readers learn more about it.

A must-have for Discuz users! Comprehensive analysis of renaming props! In the Discuz forum, the name change function has always received much attention and demand from users. For some users who need to change their name, name change props can easily modify the user name, and this is also an interesting way of interaction. Let’s take an in-depth look at the renaming props in Discuz, including how to obtain them, how to use them, and solutions to some common problems. 1. Obtain name-changing props in Discuz. Name-changing props are usually purchased through points or the administrator

What should I do if I encounter an incorrect Discuz password? Quick solution sharing! Discuz! It is a very popular forum program that provides users with a platform for convenient communication. Using Discuz! When accessing a forum, sometimes you may encounter an incorrect password, which may cause users to be unable to log in and use the forum normally. Well, meet Discuz! When the password is wrong, how should we quickly solve the problem? Some solutions will be shared below, with specific code examples provided for reference. 1. Check whether the password

Discuz Editor: An efficient post layout tool. With the development of the Internet, online forums have become an important platform for people to communicate and share information. In the forum, users can not only express their opinions and ideas, but also discuss and interact with others. When publishing a post, a clear and beautiful format can often attract more readers and convey more accurate information. In order to facilitate users to quickly type and edit posts, the Discuz editor came into being and became an efficient post typesetting tool. Discu

"Detailed Explanation of Discuz Registration Process: Allowing you to easily modify personal information, specific code examples are required" Discuz is a powerful community forum program that is widely used in various websites. It provides a wealth of user registration and personal information modification. functions and interfaces. This article will introduce you to Discuz's registration process in detail and provide specific code examples to help you easily customize and modify your personal information. 1. User registration process In Discuz, user registration is one of the important functions of the site. The smoothness of the registration process and

Discuz Domain Name Modification Operation Guide In the process of using the Discuz forum system, sometimes we need to modify the domain name of the forum. It may be because the domain name needs to be changed, or some domain name resolution problems need to be repaired. This article will introduce in detail how to modify the domain name in the Discuz forum system, and give some specific code examples. 1. Back up data Before performing any operation, we must back up the data to prevent data loss due to operational errors. In Discuz, you can use the background data backup

Discuz background login failed? Teach you how to solve it easily! As Discuz, as a popular forum platform, is widely used in website construction and management, sometimes you will encounter backend login failures, which is troubling. Today we will discuss the issues that may cause Discuz backend login failure, provide some solutions, and attach specific code examples. I hope this article can help webmasters and developers who encounter similar problems. 1. Troubleshooting is to solve the problem of Discuz background login failure.
