tailieunhanh - PHP5 and MySQL Bible (P2)
This first chapter is an introduction to PHP, MySQL, and the interaction of the two. In it, we’ll try to address some of the most common questions about these tools, such as “What are they?” and “How do they compare to similar technologies?” Most of the chapter is taken up with an enumeration of the many, many reasons to choose PHP, MySQL, or the two in tandem. If you’re a techie looking for some ammunition to lob at your PHB (“Pointy-Haired Boss” for those who don’t know the Dilbert cartoons) or a manager asking yourself what is this P-whatever thing your geeks keep whining to get, this chapter will. | xxviii Contents Translating between Variables and Printing Functions for Visualizing Chapter 22 String and Regular Expression Functions .421 Tokenizing and Parsing Why Regular Expressions .424 Regex in An example of POSIX-style Regular expression Perl-Compatible Regular Example A Simple The regular expression .430 Using the expression in a Advanced String HTML Hashing using Strings as character String similarity Chapter 23 Filesystem and System Understanding PHP File File Reading and Writing File File Constructing file downloads by using fpassthru .444 File File Filesystem and Directory Network Syslog functions .450 DNS Socket Date and Time If you don t know either date or If you ve already determined the date time Calendar Conversion Chapter 24 Sessions Cookies and What s a Session .455 So what s the problem .455 Why should you care .456 Home-Grown Alternatives .456 IP Hidden Cookie-based homegrown Contents XXIX How Sessions Work in Making PHP aware of your Propagating session Where is the data really stored .461 Sample Session Session Configuration The setcookie Examples .471 Deleting Reading cookies .472 register_globals and variable overwriting .473 Cookie Sending HTTP Example Redirection .476 Example HTTP Header Gotchas and Chapter 25 Types and Type Type .
đang nạp các trang xem trước