Friday, December 6, 2013

how to install ZF2 on WAMP OR XAMPP guide follow these step for biggner

Easy step to install Zend Framewok 2(ZF2) follow below those step and enjoy
Step1-> install wamp or xampp but php should be install 5.3.3+

Setp-2>On  Apache mod_rewrite.so(remove #) location C:\wamp\bin\apache\Apache2.4.4\conf\httpd.conf

Sept-3> enable extension=php_curl.dll(remove ;) php.ini file
Note: Then restart your Apache server.

step 4->Download ZF2 library from http://framework.zend.com/downloads/latest

Extract and copy the only library folder paste into ZF2 skeleton location like :C:\wamp\www\skeleton\vendor\ZF2

step 5->Download  ZF2 skeleton from https://github.com/zendframework/ZendSkeletonApplication/

Lastly you can run your ZF2 in your localhost "hope help you"

http://127.0.0.1/skeleton/public/


i have already run, do not difficulty to face you  i think so :)

Wednesday, December 4, 2013

Upgrade PHP from version 5.2 to 5.x

The transition is not necessarily easy, but not hard also. PHP 5.3 brings some changes to the internal Zend API, so some PHP extension need to be upgraded (I had to upgrade xDebug). That means that you need to find the respective DLLs, which may not be that easy, depending on your current setup.
The config file, php.ini, is pretty much the same. You will actually have to take some things out actually (for example extension=php_pdo.dll is not needed anymore).
Just execute php -m from command line and see what errors are thrown. I have just copy-pasted the php.ini file from a 5.2 release and was done configuring 5.3 in a couple of minutes.
I mentioned xDebug a few lines above. If you use it, you should know that the line which activates xDebug is now:
zend_extension = "path\to\PHP 5.3.0\ext\php_xdebug.dll"
instead of:
zend_extension_ts = "path\to\PHP 5.3.0\ext\php_xdebug.dll"

OR other way to  Upgrading to PHP 5.X
If you take a look at Upgrading to PHP 5.3 - an easy way, i think that will solve your problem, but if you're in a Linux machine that you can use apt-get the only thing that you need to do is:
$ sudo apt-get upgrade php php-* mysql-*
$ /etc/init.d/httpd restart