Page 70 - Open Soource Technologies 304.indd
P. 70

Unit 5: PHP



               3.  extension=php_mbstring.dll                                                     Notes
               4.  extension=php_mysql.dll

               5.  extension=php_mysqli.dll
               6.  extension=php_pdo.dll
               7.  extension=php_pdo_mysql.dll

               8.  extension=php_xmlrpc.dll
            If you want to send emails using the PHP mail() function, enter the details of an SMTP server
            (your ISP’s server should be suitable):
               1.   [mail function]
               2.  ; For Win32 only.
               3.  SMTP = mail.myisp.com

               4.  smtp_port = 25
               5.  ; For Win32 only.
               6.  sendmail_from = my@emailaddress.com

            Step 3: add C:\php to the path environment variable

            To ensure Windows can find PHP, you need to change the path environment variable. From the
            Control Panel, choose System, (then “Advanced system settings” in Vista), select the “Advanced”
            tab, and click the “Environment Variables” button.

            Scroll down the System variables list and click on “Path” followed by the “Edit” button. Enter
            “;C:\php” to the end of the Variable value line (remember the semi-colon).


                              Figure 5.3: Example Edit System Variable Value






























            Now OK your way out. You might need to reboot at this stage.




                                             LOVELY PROFESSIONAL UNIVERSITY                                    65
   65   66   67   68   69   70   71   72   73   74   75