![]() In the menu, click Run then Run File and the output should display in your browser. This little script just echoes the full name of the script, the name of your computer and displays all the php.ini settings plus the PHP run-time values. php extension is automatically added and the editor opens the new script.Įcho 'System Name: ', php_uname('n'), BR // RTVNETA SYSNAME Name the new file phpinfo and click FINISH.Right click on the project MyTest, click New then PHP File.Figure 7 is the result.Īnd now create a test script named phpinfo.php. We will use the local web server (Apache).Enter the project name as MyTest and accept the other config defaults.Click File -> New Project -> PHP -> PHP Application -> NEXT.A project can be thought of as a website directory that contains an index.php script plus your other scripts. We will now create a new NetBeans project. If the default port value 9000 is already in use on your computer, change this value both here and in php.ini. The Debugger Port needs to match the php.ini XDebug value. Click on Tools -> Options -> PHP -> Debugging (Figure 6). We need to verify the XDebug debugger settings match the php.ini settings. ![]() To launch the NetBeans IDE, double click the program C:Program FilesNetBeans 8.1binnetbeans.exe. Save the changes and leave XAMPP running. Click on Config in the upper right corner and then check Autostart Apache (Figure 5). Xdebug.profiler_output_dir = "C:xampptmp"įor convenience, set Apache to automatically start when the XAMPP control panel opens. Zend_extension = "C:xamppphpextphp_xdebug.dll" Scroll to the bottom to the section and add these seven lines, save the changes and close NotePad. This file contains system values for PHP. (If ports 80 and 443 are already in use and unavailable, follow these instructions.) For the Apache module, click Start under Actions to run the Apache server. To launch the XAMPP control panel, double click the program C:xamppxampp-control.exe. XAMPP also needs a Visual C++ package and may install that as well (Figure 3). If you look at newly installed programs in Control Panel and sort by date, you will see XAMPP and NetBeans. You may uncheck “Provide anonymous data”. Wait about 5 minutes for the installation to complete. Accept the default installation folder C:Program FilesNetBeans 8.1 and Click NEXT.To begin the installation, double click on the netbeans-8.1-php-windows-圆4.exe file in your downloads folder. Select your IDE spoken language, platform, and depending on the CPU of your computer, either the x86 or 圆4 PHP bundle to start the download. Navigate to Netbeans and click on the orange download button. I unchecked this option and will do this step later. The Setup Completion screen asks you to optionally launch the XAMPP Control Panel.Click NEXT and wait about five minutes for the installation to complete. You don’t have to use them all and storage is cheap. Double click this executable file to begin the installation. Your download folder will then contain an executable file with a name similar to “xampp-win32-5.6.15-1-VC11-installer.exe.” Per the XAMPP documentation, disabling your anti-virus software will make the installation go faster. And do click on the “What’s Included” link on that web page to see what the other tools are included in the download. I selected the Windows version of PHP 5.6.15 (I couldn’t get the debugger to work in version 7.02) and the download took two minutes. MariaDB database (a drop-in alternative for MySQL)Ĭhoose your download preference here.When you run your 30-day trial version of Zend Studio, just click on “Get a License for IBM i” instead of “Purchase Now” in the trial screen (Figure 1).įirst we will install the open source package XAMPP (“ex-amp”) that contains: All developers of IBM i customers may download Zend Studio and register a free perpetual license for that version using an email address and the IBM i serial number. This full-featured IDE integrates directly with the IBM i and allows you to write and debug scripts stored on the IFS. However, if you need to manage PHP scripts on an IBM i, you will want to alternatively explore using Zend Studio. This allows you the freedom to configure PHP and test your scripts as you choose without affecting a production website or needing management approval. Now I will show you how obtain a free PHP development environment on your laptop in two easy installations of XAMPP and Netbeans. In my introductory article I walked you through a crash course in PHP.
0 Comments
Leave a Reply. |