SlideShare une entreprise Scribd logo
1  sur  11
Télécharger pour lire hors ligne
New York PHP - Introduction to AMP Technology




  Download
  Presentation




                                 Introduction to AMP Technology
                                                          Technical Overview



                                             NYPHP Internal Presentation
                                                September 25, 2002
                            Presented by Hans Zaunere, Daniel Kushner and Bill Patterson




            http://www.nyphp.org                    http://apache.org         http://mysql.com   http://php.net   9/25/02



http://www.nyphp.org/content/presentations/ampintro2/[9/12/2009 5:53:09 PM]
New York PHP - AMP Technology - Technical Overview - Slide 1 of 10




                                                                      1     2      3     4   5   6   7   8   9   10




                 AMP Setup and Implementation?
               Installing and configuring each component
                      Apache with Dynamic Shared Object (DSO)
                      Support
                      Standard MySQL
                      PHP 4 as a DSO with native MySQL support
               Testing the install with phpMyAdmin
               Using AMP
                      Setting php.ini values at runtime
                      Array manipulation
                      Database connections and queries
                      Error checking and reporting




   http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02



http://www.nyphp.org/content/presentations/ampintro2/001.php?body=48[9/12/2009 5:53:17 PM]
New York PHP - AMP Technology - Technical Overview - Slide 2 of 10


                                                               1     2      3     4     5    6   7   8   9   10




                                                   Apache 1.3.26
               --prefix=/demo/apache
                      Apahe's tree top
               --enable-module=so
                      Enable DSO support (mod_php)
               --with-port=8000
               --server-uid[gid]=praxis
                      Only Apache children will run as this user/group




   http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02



http://www.nyphp.org/content/presentations/ampintro2/002.php?body=48[9/12/2009 5:53:21 PM]
New York PHP - AMP Technology - Technical Overview - Slide 3 of 10


                                                               1     2      3     4     5    6   7   8   9   10




                                                MySQL 3.23.52
                                             Configuration and Compilation


               --prefix=/demo/mysql
                      MySQL's tree top
               --with-unix-socket-
               path=/demo/tmp/mysql.sock
                      Needed with multiple MySQL instances per box
               --with-mysqld-user=praxis
                      MySQL will completely drop root and run as this
                      user
               MySQL offers many other configuration
               options:
                      DB handlers (InnoDB) provide transactions etc.
                      Compilation tweaks for improved performance
               MySQL AB binaries are recommended for
               production systems (notably on Linux)



   http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02



http://www.nyphp.org/content/presentations/ampintro2/003.php?body=48[9/12/2009 5:53:24 PM]
New York PHP - AMP Technology - Technical Overview - Slide 4 of 10


                                                               1     2      3     4     5    6   7   8   9   10




                                                MySQL 3.23.52
                                             Configuration and Compilation


               /demo/mysql/bin/mysql_install_db
                      Prepare and install the 'mysql' database
                              User and permission data dictionary used internally by
                              MySQL
               /demo/mysql/bin/safe_mysqld &
                      Start mysqld wrapped in a monitoring script
               /demo/mysql/bin/mysqladmin -u root –p
               'demo'
                      Set root (superuser) password for MySQL
                      Has no bearing on operating system accounts




   http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02



http://www.nyphp.org/content/presentations/ampintro2/004.php?body=48[9/12/2009 5:53:27 PM]
New York PHP - AMP Technology - Technical Overview - Slide 5 of 10


                                                               1     2      3     4     5    6   7   8   9   10




                                                           PHP 4.2.3
                                             Configuration and Compilation


               --prefix=/demo/php
                      PHP's tree top
               --with-apxs=/demo/apache/bin/apxs
                      Compile PHP as an Apache DSO
               --with-mysql=/demo/mysql
                      Point to MySQL's native client libraries




   http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02



http://www.nyphp.org/content/presentations/ampintro2/005.php?body=48[9/12/2009 5:53:30 PM]
New York PHP - AMP Technology - Technical Overview - Slide 6 of 10


                                                               1     2      3     4     5    6    7   8   9   10




                                                           PHP 4.2.3
                                                      Setup and Integration


               cp php.ini-recommended
               /demo/php/lib/php.ini
                      Always use php.ini-recommended
                              Maintainable configuration for future PHP versions
               Ensure proper httpd.conf directives:
                      LoadModule php4_module                                                     libexec/libphp4.so
                              Load PHP DSO
                      AddType application/x-httpd-php .php
                              Pass .php files to PHP
                      AddType application/x-httpd-php-source .phps
                              Pass .phps (source) files to PHP for syntax highlighting




   http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02



http://www.nyphp.org/content/presentations/ampintro2/006.php?body=48[9/12/2009 5:53:32 PM]
New York PHP - AMP Technology - Technical Overview - Slide 7 of 10


                                                               1     2      3     4     5    6   7   8   9   10




                                       Getting AMP Online
               The data layer (MySQL) is already started
               Fire up the interface layer:
                      /demo/apache/bin/apachectl start
               http://demo.nyphp.org:8000/sql/
                      phpMyAdmin is a good test to ensure everything is
                      properly loaded and configured




   http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02



http://www.nyphp.org/content/presentations/ampintro2/007.php?body=48[9/12/2009 5:53:34 PM]
New York PHP - AMP Technology - Technical Overview - Slide 8 of 10


                                                               1     2      3     4     5    6   7   8   9   10




                                     Putting AMP to Work
                                                                   initial.phps


               http://demo.nyphp.org:8000/code/initial.phps
               View source with PHP's built-in
               highlighting
               GET method checking as a failsafe
               Override php.ini setting
                      Show errors in browser (stdout)
               Get MySQL connection online
                      localhost connections use UNIX domain sockets
               Create array of queries
                      PHP forms a sequential integer-indexed array




   http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02



http://www.nyphp.org/content/presentations/ampintro2/008.php?body=48[9/12/2009 5:53:36 PM]
New York PHP - AMP Technology - Technical Overview - Slide 9 of 10


                                                               1     2      3     4     5    6   7   8   9   10




                                  Putting AMP to Work...
                                                                   initial.phps


               Loop through queries, processing and error
               checking
               Reconnect to MySQL with the same DB
               resource
                      Different username/password implies new
                      connection
                      Old resource is dereferenced and freed by garbage
                      collector
               Create nested arrays for member
               information
                      Automatic sequential integer-indexed array
                      Each element contains a user-defined associative
                      array
               Loop through members, forming proper
               query
                      INSERT will generate non-zero ID
                      (auto_increment)
   http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02



http://www.nyphp.org/content/presentations/ampintro2/009.php?body=48[9/12/2009 5:53:38 PM]
New York PHP - AMP Technology - Technical Overview - Slide 10 of 10




                                                        1      2      3    4     5      6    7   8   9   10




                                                            Resources
               Zend - The PHP Company
               PHPBuilder Tutorials, Articles and Code
               PHP Triad - AMP Technology Installer for
               Windows
               AMP Based Professional CMS
               phpMyAdmin, phpPgAdmin, Tutorials and
               more
               DMOZ Open Directory PHP Tutorials
               New York PHP Projects and Knowledge
               Base




   http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02



http://www.nyphp.org/content/presentations/ampintro2/010.php?body=48[9/12/2009 5:53:40 PM]

Contenu connexe

Plus de tutorialsruby

0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
tutorialsruby
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
tutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
tutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
tutorialsruby
 
Winter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascript
tutorialsruby
 
Winter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascript
tutorialsruby
 

Plus de tutorialsruby (20)

xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
 
CSS
CSSCSS
CSS
 
CSS
CSSCSS
CSS
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 
Winter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascript
 
Winter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascript
 
eng2u3less38
eng2u3less38eng2u3less38
eng2u3less38
 
eng2u3less38
eng2u3less38eng2u3less38
eng2u3less38
 
schedule
scheduleschedule
schedule
 
schedule
scheduleschedule
schedule
 
TemplateTutorial
TemplateTutorialTemplateTutorial
TemplateTutorial
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Dernier (20)

A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 

Beginning-Linux-Apache-MySQL-PHP-Technical-Overview

  • 1. New York PHP - Introduction to AMP Technology Download Presentation Introduction to AMP Technology Technical Overview NYPHP Internal Presentation September 25, 2002 Presented by Hans Zaunere, Daniel Kushner and Bill Patterson http://www.nyphp.org http://apache.org http://mysql.com http://php.net 9/25/02 http://www.nyphp.org/content/presentations/ampintro2/[9/12/2009 5:53:09 PM]
  • 2. New York PHP - AMP Technology - Technical Overview - Slide 1 of 10 1 2 3 4 5 6 7 8 9 10 AMP Setup and Implementation? Installing and configuring each component Apache with Dynamic Shared Object (DSO) Support Standard MySQL PHP 4 as a DSO with native MySQL support Testing the install with phpMyAdmin Using AMP Setting php.ini values at runtime Array manipulation Database connections and queries Error checking and reporting http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02 http://www.nyphp.org/content/presentations/ampintro2/001.php?body=48[9/12/2009 5:53:17 PM]
  • 3. New York PHP - AMP Technology - Technical Overview - Slide 2 of 10 1 2 3 4 5 6 7 8 9 10 Apache 1.3.26 --prefix=/demo/apache Apahe's tree top --enable-module=so Enable DSO support (mod_php) --with-port=8000 --server-uid[gid]=praxis Only Apache children will run as this user/group http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02 http://www.nyphp.org/content/presentations/ampintro2/002.php?body=48[9/12/2009 5:53:21 PM]
  • 4. New York PHP - AMP Technology - Technical Overview - Slide 3 of 10 1 2 3 4 5 6 7 8 9 10 MySQL 3.23.52 Configuration and Compilation --prefix=/demo/mysql MySQL's tree top --with-unix-socket- path=/demo/tmp/mysql.sock Needed with multiple MySQL instances per box --with-mysqld-user=praxis MySQL will completely drop root and run as this user MySQL offers many other configuration options: DB handlers (InnoDB) provide transactions etc. Compilation tweaks for improved performance MySQL AB binaries are recommended for production systems (notably on Linux) http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02 http://www.nyphp.org/content/presentations/ampintro2/003.php?body=48[9/12/2009 5:53:24 PM]
  • 5. New York PHP - AMP Technology - Technical Overview - Slide 4 of 10 1 2 3 4 5 6 7 8 9 10 MySQL 3.23.52 Configuration and Compilation /demo/mysql/bin/mysql_install_db Prepare and install the 'mysql' database User and permission data dictionary used internally by MySQL /demo/mysql/bin/safe_mysqld & Start mysqld wrapped in a monitoring script /demo/mysql/bin/mysqladmin -u root –p 'demo' Set root (superuser) password for MySQL Has no bearing on operating system accounts http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02 http://www.nyphp.org/content/presentations/ampintro2/004.php?body=48[9/12/2009 5:53:27 PM]
  • 6. New York PHP - AMP Technology - Technical Overview - Slide 5 of 10 1 2 3 4 5 6 7 8 9 10 PHP 4.2.3 Configuration and Compilation --prefix=/demo/php PHP's tree top --with-apxs=/demo/apache/bin/apxs Compile PHP as an Apache DSO --with-mysql=/demo/mysql Point to MySQL's native client libraries http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02 http://www.nyphp.org/content/presentations/ampintro2/005.php?body=48[9/12/2009 5:53:30 PM]
  • 7. New York PHP - AMP Technology - Technical Overview - Slide 6 of 10 1 2 3 4 5 6 7 8 9 10 PHP 4.2.3 Setup and Integration cp php.ini-recommended /demo/php/lib/php.ini Always use php.ini-recommended Maintainable configuration for future PHP versions Ensure proper httpd.conf directives: LoadModule php4_module libexec/libphp4.so Load PHP DSO AddType application/x-httpd-php .php Pass .php files to PHP AddType application/x-httpd-php-source .phps Pass .phps (source) files to PHP for syntax highlighting http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02 http://www.nyphp.org/content/presentations/ampintro2/006.php?body=48[9/12/2009 5:53:32 PM]
  • 8. New York PHP - AMP Technology - Technical Overview - Slide 7 of 10 1 2 3 4 5 6 7 8 9 10 Getting AMP Online The data layer (MySQL) is already started Fire up the interface layer: /demo/apache/bin/apachectl start http://demo.nyphp.org:8000/sql/ phpMyAdmin is a good test to ensure everything is properly loaded and configured http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02 http://www.nyphp.org/content/presentations/ampintro2/007.php?body=48[9/12/2009 5:53:34 PM]
  • 9. New York PHP - AMP Technology - Technical Overview - Slide 8 of 10 1 2 3 4 5 6 7 8 9 10 Putting AMP to Work initial.phps http://demo.nyphp.org:8000/code/initial.phps View source with PHP's built-in highlighting GET method checking as a failsafe Override php.ini setting Show errors in browser (stdout) Get MySQL connection online localhost connections use UNIX domain sockets Create array of queries PHP forms a sequential integer-indexed array http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02 http://www.nyphp.org/content/presentations/ampintro2/008.php?body=48[9/12/2009 5:53:36 PM]
  • 10. New York PHP - AMP Technology - Technical Overview - Slide 9 of 10 1 2 3 4 5 6 7 8 9 10 Putting AMP to Work... initial.phps Loop through queries, processing and error checking Reconnect to MySQL with the same DB resource Different username/password implies new connection Old resource is dereferenced and freed by garbage collector Create nested arrays for member information Automatic sequential integer-indexed array Each element contains a user-defined associative array Loop through members, forming proper query INSERT will generate non-zero ID (auto_increment) http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02 http://www.nyphp.org/content/presentations/ampintro2/009.php?body=48[9/12/2009 5:53:38 PM]
  • 11. New York PHP - AMP Technology - Technical Overview - Slide 10 of 10 1 2 3 4 5 6 7 8 9 10 Resources Zend - The PHP Company PHPBuilder Tutorials, Articles and Code PHP Triad - AMP Technology Installer for Windows AMP Based Professional CMS phpMyAdmin, phpPgAdmin, Tutorials and more DMOZ Open Directory PHP Tutorials New York PHP Projects and Knowledge Base http://www.nyphp.orghttp://apache.orghttp://mysql.comhttp://php.net9/25/02 http://www.nyphp.org/content/presentations/ampintro2/010.php?body=48[9/12/2009 5:53:40 PM]