Saturday, May 15, 2010

Eclipse Php Zend Debugger

How to Debug PhP Code in ECLIPSE?
If you want to see variable values with mouse over and change them to see the effect in your program without echo statements, you need debugging. You can follow the steps below to set up a php editor with debugging. You can email me for questions.

  1. Install apache server
  2. Install Php from www.php.net
    1. Select all necessary items such as mysql, openssl, dba
  3. Download ZEND plugins for eclipse
    1. Copy zenddebugger.dll to PHP directory
    2. Add these to your php.ini file
              zend_extension_ts=.\ZendDebugger.dll
              zend_debugger.allow_hosts= 127.0.0.1
              zend_debugger.expose_remotely=always

You may want to run phpinfo() script to see your actual php.ini file. You may have one copy at C:Windows directory.

4. Download Eclipse php editor with debugger. It will show you xdebug and zend for debugging.
5. Setup your work directory
6. Configure your debug options: it may launch at http://localhost. This is fine for the default settings.
7. Restart apache server after changing php.ini file
8. When you run in debug mode, Eclipse will ask you to load in perspective show detail debug screen
9. If you get error about php.ini directives, you should check you php.ini file. You can add phpinfo(); command line to list all properties of PHP. It will show you the address of php.ini file.

Summary: If you see zend debugger properties in your PHP property list, you have the debugging. Disable Xdebug if you have that. Zend and Xdebug may not work properly at the same time.

I am happy to have debugging in php. I guess no more "echo this echo that"

Best Regards,

        Thursday, May 13, 2010

        ASP Hosting

        I am looking for asp hosting. Most of the hosting providers are offering similar services.
        Check the list:
        http://www.hosting-review.com/hosting-directory/top-10-lists/Top-10-ASP-Hosting-Companies.shtml

         IX Web Hosting looks good with the low price tag. 




        1-How much does it cost to use asp hosting with sql server 2008? 
        --It looks like with 36 month plan, they charge around 10$ /month at IX web hosting.
        2-Reliability ?


        3-Support ?


        4-Speed


        5-Bandwidth limits



        I will look into more details about this...Let me know your favorite Hosting provider for Windows!!!

        Another info: http://www.dotnetpanel.com/ is open source now. You can download that and use it for hosting management.