FriendSoft foundation PHP 5 for flash

716 538 0
FriendSoft foundation PHP 5 for flash

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Tài liệu về học lập trình web bằng ngôn ngữ PHP cho tất cả mọi người.

[...]... restore them The PHP files you need to remove are php. ini (in the main Windows folder) and php4 ts.dll or php5 ts.dll in the system32 subfolder You should also remove any other PHP- related DLL files from the system32 subfolder They are easy to recognize because they all begin with php 1 Go to www .php. net/downloads .php and select the Windows binaries ZIP file for the latest stable version of PHP At the time... published Foundation PHP for Flash It was very popular, but it has long been out of print, and is now very much out of date It was written in the days of Flash 5, PHP 4.0, and MySQL 3.23 Since then, a lot of water has passed under the bridge The release of ActionScript 2.0 in September 2003 and of PHP 5 ten months later represents a significant milestone in the evolution of both languages Both now have a formal... Figure 1-2 There is no interaction with PHP until the user triggers an event that calls a PHP script This is the case with the application you’ll build in the next chapter—a feedback form that uses PHP to format user input and email it to your mailbox If the user decides not to use the form, the PHP script will never be called In other cases, the Flash movie calls a PHP script as soon as it loads into... stable version of PHP At the time of this writing, it was PHP 5. 0.3 Make sure you choose the right file The version you need should be marked PHP 5. x.x zip package, and it’s about 7.5MB You do not want the PHP Windows installer This runs PHP in a very restricted way and is not suitable for the projects in this book 14 GETTING READY TO WORK WITH PHP When you click the download link, you will be presented... following versions: PHP: 4.3.4, and all versions from 5. 0.0 through 5. 0.3 MySQL: 3.23.38, 4.0.20, 4.0.21, and all versions from 4.1 .5 through 4.1.9 Apache: 1.3.33, 2.0.40, and 2.0.46 phpMyAdmin: 2 .5. 5 and 2.6.0 xvi INTRODUCTION Even if you have the most up-to-date versions on your local computer, your applications could fail when uploaded to a remote server that uses an older configuration The PHP Database... everything on a PowerBook G4 running OS X 10.3, and I’ve given separate instructions for the Mac wherever appropriate Fortunately, PHP and MySQL are almost entirely operating system–neutral, so if I don’t give specific instructions for the Mac, it’s not because I have forgotten or am ignoring you xv INTRODUCTION Support for PHP 5 on versions of Mac OS X prior to 10.3 appears to be very thin on the ground... of PHP and MySQL or it’s still stuck in the past with PHP 4 and MySQL 3.23 All the ActionScript is written using ActionScript 2.0, but Appendix B gives advice on how to adapt it to work in Flash MX, and the download files (available from www.friendsofed.com) include special versions rewritten in ActionScript 1.0 and saved in Flash MX format Who this book is for Although this book is part of the Foundation. .. 6 GETTING READY TO WORK WITH PHP 1 The client computer sends a request to the web server (normally Apache) 2 The server delivers the Flash movie 3 If the Flash movie sends a request to a PHP script (either automatically through ActionScript when initially loading or in response to user interaction), the web server passes the script to the PHP engine for parsing 4 If the PHP script initiates a database... instructions are for a completely new installation of PHP The recommended method of installing PHP on Windows changed in August 2004, and it no longer involves copying DLL files and the configuration file php. ini to the Windows system folders If PHP has never been installed on your computer, simply follow the instructions If you are upgrading an earlier version of PHP, you need to remove any PHP related... using MX 2004 or later, but the minimum requirement is Flash MX (see Appendix B for details on how to convert ActionScript 2.0 to work with MX) You also need the Apache web server, PHP, MySQL, and a copy of a graphical interface for MySQL called phpMyAdmin—all available for download free of charge over the Internet If you’re using Mac OS X, Apache and PHP should already be installed on your computer, although . Debolski Foundation PHP 5 for Flash Copyright © 20 05 by David Powers All rights reserved. No part of this work may be reproduced or transmitted in any form. 219, Berkeley, CA 94710. Phone 51 0 -54 9 -59 30, fax 51 0 -54 9 -59 39, e-mail info@apress.com, or visit www.apress.com. The information in this book is distributed

Ngày đăng: 24/01/2014, 14:35

Từ khóa liên quan

Mục lục

  • Cover

  • CONTENTS

  • ABOUT THE AUTHOR

  • ABOUT THE TECHNICAL REVIEWER

  • ACKNOWLEDGMENTS

  • INTRODUCTION

  • Chapter 1 GETTING READY TO WORK WITH PHP

  • Chapter 2 FLASH BREAKS FREE

  • Chapter 3 CALCULATIONS AND DECISIONS

  • Chapter 4 OF STRINGS AND THINGS

  • Chapter 5 WORKING SMARTER WITHARRAYS AND LOOPS

  • Chapter 6 PHP AND DATABASES: PACKING REALPOWER BEHIND YOUR APPLICATIONS

  • Chapter 7 PLAYING WITH WORDS

  • Chapter 8 CREATING A USER REGISTRATIONDATABASE

  • Chapter 9 PROTECTING YOUR DATAWITH SESSIONS

  • Chapter 10 KEEPING CONTROL WITH A CONTENTMANAGEMENT SYSTEM

  • Chapter 11 WORKING WITH DATES

  • Chapter 12 WORKING WITH MULTIPLETABLES AND XML

  • Appendix A WHEN THINGS GO WRONGWITH PHP AND MYSQL

  • Appendix B CONVERTING APPLICATIONS TOACTIONSCRIPT 1.0

Tài liệu cùng người dùng

Tài liệu liên quan