مشخصات کتاب
-
LARRY ULLMAN
-
2010
-
انگلیسی
-
5165
-
780
-
0
دانلود کتاب Effortless E-Commerce with PHP and MySQL
در این راهنمای جامع آموزش php که در ارتباط با ساخت وبسایت تجاری با استفاده از PHP و MySQL می باشد، نویسنده ی معروف این اثر به نام Larry Ullman به صورت گام به گام شما را در مسیر طراحی interface های بصری، ایجاد دیتابیس، ارائه ی محتوا، ایجاد یک کاتالوگ آنلاین، مدیریت کارت خرید، کنترل فرایندهای سفارش و پرداخت، و انجام سفارشات را، در کنار توضیحات مبسوط و ارائه ی بهترین تمرین ها و راهکارها، آموزش می دهد. حتی اگر شما یک توسعه دهنده ی باتجربه هم باشید، همواره چیزهای جدیدی برای آموختن در این راهنمای آموزش برنامه نویسی وجود دارد. در این کتاب، دو نمونه ی سایت تجارت الکترونیکی استفاده شده است: یکی بر مبنای فروش محصولات فیزیکی که مستلزم حمل و نقل و تاخیر در پرداخت می باشد، و نمونه ی دیگر مبتنی بر فروش کالای غیرفیزیکی بوده و دارای شرایط فروش آنی می باشد. در طول 11 فصل آسان و قابل فهم این کتاب که Effortless E-Commerce with PHP and MySQL نام دارد، قابلیت های زیر را فرا خواهید گرفت:
o در اولویت قرار دادن مشتری به منظور بیشینه نمودن میزان فروش
o ایجاد یک دیتابیس و محیط سروری امن
o استفاده از معاملات امن و ممانعت از آسیب پذیری های رایج
o ترکیب درگاه های پرداخت مختلف
o طراحی سایت های مقیاس پذیر که حفظ آن ها راحت می باشد
o ساخت interface های اجرایی
o توسعه ی هر دو مثال موجود در کتاب برای انطباق با نیازمندی های وب سایت خود
In this comprehensive guide to creating an e-commerce Web site using PHP and MySQL, renowned author Larry Ullman walks you through every step--designing the visual interface, creating the database, presenting content, generating an online catalog, managing the shopping cart, handling the order and the payment process, and fulfilling the order--always with security and best practices emphasized along the way. Even if you're an experienced Web developer, you're guaranteed to learn something new. The book uses two e-commerce site examples--one based on selling physical products that require shipping and delayed payment, and another that sells non-physical products to be purchased and delivered instantly--so you see the widest possible range of e-commerce scenarios. In 11 engaging, easy-to-follow chapters, Effortless E-Commerce with PHP and MySQL teaches you how to: * Think of the customer first, in order to maximize sales * Create a safe server environment and database * Use secure transactions and prevent common vulnerabilities * Incorporate different payment gateways * Design scalable sites that are easy to maintain * Build administrative interfaces * Extend both examples to match the needs of your own sites Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii What is E-Commerce? . . . . . . . .. . . . . . . . . . . . . . xiii About This Book . . . . . . . . . . . .... . . . . . . . . . . . . xiv Technologies Used . . . . . . . . . . . . . . . . . . . . . . . xv Getting Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv What You’ll Need . . . . . . . . . . . . . . . . . . . . . . . . . xv Some Fundamental Skills . . . . . . . . . . . . . . . . . . . .xvi A Web Server . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi And a Bit More . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi PART ONE: FUNDAMENTALS . . . . . . . . . . . . . . . . . .1 Chapter 1: Getting Started . . . . . . . . . . . . . . . . . . 2 Identifying Your Business Goals . . . . . . . . . . . . . . . 3 Researching Legal Issues . . . . . . . . . . . . . . . . . .. . 4 National and International Laws . . . . . . . . . . . . . . . 4 PCI Compliance . . . . . . . . . . . . . . . . . . . . . . ... . . 6 Choosing Web Technologies . . . . . . . . .. . . . .. . . . 7 Selecting a Web Host . . . . . . . . . . . . .. . . . . . . . . . 8 Hosting Options . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 My Hosting Recommendation . . . . . . . . . . . . 12 Finding a Good Host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Using a Payment System . . . . . . . . . . . . . . . .. . . . . . . . . . 13 Payment Processors . . . . . . . . . . . . . . . . . . . . . . . 14 Payment Gateways . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Which Should You Use? . . . . . . . . . . . . . . .. . . . . . . . 16 The Development Process . . . . . . . . . . . . . . . . . . . . . . . . . 17 Site Planning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 HTML Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Database Design . . . . . . .. . . . . . . . . . . . . . . . . . . . . . 19 Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Testing . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . 22 Going Live . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Maintaining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Improving . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Chapter 2: Security Fundamentals . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . 26 Security Theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 No Web Site Is Secure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Maximum Security Isn’t the Goal . . . . . . . . . . . . . . . . . . . 28 Security for Customers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 PCI Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Server Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Hosting Implications . . . . . . . . . . . . . . . . . . . . . . . . . 33 PHP and Web Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Database Security . . . . . . . . . . . . . . . . . . . . . 36 Secure Transactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Common Vulnerabilities . . . . . . . . . . . . . . . . . . . 40 Protecting Information . . . . . . . . . . . . . . . . . . . . . . . . . 40 Protecting the User . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . 41 Protecting the Site . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . 42 PART TWO: SELLING VIRTUAL PRODUCTS . . . . . . . . . . . . . . . . 47 Chapter 3: First Site: Structure and Design . . . . . . . . . . . . . 48 Database Design . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . 49 Server Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 Connecting to the Database . . . . . . . . . . . . . . . . . .. . . 55 The Config File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 The HTML Template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Creating the Header . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 63 Adding Dynamic Functionality to the Header . . . . . . . . . . . . . . . . 64 Creating the Footer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Adding Dynamic Functionality to the Footer . . . . . . . . . . . . . . . . . . . . . . . 68 Creating the Home Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Chapter 4: User Accounts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Defining Helper Functions . . . . . . . . . . . . . . . .. . . . . . . . . . 72 Creating Form Inputs . . . . . . . . . . . . . . . . . . . . . 73 Protecting Passwords . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . 77 Redirecting the Browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Registration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Creating the Basic Shell . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . 82 Creating the Form . . . . . . . . . . . . . . . . . . . . . .. . . . . . . 83 Processing the Form . . . . . . . . . . . . . . . . . . . . . . . . . 84 Logging In . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 Processing the Form . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 Creating the Form . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . 94 Logging Out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Managing Passwords . . . . . . . . . . . . . . . . . . . . . . . . 96 Recovering Passwords . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 Changing Passwords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 Improving the Security . . . . . . . . . . . . . . . . . . . . . . . . . 104 Chapter 5: Managing Site Content . . . . . . . . . . . . . . . . . . . . . . . . 106 Creating an Administrator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 Adding Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 Adding a WYSIWYG Editor . . . . . . . . . . . . . . . . . . . . . . . 112 Displaying Page Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 Creating category.php . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 Creating page.php . . . . . . . . . . .. . . . . . . . . . . . . . 118 Adding PDFs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 Setting Up the Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 Creating the PHP Script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 Displaying PDF Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 Creating pdfs.php . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 Creating view_pdf.php . . . . .. . . . . . . . . . . . 132 Chapter 6: Using PayPal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 About PayPal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 Payment Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 Payment Buttons . . . . .. . . . . . . . . . . 139 Testing PayPal . . . . . . . . . . . . . . . . . . . . 140 Registering at the PayPal Sandbox . . . . . . . . . 140 Creating Test Accounts . . . . . . . . . . . . . . . . . . . . . 141 Creating a Button . . . . . . . . . . . . . . . . . 143 Integrating PayPal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 Updating the Registration Page . . . . . . . . . . 145 Creating thanks.php . . . . . . . . . . . 146 Creating cancel.php . . . . . . . . . . . . .. . . . . 148 Testing the Site . . . . .. . . . . . . 149 Using IPN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 Enabling IPN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 Updating the Registration Script . . . . . . . . . . . . . . . . . . . . . . . . 151 Creating the IPN Script . . . . . . . . . . . 157 Renewing Accounts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 Going Live . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 PART THREE: SELLING PHYSICAL PRODUCTS . . . . . .. . . . . . . . . . . . . 161 Chapter 7: Second Site: Structure and Design . . . . . . . . . . . . . . . . . 162 About the Site . . . . . . . . . . . . . . . . 163 No Customer Registration . . . .. . . . . . 164 Implementing MVC . . . . . . . . . . . . . . . . . . . 164 Heightened Security . . . . . . . .. . . . . . . . 165 Database Design . . . . . . . . . . . . . 166 Product Tables . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . 166 Customer Tables . .. . . . . . . . . . . . . . . . . . . 167 The SQL . . . . . .. . . . . . . . . . . . . 169 Server Setup . . . . . . . . . . . . . 172 Server Organization . . . . . . . . . . . . . . . . . . . 172 Customizing the Server Behavior . . . . . . . . . . . . . 173 Helper Files . . . . . . . . . . . . . . 179 The Config File . . . . . . .. . . . . . 180 The HTML Template . . . . . .. . . . . . . . . 182 Newer MySQL Features . . . . . . . . . . . . . . . . . . 186 Stored Procedures . . . . . . . . . . . . . . . . . . . . . 188 Chapter 8: Creating a Catalog . . . . . . . . . . . . . . . 192 Preparing the Database . . . . .. . . . . . . 192 Populating the Tables Using SQL . . . . . . . . . . . . 193 Looking at the Stored Procedure Queries . . . . . 196 Creating Stored Procedures . . . . . . . . . . . . . . . . 201 Shopping by Category . . . . .. . . . . . . . . . . . . . . 204 Creating the PHP Script . . . . . . . . . . . . . . . . 204 Creating the View Files . . . . . . . . . . . . . . . . 206 Listing Products . . . . . . . . . . . . . . . . . . . . . . . 210 Creating the PHP Script . . . . . . . . . . 210 Creating the View Files . . . . . . . . . . . . . . . . . . . . . . . . . . 216 Indicating Availability . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . 217 Showing Sale Prices . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . 219 Updating the Stored Procedure . . . . . . . . . . . . 220 Updating product_functions.inc.php . . . . . . . . . . . . . . 222 Updating list_products.html . . . . . . . . . . . . . . . . .. . . . . . . . . . 224 Highlighting Sales . . . . . . . . . . . . . . . . . . . . . . . . . . . 224 Creating the Home Page . . . . . . . . . . . . . 225 Creating the Sales Page . . . . . . . . . . . . . . . . . . . . . . 227 Chapter 9: Building a Shopping Cart . . . . . . . . . . . . . . . . . . 230 Defining the Procedures . . . . . . . . . . . . . . . . . . . . 230 Adding Products . . .. . . . . . . . . . . 231 Removing Products .. . . . . . . . . . . . . . . . 232 Updating the Cart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232 Fetching the Cart’s Contents . . . . . . . . . . . . . . . 236 Creating the PHP Script . . .. . . . . . . . . . . 236 Creating the Views . . . . . . . . . . . . .. . . . . . . . 240 Making a Wish List . . . . . . . . . . . . . . . . . . 244 Creating the PHP Script . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 Creating the Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247 Chapter 10: Checking Out . . . . . . . . . . . . . . . . . . . . . 250 About Authorize.net . . . . . . . . . . . . . . . . . . . . . . . 251 Creating a Test Account . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 Preparing the Site . . . . . . . . . . . . . . . . . . . . . . . . . . 253 The New HTML Template . . . . . . . . . . . . . . 253 The Helper Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . 259 Taking the Shipping Information . . . . . .. . . . . 266 Creating the PHP Script . . . . . . . .. . . . . . . . . . . . . . . . . . . . . 267 Creating the View Files . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . 282 Creating the Basic PHP Script . . . . .. . . 283 Creating the View File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284 Validating the Form Data . . . . . . . . . . . . . . . . . . . . . . . 288 Processing Credit Cards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 Creating gateway_setup.php . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 Defining gateway_process.php . . . .. . . . 296 Examining the Server Response . . . . . . . . . . . . . . . . 298 Updating billing.php . . . . . . . . . . . . . . . . . . . . 300 Completing the Order . . . . . . . . . . . . . . . . . . . . . . . 302 Creating the PHP Script . . . . . . . . . . . . . . . . . . . . . . 303 Creating the View File . . . . . . . . . . . . . . 304 Testing the Site . . . . . . . . . . . . . . . . . . . . . 307 Chapter 11: Site Administration . . . . . . . . . . . . 309 Requiring Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . 310 Using Superfish . . . . . . . . . . . . . .. . . . . . . . . . . . 313 Updating create_form_input( ) . . . . 315 Adding Products . . . . . . . . . . . . . . . 316 Adding Non-Coffee Products . . . . . . 325 Adding Inventory . . . . . . . . . . . . . . .. . . . . . . 331 Creating Sales . . . . . . . . . . . . . . . . .. . . . . . 335 Viewing Orders . . . . . . . . . . . . . . . . . . . . . . . 341 Viewing One Order . . . . . . . . . . . . . .. . . . . . . 344 Shipping Orders . . . . . . . . . . . . . . . .. . . . 349 Creating gateway_setup_admin.php . .. . . . . . . . . 349 Updating view_order.php . . . . . . . . . .. . . . . . . . . . . . . . . . 350 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . 354
دانلود کتاب Beginning PHP and MySQL 3
نویسنده این کتاب دارای بیش از 10 سال تجربه کار در زمینه آموزش برنامه نویسی با این فن آوری ها می باشد، و این کتاب را با نمونه های عملی و بینشی عمیق و وسیع تهیه کرده است. بر این اساس، به شما توصیه می کنیم که به این کتاب به عنوان کتابی مرجع در زمینه آموزش php نگاه کنید
نویسنده: W. Jason Gilmore
زبان: انگلیسی
دانلود کتاب Beginning PHP and MySQL E-Commerce
کتابBeginning PHP and MySQL E-Commerce مراحل گام به گام طراحی و ساخت اپلیکیشن قابل گسترش برای یک وبسایت تجاری را آموزش می دهد. این کتاب با ارائه ی مثال واقعی از یک وبسایت فروش تی شرت، به شما می آموزد که چگونه می توانید یک کاتالوگ محصولات را ایجاد و کنترل نمایید
نویسنده: Cristian Darie و Emilian Balanescu
زبان: انگلیسی
دانلود کتاب Practical Web 2.0 Applications with PHP
در این کتاب، تکنولوژی های مربوط به توسعه ی زبان های PHP، MySQL، CSS، HTML، و JavaScrip/Ajax، در کنار هم ارائه شده اند تا به شما نشان دهند چگونه می توان اپلیکیشن های بسیار چشم گیری را، از لحظه ی طراحی و برنامه نویسی گرفته تا اجرای نهایی کد، و بدون نیاز به اصول غیر ضروری دیگر که عمدتا شما را به سمت عقب سوق می دهند، ایجاد نمود.
نویسنده: Quentin Zervaas
زبان: انگلیسی