background preloader

Dev PHP

Facebook Twitter

IDE - PHP Development. A dedicated PHP coding environment and complete integration with web standards, with full support for HTML5, JavaScript, and CSS3 development, as described on the HTML5 Web Development Support page. Powerful PHP Source Code Editor The NetBeans PHP editor provides code templates and code generation tools, such as "getter and setter" generation, refactoring, such as "instant rename", parameter tooltips, hints, and quick fixes, and smart code completion. Benefit from syntactic and semantic code highlighting, pop-up documentation, code formating and folding, marking of occurrences and exit points, clever try/catch code completion, smart method parameter pre-filling, and rectangular selection.

PHP 5.4 Support NetBeans IDE for PHP 7.3 offers a number of features specific to developing with PHP 5.4. Web Frameworks NetBeans IDE supports the following popular web frameworks: Continuous Integration Support NetBeans IDE for PHP has support for continuous integration. PHP Projects Debugger See Also. Debugging PHP Source Code in the NetBeans IDE for PHP Editor.

Contents To follow this tutorial, you need the following software and resources. Getting Ready To successfully debug PHP applications in the NetBeans IDE for PHP, you need to have the PHP engine, the Apache local web server, and the XDebug debugger installed and configured for PHP development. If you have difficulties getting XDebug to work, see the NetBeans wiki on XDebug and/or ask the community at users@php.netbeans.org. users @ php.netbeans.org. How PHP Debugging with XDebug Works in NetBeans IDE When you run XDebug from NetBeans IDE, PHP program execution pauses at every line where you set a breakpoint. Set a breakpoint at each line where PHP source code execution should pause.

For a detailed workflow of using XDebug with NetBeans IDE, see Debugging Session. NetBeans IDE provides a debugging toolbar that helps you step through your files. Debugging Options Setting Breakpoints ). Forums • View topic - Sticky Notes: Setting Up Zend Debugger. This Sticky Note explains how to set up Zend Debugger on Linux. The procedure applies to most distributions with PHP (and Apache) installed. For most steps you will probably need the superuser account. 1. Inspect the phpinfo() output of the server on which you want to install the Zend Debugger (or run php -i if you want to install Zend Debugger for the CLI version of PHP).Click on the picture to see it without scroll bars: phpinfo() after the installation pre-a.png (130.04 KiB) Viewed 83369 times You need the following information:(1) The PHP version (PHP CLI - PHP Version => 5.2.9),(2) The location of the php.ini file (PHP CLI - Loaded Configuration File => /etc/php5/cli/php.ini), or(3) The additional .ini files directory (PHP CLI - Scan this dir for additional .ini files => /etc/php5/conf.d). 2.

Code: Select all 3. Mkdir -p /opt/Zend/php-5.2.x 4. Tar xf ZendDebugger-5.2.14-linux-glibc23-i386.tar.gz -C /opt/Zend/php-5.2.x --strip-components=2 --wildcards *5_2_x_comp* 5. Ubuntu: Fedora: 6. 7. Solving cron problems. Various things can keep cron from doing its job on your Drupal site. If your Status report (admin/reports/status) indicates that cron hasn't run recently, try the following to diagnose and fix the problem: Make sure cron.php is being called at all If your Status report indicates that cron has never run, you may simply need to configure configure a cron job. If you can successfully run cron manually from your Status report screen, Admin menu, or Drush, this is almost certainly the case. If manually running cron fails, you have a deeper problem... Understand how update.modules permission interacts with cron.php In 6x, update.modules became part of core.

Check for problems with cron itself If cron hangs, redirects, returns a 404 error, or just plain fails when run manually, you have a problem with cron itself. Cron may be cached badly. Check for problems with modules Certain modules may cause cron to abort, redirect, or return a 404 error. Advanced debugging Debugging with Drush: How To Setup a Free PHP Debugger using Eclipse PDT + XDebug. When I debug code, I find that a debugger is a very powerful tool. With a debugger you can set breakpoints, step through code, watch variables, do a stack trace, and much, much more. The eclipse PDT + XDebug offers a PHP debugger that you can use for free. It also offers a full PDT IDE (for editing, “building”, and debugging your PHP projects), but I use eclipse+PDT+XDebug only as a debugger since I like to use my favorite editor for editing. This guide shows how to setup eclipse+PDT+XDebug as your PHP Debugger.

This guide was written and tested using the R20080603 – 1.0.3 PDT all in one package. I haven’t used this debugger much yet as I have only gotten to set it up. One of the limitations I’ve found is that for the first page you navigate to, it seems that you can’t specify what is to be given in the “POST” data of the webpage. Useful Links: Eclipse PDT HomepagePDT Documentation PageXDebug Guide.

Christophe Le Bot » Configurer Xdebug pour Eclipse PDT en utilisant un serveur de test distant. Fini le développement web approximatif ! Aujourd’hui, les applications web deviennent de véritables usines à gaz qu’il faut savoir maîtriser. Certains regrettent l’époque du développement procédural avec ses projets de moins de 2000 lignes de code, mais il faut se rendre à l’évidence : le web est la plate-forme, il a besoin d’applications riches, complexes et stables.

Un exemple, Magento : 300.000 lignes de code… Sans outils d’aide au développement, il n’est plus possible de garantir la qualité de son code. Heureusement, ils ne manquent pas, encore faut-il les installer et les configurer correctement. Parmi les outils indispensables, le debugger et le profiler arrivent en tête. Ils permettent de tracer tout ce que le code source est censé faire : inclusions, chargement de données, valeurs de variables, temps d’exécution, contenu des objets, etc. L’environnement de travail On part du principe que PHP et Apache sont installés et actifs sur le serveur web. Configuration du serveur web. PHP Development Tools (PDT) - Downloads. Introducing xdebug. By: Stefan Priebsch Other Articles in the Series Part One: Introducing xdebugPart Two: Tracing PHP Applications with xdebugPart Three: Profiling PHP Applications With xdebugPart Four: Debugging PHP applications with xdebugPart Five: Creating Code Coverage Statistics with xdebug This article is the first installment of a five-part series of articles covering xdebug, a free and open source swiss army knife tool for PHP developers.xdebug is a PHP extension created by Derick Rethans, one of the PHP core developers.

This week, we will show you how to install xdebug and introduce you to some of the basic features. Installing the xdebug extension First of all, we need to install xdebug. Xdebug does not work with any PHP versions before 4.3, and will probably not yet work with PHP 6. Installing on Unix Before we dig into xdebug’s features, let us get the installation done.

Pecl install xdebug If the PECL installation does not work for you, you need to compile xdebug from source. On Unix, use: Using. For Windows: XDebugGuideForPDT2.0.pdf (Objet application/pdf) Debugging PHP applications with xdebug. By: Stefan Priebsch Other Articles in the Series Part One: Introducing xdebugPart Two: Tracing PHP Applications with xdebugPart Three: Profiling PHP Applications With xdebug Part Four: Debugging PHP applications with xdebugPart Five: Creating Code Coverage Statistics with xdebug Welcome to the fourth installment in our five-part series of xdebug articles on the Zend DevZone. This week, we will explore debugging PHP code with xdebug, the swiss army knife for PHP developers. Debugging software is not exactly a fun job for developers. Of course, you could just comment out the var_dump() statements, but that looks really ugly in the code.

As we have already learned in the second articles of this series, having xdebug create a trace log might be a better option in this case, because you do not have to change the program code. Beyond var_dump, debugging in PHP has been problematic for a long time, at least if you were not willing to spend money on a commercial IDE that supports debugging. Documentation. XDEBUG EXTENSION FOR PHP | DOCUMENTATION » The full documentation » Installation This section describes on how to install Xdebug. » Basic Features Xdebug's basic functions include the display of stack traces on error conditions, maximum nesting level protection and time tracking. » Variable Display Features Xdebug replaces PHP's var_dump() function for displaying variables. » Stack Traces When Xdebug is activated it will show a stack trace whenever PHP decides to show a notice, warning, error etc. » Function Traces Xdebug allows you to log all function calls, including parameters and return values to a file in different formats. » Code Coverage Analysis Code coverage tells you which lines of script (or set of scripts) have been executed during a request. » Profiling PHP Scripts Xdebug's built-in profiler allows you to find bottlenecks in your script and visualize those with an external tool such as KCacheGrind or WinCacheGrind. » Remote Debugging Frequently Asked Questions.