Zend Studio and MAMP? - php

Do you use Zend Studio on a Mac? Do you use it with MAMP or Zend Server CE? Can you share your experience? How hard/easy was it to configure for either server? Has it helped your development productivity much, say, over Eclipse+PDT (which is free)?
Basically, I'm trying to decide if it's worth buying Zend Studio. And, since I'm on a Mac, how hard it is to configure for use with MAMP.

I was using MAMP + Zend Studio for 2 years. Then switched to Zend Studio + Zend Server CE. I see no gain in using zend server ce. Right now I've left Zend Studio to a better ide: PhpStorm. Give it a try. I's full featured and not as heavy as zend studio.

Related

Profiling PHP application in production on IIS 7

I'd like to profile a PHP application in production. My setup is windows server 2008 with IIS 7 and PHP 5.3 in FastCGI. I know from this question that XHProf Profiler is a good tool but obviously it doesn't work on Windows yet. Should I try with xdebug profiler or has anyone a better suggestion?
Try this:
http://dev.freshsite.pl/php-extensions/xhprof/file/details/xhprof-0103-for-php-53-vc9.html
If you have access to a Zend Studio license the profiler built into Zend Server is fantastic (check out some screenshots here http://files.zend.com/help/Beta/Zend_Studio_8_0/working_with_the_profiler.htm) - otherwise XDebug and a cache grind app will help (see this http://devzone.zend.com/1139/profiling-php-applications-with-xdebug/)

Zend studio with wampserver?

Does anyone how I can use my already installed wamp server with my zend studio.
Do I have to make some kind of configuration for the studio to run on the wamp server?
Do I have to save my projects in some specific directory?
I'm totally new in php so pleas don't assume anything!
The simplest way to do what you want, is when you create a new Zend Studio project, you set its location to a directory under wamp www dir, so, if your wamp www dir is "c:/wamp/www", you create a project on "c:/wamp/www/ProjectName" then you can access it using http://localhost/ProjectName.
As for IDE, I highly suggest you try PhpStorm, it's the best php IDE out there (my opinion). I have tried PhpEdit, Komodo, NetBeans with Php plugin, Eclipse with PDT, used Zend Studio for years(I used from 5.5 to 8).
For using Zend Framework, the best approach is add it to the default wamp include_path, so you don't need to include ZF into each project code. Also, you can setup debugging using xdebug, wamp has support to it.
I would remove wamp and install Zend Server CE with Zend Studio since they're designed to work together. Alternately, you can use eclipse instead of Zend studio, it's based off eclipse. I've had better performance with eclipse but if your doing a lot of Zend Framework developing Zend Studio should be slightly more efficient.
My experience on Studio version 6.5 was that it was so bloated down and slow that I was actually quicker on eclipse, despite the additional features studio includes. Hopefully, they've fixed it by now.
Your IDE is your primary tool and it's important to use what your most efficient with. And that will change based on the requirements of what your doing. When your learning it's OK to use simpler editors, like notepad. I used vi and pico to learn Java.
You might find it easier to learn the basics in a simple text editor, like jEdit or notepad++. Then move into the production level IDE's and frameworks once you have the basics down.

Debugging PHP/Zend Framework web apps

i am using Zend Framework. some techniques i use currently
Zend_Debug::dump() (+die())
Zend_Log: to firebug/firephp
i particularly like the log to firebug, but when logging large objects, eg. doctrine 2 models (with many associated objects etc), i find that it slows down and crashes alot.
what alternatives are out there?
i currently use Notepad++, used Aptana Studio 3 b4, waiting for more php support, i think netbeans can debug php scripts is it? the step through debugger?
The following IDEs support step through debugging:
eclipse (PDT)
Aptana Studio
Zend Studio
Netbeans
Note: Aptana Studio and Zend Studio are based on eclipse.

Profiler for Zend Server (Zend Debugger)

I'm looking for a PHP profiler that works with Zend Server (CE). From what I can tell, XDebug is a pain to setup with Zend Server. While Zend Debugger is free (as I understand it), the Profiler is only on Zend Studio.
Any other options?
I wish I could will you Zend Studio, as the profiler component is quite nice.
XDebug (standalone tip) may be your only option, unfortunately.
Do you have the option of upgrading to Zend Server 5 Professional edition? The Code Tracing feature would help you in profiling. Or, have you looked at PQP or DBG for Eclipse?
I wish I could be more help. The company I work for uses Zend Server for all deployments and the engineers all have Zend Studio.
Good luck.
A late answer, but might still be handy for those who find this question via searching (like I did).
I have Zend Server CE and PHPStorm on a Windows configuration and also wanted to profile some pages. It turned out that since a while it is just built-in in PHPStorm! With the explanation on this page: http://devnet.jetbrains.net/thread/432088 it was a breeze to get it up and running.
PHPStorm is not free (it is for individuals that do open source development) but its prices are absolutely affordable and are paid back for within days looking at the increasement in productivity.
You should consider the Semantic Designs PHP Profiler.
Doesn't require XDEBUG to be installed. Doesn't require any special configuration of your server. Works with huge PHP applications.

Zend Studio cannot detect Zend Server

PHP Version 5.3.1, Zend Studio 7.1.1.v20091227
Zend Server Community Edition 5.0 (Build: ZendServer-CE-5.0.0GA_RC181-5.3.1-Windows_x86)
Apache/2.2.14 (Win32) mod_ssl/2.2.14 OpenSSL/0.9.8k
Windows 7 Home Premium 64-bit
I have installed Zend Studio, downloaded and installed Zend Server. Zend Studio does not automatically detect Zend Sever. When Zend Studio is started I am getting the following warning bubble
No local installation of Zend Server
was detected. Click here to find out
more about Zend Server.
The Zend Server is definately up and running correctly. I am able to use the Zend Server web interface and run my PHP applications without any problems.
I have tried manually adding a server in Zend Studio by the following steps:
Servers > New Server
Add Server Name = Zend Server
URL document root = http://localhost
Finish
Set Properties (Zend Server tab)
Enable Zend Server integration = Y
Zend Server URL, Use Default = N
Zend Server URL, URL Suffix = /ZendServer
Zend Server URL, Port Number = 80
Authentication Password =
When I select the 'Show Server Event List' option, Zend Studio correctly opens a browser window with the Zend Server web interface displayed (with 'This feature is supported in the Zend Server Commercial Edition only'.)
Restarting Zend Studio results in the same warning message about Zend Server not detected.
I thought at first that maybe Zend Server Community Edition was not compatible with Zend Studio, but that does not seem to be the case.
Is it possible that there is a version conflict between the installed components or some Windows 7 64-bit incompatibility? Any help would be greatly appretiated.
This identical question was addressed by the Zend developers on the Zend Forum here: http://forums.zend.com/viewtopic.php?f=59&t=5809
I had the same problem with integrating Zend Studio 10.1 and Zend Server 6.3.
The solution is to add your computer IP address in Zend Server.
You can do this in Zend Server Configuration -> Studio Integration -> Allowed hosts.

Categories