Php5

Ive

Mitglied
Hallo...
Ich bin mittlerweile sehr fit in php4! Möchte mich jetzt nun an php5 ranwagen! Dazu möchte ich mir ein Buch kaufen! Als ich danach suchte habe ich mich vor Angeboten gar nicht retten können!
Also, kennt jemand ein Buch über php, dass die Grundkenntnisse von php voraussetzt und die Neuheiten von php5 gut erklärt?
 
Hallo,

meine Freundin will ich auch mit PHP5 beschäftigen und sie hat sich dafür folgende Bücher geholt:

********************************************************************************

Titel: PHP5&MySQL5
Grundlagen, Programmiertechnikern, Beispiele

Von: Open Source Library

ISBN: 3827321905

********************************************************************************

Titel: PHP5 ( Studienausgabe )
Praxisbuch & Referenz

Von: Matthias Kannengiesser & Damir Enseleit

ISBN: 3772365590

********************************************************************************

Titel: Einstieg in PHP5

Von: Galileo Computing

ISBN: 3898422607

********************************************************************************

So nun hoffe ich dass ich dir ein wenig damit helfen konnte.

Gruß
 
Ist in diesem Buch auch XML gut erklärt? Ich möchte nämlich auch einen guten Einstieg in XML bekommen!
 
Inhaltsverzeichnis
I. Objektorientierte Programmierung
1 Grundlagen 3
1.1 Einleitung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Klassen und Objekte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.4 Polymorphie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.5 Referenzen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.6 Klassenmethoden, Klassenvariablen und Klassenkonstanten . . . 13
1.7 Konstruktoren und Destruktoren . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.8 Vererbung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1.9 Abstrakte Klassen und Schnittstellen . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.10 Fehlerbehandlung mit Ausnahmen . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
1.11 Serialisierung von Objekten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1.12 Die Reflection API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
1.13 Migration von PHP 4 zu PHP 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2 Interzeptormethoden 35
2.1 Einleitung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.2 __autoload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
2.3 __get . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
2.4 __set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
2.5 __call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2.6 __toString . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3 Iteratoren 43
3.1 Einleitung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
3.2 Die Iterator-Schnittstellen von PHP 5 . . . . . . . . . . . . . . . . . . . . . . . . . . 45
3.3 Die Standard PHP Library (SPL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
3.4 Die Schnittstelle ArrayAccess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
4 Testgetriebene Entwicklung mit PHPUnit 57
4.1 Einleitung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
4.2 Testfälle und Zusicherungen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
4.3 Testfälle ausführen und zusammenfassen . . . . . . . . . . . . . . . . . . . . . 62
xiii
4.4 Automatische Generierung von Testfallklassen . . . . . . . . . . . . . . . . 65
4.5 Code-Coverage-Analyse von PHP-Applikationen . . . . . . . . . . . . . . 67
4.6 TestDox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
II. Entwurfsmuster in PHP anwenden
5 Erzeugungsmuster 75
5.1 Einleitung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
5.2 Abstrakte Fabrik . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
5.3 Singleton . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
6 Strukturmuster 81
6.1 Einleitung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
6.2 Dekorierer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
6.3 Stellvertreter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
7 Verhaltensmuster 87
7.1 Einleitung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
7.2 Beobachter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
7.3 Schablonenmethode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
7.4 Strategie . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
7.5 Iterator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
III. PHP-5-Programmierung
8 XML-Verarbeitung mit PHP 101
8.1 Einleitung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
8.2 SimpleXML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
8.3 Simple API for XML (SAX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
8.4 Document Object Model (DOM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
8.5 XSL Transformations (XSLT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
8.6 Objekte mit dem XML_Transformer ins Web bringen . . . . . . . . . . 122
9 Webdienste mit SOAP 131
9.1 Einleitung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
9.2 Einen Webdienst programmieren . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
9.3 Einen Webdienst verwenden . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
10 Die MySQLi-Erweiterung 139
10.1 Einleitung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
10.2 Die MySQLi-Erweiterung objektorientiert verwenden . . . . . . . . . . 139
10.3 Vorbereitete Anfragen verwenden . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
10.4 Die MySQLi-Erweiterung prozedural verwenden . . . . . . . . . . . . . . 143
xiv Inhaltsverzeichnis
IV. Fortgeschrittene Datenbankprogrammierung
11 Creole 147
11.1 Einleitung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
11.2 Verbindung zur Datenbank . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
11.3 Ausführen von SQL-Anfragen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
11.4 Metadaten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
12 Propel 157
12.1 Einleitung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
12.2 Spezifizieren des Datenmodells in XML . . . . . . . . . . . . . . . . . . . . . . . . 158
12.3 Objektmodell und Objektspeicher . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
12.4 Nach Objekten im Objektspeicher suchen . . . . . . . . . . . . . . . . . . . . . 166
V. Werkzeuge für die Entwicklung von PHP-Projekten
13 Code-Dokumentation 173
13.1 Einleitung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
13.2 phpDocumentor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
13.3 Doxygen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
14 Modellierung mit UML und MDA 181
14.1 Einleitung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
14.2 ArgoUML und Poseidon for UML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
14.3 UML2PHP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
Anhänge
A Installation von Apache 2.0, MySQL 4.1 und PHP 5.0 193
B Literaturverzeichnis 195
C Glossar 197
Stichwortverzeichnis 199
Inhaltsverzeichnis xv
 
Ive hat gesagt.:
Ist in diesem Buch auch XML gut erklärt? Ich möchte nämlich auch einen guten Einstieg in XML bekommen!
Ich würde sagen, da kaufst du dir besser ein XML Buch. Mehr als die Schnittstelle zu XML wird ein PHP Buch denke ich nur selten beschreiben. Wenn du XML verstehen willst, wirst du da um seperate Bücher kaum herumkommen (oder eben entsprechende Werke im Internet).
 
Zurück