A Brain-Friendly Guide
Lynn Beighley, Michael Morrison

#Head_First
#PHP
#MySQL
#database
#HTML
#CSS
#XML
🐘 PHP و MySQL به سبک Head First
🌐 اگر آمادهای صفحههای وبی پیچیدهتر از چیزی که فقط با HTML و CSS میشه ساخت ایجاد کنی، کتاب Head First PHP & MySQL یک راهنمای کامل برای ساخت وبسایتهای پویا و دیتابیسمحور با PHP و MySQL است.
📘 این کتاب با مثالهای واقعی، تمام مبانی برنامهنویسی سمت سرور رو آموزش میده؛ از اصول اولیه کدنویسی با PHP و MySQL گرفته تا موضوعهای پیشرفتهتری مثل اعتبارسنجی فرمها، Session IDها، Cookieها، کوئریها و Joinهای دیتابیس، عملیات خواندن و نوشتن فایل، مدیریت محتوا و موضوعهای بیشتر.
🧠 کتاب Head First PHP & MySQL همون قالب بصری و جذابی رو داره که کتابهای مجموعه Head First رو به آثار پرفروش تبدیل کرده. تمرینها، آزمونهای کوتاه، معماها و فعالیتهای تعاملی مختلف هم کمک میکنن مطالبی که یاد میگیری بهتر در ذهنت بمونن.
🎯 چیزهایی که یاد میگیری
🐘 با PHP صفحههای HTML استاتیک رو به وبسایتهای پویا تبدیل میکنی
🗄️ جدولهای MySQL خودت رو میسازی، اونها رو با داده پر میکنی و با اطلاعات ذخیرهشده در فایلها کار میکنی
🔍 کوئریهای پیشرفته MySQL رو با Join اجرا میکنی و نتیجهها رو با LIMIT و ORDER BY دقیقتر میکنی
🍪 با Cookieها و Sessionها اطلاعات ورود بازدیدکنندهها رو دنبال میکنی و سایت رو برای هر کاربر شخصیسازی میکنی
🛡️ از دادههای خودت در برابر حملههای SQL Injection محافظت میکنی
✅ با Regular Expressionها اطلاعات واردشده در فرمها رو اعتبارسنجی میکنی
🖼️ متنها رو بر اساس اطلاعات Session بهصورت پویا نمایش میدی و تصویرها رو هنگام اجرا تولید میکنی
🌐 با PHP و XML دادههای Syndicated رو از سایتهای دیگه دریافت میکنی
🛠️ در سراسر کتاب، پروژههای پیشرفته و واقعی مختلفی میسازی؛ از جمله یک Mailing List، یک Job Board و یک سایت دوستیابی آنلاین. این پروژهها کمک میکنن یاد بگیری چطور قدرت PHP و MySQL رو در سناریوهای مختلف به کار بگیری.
🚀 اگر آمادهای یک وبسایت واقعا پویا بسازی، Head First PHP & MySQL یکی از بهترین مسیرها برای شروعه.
📖 فهرست مطالب
فصل ۱. جان بخشیدن به صفحههای استاتیک. زنده است!
فصل ۲. اتصال به MySQL. اجزا چطور کنار هم قرار میگیرن
فصل ۳. ساخت و پر کردن دیتابیس. ایجاد دادههای خودت
فصل ۴. اپلیکیشنهای واقعی و کاربردی. اپلیکیشن تو روی وب
فصل ۵. کار با دادههای ذخیرهشده در فایلها. وقتی دیتابیس بهتنهایی کافی نیست
فصل ۶. امن کردن اپلیکیشن. فرض کن همه قصد حمله دارن
فصل ۷. ساخت اپلیکیشنهای وب شخصیسازیشده. من رو یادت هست؟
فصل ۷ و نیم. حذف کدهای تکراری. اشتراکگذاری یعنی اهمیت دادن
فصل ۸. دادههات رو کنترل کن، دنیات رو کنترل کن. جمعآوری داده
فصل ۹. Stringها و Functionهای سفارشی. زندگی بهتر با Functionها
فصل ۱۰. Regular Expressionها. قواعد جایگزینی
فصل ۱۱. ویژوالسازی دادهها و بیشتر. رسم گرافیکهای پویا
فصل ۱۲. Syndication و Web Serviceها. ارتباط با دنیای بیرون
👤 درباره نویسندگان
👩💻 لین بیگلی نویسنده داستانیه که در بدن یک نویسنده کتابهای فنی گرفتار شده! وقتی فهمید نوشتن کتابهای فنی واقعا درآمد داره، کمکم با این مسیر کنار اومد و حتی ازش لذت برد.
🎓 او برای دریافت مدرک کارشناسی ارشد علوم کامپیوتر دوباره به دانشگاه برگشت و بعد در سازمانهایی با مخففهای NRL و LANL کار کرد. پس از آشنایی با Flash، اولین کتاب پرفروش خودش رو نوشت.
📉 لین درست قبل از سقوط بزرگ صنعت تکنولوژی به Silicon Valley رفت و چند سال در Yahoo! کار کرد و همزمان کتابها و دورههای آموزشی دیگهای نوشت.
✍️ در نهایت، علاقهاش به نویسندگی خلاق بر او غلبه کرد و برای گرفتن مدرک MFA در Creative Writing به منطقه نیویورک رفت. پایاننامهاش رو به سبک Head First در سالن پر از استادها و دانشجوها ارائه کرد و با استقبال بسیار خوبی روبهرو شد.
📚 او بعد از پایان دوره دانشگاهی، کتاب Head First SQL رو هم کامل کرد و برای شروع کتاب بعدی خودش هیجانزده است.
✈️ لین به سفر، آشپزی و ساختن داستانهای پیچیده درباره غریبهها علاقه داره و کمی هم از دلقکها میترسه.
👨💻 مایکل موریسون نویسنده، دولوپر، مخترع اسباببازی و نویسنده کتابهای متعددی در حوزههایی مثل Java، اسکریپتنویسی وب، توسعه بازی و دستگاههای موبایله.
📚 از آثار شناختهشده او میشه به کتابهای زیر اشاره کرد:
JavaScript Bible, 6th Edition
Teach Yourself HTML and CSS in 24 Hours, 7th Edition
Beginning Mobile Phone Game Programming
Java Unleashed
🎓 مایکل مدرس چندین دوره آنلاین هم بوده؛ از جمله مجموعههای Introduction to Java 2، JavaBeans for Programmers و Win32 Programming در DigitalThink.
🎮 او علاوه بر نویسندگی و مشاوره فنی، بنیانگذار Stalefish Labs است؛ شرکتی سرگرمیمحور که روی بازیها، اسباببازیها و رسانههای تعاملی کار میکنه.
🏒 وقتی به کامپیوترش نچسبیده، اسکیتبردسواری میکنه، هاکی بازی میکنه، با همسرش ماشید فیلم میبینه یا کنار حوضچه ماهیهای Koi خودش وقت میگذرونه.
If you're ready to create web pages more complex than those you can build with HTML and CSS, Head First PHP & MySQL is the ultimate learning guide to building dynamic, database-driven websites using PHP and MySQL. Packed with real-world examples, this book teaches you all the essentials of server-side programming, from the fundamentals of PHP and MySQL coding to advanced topics such as form validation, session IDs, cookies, database queries and joins, file I/O operations, content management, and more.Head First PHP & MySQL offers the same visually rich format that's turned every title in the Head First series into a bestseller, with plenty of exercises, quizzes, puzzles, and other interactive features to help you retain what you've learned.
• Use PHP to transform static HTML pages into dynamic web sites
• Create and populate your own MySQL database tables, and work with data stored in files
• Perform sophisticated MySQL queries with joins, and refine your results with LIMIT and ORDER BY
• Use cookies and sessions to track visitors' login information and personalize the site for users
• Protect your data from SQL injection attacks
• Use regular expressions to validate information on forms
• Dynamically display text based on session info and create images on the fly
• Pull syndicated data from other sites using PHP and XML
Throughout the book, you'll build sophisticated examples -- including a mailing list, a job board, and an online dating site -- to help you learn how to harness the power of PHP and MySQL in a variety of contexts. If you're ready to build a truly dynamic website, Head First PHP & MySQL is the ideal way to get going.
Table of Contents
Chapter 1. Add Life to Your Static Pages: It’s Alive
Chapter 2. Connecting to MySQL: How It Fits Together
Chapter 3. Create and Populate a Database: Creating Your Own Data
Chapter 4. Realistic and Practical Applications: Your Application on the Web
Chapter 5. Working with Data Stored in Files: When a Database Just Isn’t Enough
Chapter 6. Securing Your Application: Assume They’re All Out to Get You
Chapter 7. Building Personalized Web Apps: Remember Me?
Chapter 7½. Eliminate Duplicate Code: Sharing Is Caring
Chapter 8. Control Your Data, Control Your World: Harvesting Data
Chapter 9. String and Custom Functions: Better Living Through Functions
Chapter 10. Regular Expressions: Rules for Replacement
Chapter 11. Visualizing Your Data... and More!: Drawing Dynamic Graphics
Chapter 12. Syndication and Web Services: Interfacing to the World
Lynn Beighley is a fiction writer stuck in a technical book writer's body. Upon discovering that technical book writing actually paid real money, she learned to accept and enjoy it. After going back to school to get a Masters in Computer Science, she worked for the acronyms NRL and LANL. Then she discovered Flash, and wrote her first bestseller. A victim of bad timing, she moved to Silicon Valley just before the great crash. She spent several years working for Yahoo! and writing other books and training courses. Finally giving in to her creative writing bent, she moved to the New York area to get an MFA in Creative Writing. Her Head First-style thesis was delivered to a packed room of professors and fellow students. It was extremely well received, and she finished her degree, finished Head First SQL, and can't wait to begin her next book.
Lynn loves traveling, cooking, and making up elaborate background stories about complete strangers. She's a little scared of clowns.
Michael Morrison is a writer, developer, toy inventor, and author of a variety of books covering topics such as Java, Web scripting, game development, and mobile devices. Some of Michael's notable writing projects include JavaScript Bible, 6th Edition (Wiley, 2006),Teach Yourself HTML and CSS in 24 Hours, 7th Edition (Sams Publishing, 2005), Beginning Mobile Phone Game Programming (Sams Publishing, 2004) and Java Unleashed (Sams Publishing, 1997). Michael is the intructor of several Web-based courses, including DigitalThink's Introduction to Java 2 series, JavaBeans for Programmers series, and Win32 Programming series (www.digitalthink.com).
In addition to his primary profession as a writer and technical consultant, Michael is the founder of Stalefish Labs (www.stalefishlabs.com), an entertainment company specializing in games, toys, and interactive media. When not glued to his computer, skateboarding, playing hockey, or watching movies with his wife, Masheed, Michael enjoys hanging out by his koi pond.









