PHP MySQL中间轮胎 [英] Middle Tire in PHP MySQL

查看:51
本文介绍了PHP MySQL中间轮胎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Devs,


我正在考虑实施一个中间轮胎(最有可能是XML)

用于PHP MySQL网络应用程序但不能''走一条路。可以任何一个

建议我如何继续这个。


提前谢谢。

Hi Devs,

I was thinking of implementing a middle tire (most probably in XML)
for a PHP MySQL web app but couldn''t make a head way. can any one
suggest how can i proceed with this.

Thanks in advance.

推荐答案

Kumar Saurabh写道:
Kumar Saurabh wrote:
Hi Devs,

我正在考虑实施中间轮胎(最有可能是XML)对于PHP MySQL网络应用程序,但无法做头。任何人都可以建议我如何处理这个。

提前致谢。
Hi Devs,

I was thinking of implementing a middle tire (most probably in XML)
for a PHP MySQL web app but couldn''t make a head way. can any one
suggest how can i proceed with this.

Thanks in advance.




我认为你的意思是Tier :)


在多层应用程序中,每个层执行某些任务。让我们采用一个

3层系统并将其分解。


第1层:用户界面。与

应用程序服务器通信的浏览器或PC应用程序。

第2层:应用程序服务器:每个应用程序服务器进程一般,但是

并不总是多线程/可重入,因此一个服务器进程可以处理多个用户界面

连接。这个过程负责处理业务逻辑和其他验证程序
以及

与下一层通信。


层-3:进一步处理数据,并负责将数据存储在数据存储(平面文件或数据库)中。


现在,如果您理解这一点多层架构的非常基本的定义,

这意味着你会增加一层不必要的复杂性,因为你可能不需要或者完全不需要你的b $ b级别的难度了解。作为一个

学习练习,这可能很有价值。


在GCC,VCC,VB中编写一个前端(基于Windows或Linux的)应用程序

XML输出然后与运行JAVA应用程序的应用程序服务器进行通信

然后与您的PHP应用程序通信以将数据存储在MySQL中。数据混淆的水平几乎是无限的。


-

Michael Austin。

顾问 - 不可用。

捐款仍然欢迎。 Http://www.firstdbasource.com/donations.html

:)



I think you mean Tier :)

In a multi-tier application each tier performs certain tasks. Let''s take a
3-tier system and break them down.

Tier-1: User Interface. Browser or PC app that communicates with an
Application server.

Tier-2: Application Server: Each application server process is generally, but
not always multi-threaded/re-entrant such that multiple User Interface
connections can be handled by one Server process. This process is responsible
for handling business logic and other validation routines as well as
communicating with the next Tier.

Tier-3: Further processes the data and is responsible for storing it in a data
store (flat-file or database).

Now if you understand this very basic definition of a multi-tier architecture,
this means that you would add a layer of unnecessary complexity by introducing a
level of difficulty that you may not need nor completely understand. As a
learning exercise this could be valuable.

Write a front-end (Windows or Linux-based) app in GCC, VCC, VB that generates
XML output that then communicates with an application server running a JAVA app
that then communicates with your PHP app to store the data in MySQL. The levels
of data obfuscation are virtually unlimited.

--
Michael Austin.
Consultant - NOT Available.
Donations STILL welcomed. Http://www.firstdbasource.com/donations.html
:)


如果你想知道如何使用

PHP / MySQL实现多层架构,那么请查看
http://www.tonymarston。 co.uk/php-mys...structure.html 。这有以下属性

: -


(a)演示文稿中包含单独组件的3层架构,

Business和数据访问层。

(b)模型 - 视图 - 控制器(MVC)设计模式,具有单独的组件,用于模型,视图和控制器。

(c)业务和数据访问层中面向对象的组件。

(d)所有XHTML输出都是从动态创建的XML文件和XSL产生的。
转换。


请注意!这不适合胆小的人!


它看起来很复杂,但一旦你明白了,你就可以很快创建新的

组件。
< br $> b $ b -

Tony Marston

http://www.tonymarston.net

" Kumar Saurabh" <ク************** @ gmail.com>在消息中写道

news:13 ************************** @ posting.google.c om ...
If you want to know how to implement a multi-tier architecture with
PHP/MySQL then take a look at
http://www.tonymarston.co.uk/php-mys...structure.html. This has the
following attributes:-

(a) 3-Tier architecture with separate components in the Presentation,
Business and Data Access layers.
(b) Model-View-Controller (MVC) Design pattern with separate components for
the Model, View and Controller.
(c) Object Oriented components in the Business and Data Access layers.
(d) All XHTML output is produced from dynamically created XML files and XSL
Transformations.

Be aware! This is not for the faint hearted!

It looks complicated, but once you understand it you can create new
components very quickly.

--
Tony Marston

http://www.tonymarston.net

"Kumar Saurabh" <ku**************@gmail.com> wrote in message
news:13**************************@posting.google.c om...
Hi Devs,

我正在考虑为PHP MySQL Web应用程序实现中间轮胎(最可能是XML)
但是无法制作头道。任何人都可以建议我如何处理这个问题。

提前致谢。
Hi Devs,

I was thinking of implementing a middle tire (most probably in XML)
for a PHP MySQL web app but couldn''t make a head way. can any one
suggest how can i proceed with this.

Thanks in advance.





Michael Austin <毫安***** @ firstdbasource.com>在消息中写道

news:bP ****************** @ newssvr22.news.prodigy.c om ...

"Michael Austin" <ma*****@firstdbasource.com> wrote in message
news:bP******************@newssvr22.news.prodigy.c om...
Kumar Saurabh写道:
Kumar Saurabh wrote:
Hi Devs,

我正在考虑为PHP实现中间轮胎(最可能是XML)
MySQL网络应用程序,但无法做头。任何人都可以建议我如何处理这个问题。

提前致谢。
我认为你的意思是Tier :)

层应用程序每层执行某些任务。让我们采取一个3层系统并将其分解。

第1层:用户界面。与应用程序服务器通信的浏览器或PC应用程序。

第2层:应用程序服务器:每个应用程序服务器进程一般,但并不总是多线程/重新进入者,以便一个服务器进程可以处理多个用户界面连接。这个过程负责处理业务逻辑和其他验证程序以及与下一层进行通信。
Hi Devs,

I was thinking of implementing a middle tire (most probably in XML)
for a PHP MySQL web app but couldn''t make a head way. can any one
suggest how can i proceed with this.

Thanks in advance.
I think you mean Tier :)

In a multi-tier application each tier performs certain tasks. Let''s take
a 3-tier system and break them down.

Tier-1: User Interface. Browser or PC app that communicates with an
Application server.

Tier-2: Application Server: Each application server process is
generally, but not always multi-threaded/re-entrant such that multiple
User Interface connections can be handled by one Server process. This
process is responsible for handling business logic and other validation
routines as well as communicating with the next Tier.




3层体系结构并不一定意味着在表示层和数据访问层之间有一个应用程序

服务器。你是'b $ b'混淆''逻辑''3层结构与''物理''3层结构。


在''逻辑'' 3层结构中间层称为Business

层,是处理所有业务规则的地方。

可以在同一台机器上实现所有3层(层),甚至没有提示

应用服务器。我知道,因为我用两种不同的b
语言。这是一个纯粹的软件。


当一个应用程序达到一个大小,其中所有三层超载单个

设备,然后其中一个选项是放置每个将这些图层放到另一台机器上。然后,这将成为一个物理3层结构,并且可能需要使用应用程序服务器的功能来处理业务层组件的所有元素。


您应该注意,除非您的软件已经拆分为逻辑3层,否则无法实现物理3层

结构。

第3层:进一步处理数据,并负责将数据存储在数据存储(平面文件或数据库)中。

现在,如果您了解这一点非常基本定义一个多层的架构,这意味着你会通过引入一些你可能不需要也不完全理解的难度来增加一层不必要的复杂性。作为一个学习练习,这可能很有价值。

在GCC,VCC,VB中编写一个前端(基于Windows或Linux的)应用程序,它生成XML输出,然后与应用程序通信服务器
运行JAVA应用程序


没有必要限制Presentation

和Business层之间的通信以传递XML文件。我使用XML,但只是将它从一系列XSL文件转换为XHTML。

然后与您的PHP应用程序通信以将数据存储在MySQL中。数据混淆的级别实际上是无限的。



The 3-Tier architecture does NOT necessarily mean having an application
server between the Presentation layer and the Data Access layer. You are
confusing a ''logical'' 3 tier structure with a ''physical'' 3 tier structure.

In a ''logical'' 3 tier structure the middle tier is known as the Business
layer and is where all the business rules are processed. It is possible to
implement all 3 tiers (layers) on the same machine without even a hint of an
application server. I know because I have done so in two different
languages. This is a purely software thing.

When an application reaches a size where all three layers overload a single
device then one of the options is to put each of the layers onto a different
machine. This then becomes a ''physical'' 3 tier structure, and it may be
necessary to have the capabilities of an application server to handle all
the business layer components.

You should note that it is not possible to implement a physical 3 tier
structure unless your software has already been split into logical 3 tier.
Tier-3: Further processes the data and is responsible for storing it in a
data store (flat-file or database).

Now if you understand this very basic definition of a multi-tier
architecture, this means that you would add a layer of unnecessary
complexity by introducing a level of difficulty that you may not need nor
completely understand. As a learning exercise this could be valuable.

Write a front-end (Windows or Linux-based) app in GCC, VCC, VB that
generates XML output that then communicates with an application server
running a JAVA app
It is not necessary to restrict the communication between the Presentation
and Business layers to the passing of XML files. I use XML, but only to have
it transformed into XHTML from a series of XSL files.
that then communicates with your PHP app to store the data in MySQL. The
levels of data obfuscation are virtually unlimited.




但是如果你的级别太高,你的应用程序可能会变得如此笨重,以至于

它几乎没用。我已经看完了。


-

Tony Marston

http://www.tonymarston.net



But if you have too many levels your application may become so unwieldy that
it is virtually useless. I have seen it done.

--
Tony Marston

http://www.tonymarston.net


这篇关于PHP MySQL中间轮胎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆