플래시-php 소스 > 자유게시판

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!

자유게시판

플래시-php 소스 정보

기타 플래시-php 소스

첨부파일

project_files_pc.zip (120.7K) 32회 다운로드 2005-06-13 14:52:42

본문

플래시-php  소스
머하는 소스지?
database 어쩌구 저쩌구 ....

Introducing the AMFPHP Project
When building Rich Internet Applications with Macromedia Flash MX, developers often need to interact with data and information contained on their web servers. The most compelling and easy-to-use method came along with the introduction of Macromedia Flash Remoting MX. Macromedia Flash Remoting MX connects Macromedia Flash and your web application server, integrating rich Macromedia Flash content with applications built using Macromedia ColdFusion MX, Microsoft .NET, Java, and SOAP-based web services.

Macromedia Flash Remoting is a great technology. However, if your development efforts revolved around a LAMP-style environment, there wasn’t a way to integrate Flash Remoting with your project without deploying additional server software and or hardware—until now.

An open source project known as AMFPHP has built a solution for developers who need to integrate Macromedia Flash with PHP. According to the developers of AMFPHP, “Flash Remoting for PHP enables objects in PHP to become objects in ActionScript … AMFPHP takes care of all the data-type conversions, serialization, and other client-server details. This provides a great way of connecting rich media clients with data and logic living on the server.”

The AMFPHP project has replicated almost all of the basic features and functionality of Macromedia Flash Remoting MX server. If you are wondering about the name of the project, the AMF in AMFPHP stands for Action Message Format. AMF is a binary format that can be delivered over regular HTTP and is the core of Macromedia Flash Remoting. AMF is essentially a lightweight binary version of SOAP.

The AMFPHP project is currently in a development state; it has not yet reached a full 1.0 release. However, as of this writing, I have found the current release 0.5.1 to be quite robust and capable. The project also appears to be a hotbed of development activity. If you are curious, check out the CVS (content versioning system) archives for the project source files at the project’s SourceForge page. (Developers have recently added the setCredentials feature of Macromedia Flash Remoting to the latest development build found in the CVS repository of AMFPHP, although it hasn’t made it into a release yet.) If you would like to experiment with the very latest version, you need to check it out of CVS manually. Throughout this article, I am referring to the currently available release: 0.5.1.

Note: If you upgrade to the full 1.0 release, the new setCredentials feature in AMFPHP renders the roles key in the ServerInfoService class unnecessary. You need to remove the roles key from the ServerInfoService method table and use the new setCredentials functionality. Consult the documentation at the AMFPHP website for more details.

The latest release of AMFPHP has some very good documentation and excellent examples. Also, more and more articles and examples have been showing up around the Internet recently as folks discover this alternative method of working with external data in Macromedia Flash.

In this article, you will learn how to get AMFPHP working through an example that is custom-tailored for the LAMP environment. The finished sample application will help you monitor the status of your LAMP system. An added bonus: You can add this application directly to the Macromedia Flash MX authoring environment as a window that enhances your development productivity.

Requirements
To successfully complete this tutorial, you should have an understanding of the terminology and concepts behind Macromedia Flash Remoting, its implementation and usage in Macromedia Flash MX, and a working knowledge of PHP. Familiarity with object-oriented programming will also come in handy.

A LAMP system

Your LAMP system can comprise a Linux operating system (or a *NIX variation such as Mac OS X) running Apache 1.3.x, MySQL 3.23.x, and PHP 4.x. You also need shell and FTP access to your server so you can install files and run scripts.

Since Apache, MySQL, and PHP are cross-platform, Linux isn’t the only operating system on which you can deploy them. You can easily apply this article to many variants of Linux as well as to Mac OS X 10.2.x and Microsoft Windows-based operating systems running Apache, MySQL, and PHP.

Some of the PHP code in the tutorial files that accompany this article relies on shell commands that let PHP communicate with and retrieve information from the underlying host operating system. In particular, the ps command for viewing running processes has many variations. The PHP code takes this into account; I’ve tested and tailored it to work with Red Hat Linux 7.x, Mac OS X 10.2.x, and SunOs 5.6 (Solaris 2.6). However, there can still be slight differences in passed arguments, implementation, and execution of these commands on other Linux variants and even on other builds or versions of these operating systems. The PHP files should provide a good basis for those of you who are willing to dig in and customize the files. It’s possible to make them work on just about any system capable of running Apache, MySQL, and PHP.

Windows 2000 Server: As a bonus, there is support for deploying the PHP-based web service in this article on a Windows 2000 server. However, to replicate the functionality of some common utilities found on Linux and UNIX systems that are used by the PHP code in this tutorial, you must install a handful of utilities available with the Microsoft Windows 2000 Resource Kit and a few shareware and freeware utilities. You can find links to these software downloads embedded in the comments in the ServerInfoService.php file that list the additional software needed for deployment on Windows 2000 systems. All of the additional software is freely available and downloadable over the Internet.

In addition, the script should also work fine when deployed using Microsoft IIS 4 (Internet Information Server) and higher as long as you have PHP and MySQL installed and know the names and locations of the log files.

Note: If you would like to learn more about the differences between the individual operations of the portions of PHP script that differ when deployed on a Windows 2000 system versus a Linux system, take a look at this reference that compares equivalent Linux and Windows 2000 command line utilities: http://www.msi.umn.edu/llsda/ntunix.html.

There is also a resources section at the end of the article that will point you in the right direction in case you need help getting Apache, MySQL, and PHP set up on your particular operating system.
추천
0

댓글 3개

전체 2,870 |RSS
자유게시판 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT