Monday, 3 November 2014



For detailed knowledge visit https://www.jetbrains.com

To get familiar with PhpStorm it is recommended that you create your first project from scratch and implement the very basic functionality in it.
Creating a living PHP application that enables you to view results in a browser of your choice requires the following preconditions to be fulfilled:
  • A local Web server is installed, configured, and running on your computer or access to a remote server is configured.
    Note
    This topic supposes that the local Apache HTTP server is used and its root directory is .\htdocs.
  • The PHP engine is installed and configured.
You can install each component separately and then configure the environment. Alternatively, install an AMP package compatible with the operating system you use to have the components and the entire environment configured without any steps from your side.
To create and run your first php project
  1. Create a project. For that, choose File | Create New Project on the main menu.
  2. In the Create New Project dialog box that opens specify the name of the project in the Name text box, for example, type MyFirstPhpProject.
  3. Click the Browse button browseButton.png next to the Location text box.
  4. In the dialog that opens select the path to the .\htdocs folder and click OK. PhpStorm composes the path to the project folder as follows:
    webphpcreateNewProject.png
  5. Create a PHP file. To do that, right-click the project directory in the Project tool window, point to New on the context menu, and choose PHP File.
    webphpcreatePhpFile.png
  6. In the New PHP File dialog box that opens type MyFile and click OK. PhpStorm will create the stub file for you and open it in the dedicated editor tab.
  7. Type this sample code:
    echo phpinfo();
  8. To save the file, choose File | Save All or press Ctrl+S.
  9. Open a Web browser and type the following URL address:
    http://localhost:<port>/MyFirstPhpProject/MyFile.php
    The PHP Information page opens displaying the PHP engine configuration settings on your computer.

Creating Java project with Eclipse

In this section, you will create a new Java project. You will be using JUnit as your example project. JUnit is an open source unit testing framework for Java.

For detailed knowledge visit http://www.help.eclipse.org

Getting the Sample Code (JUnit)

First you need to download the JUnit source code.
  1. Click here to download the JUnit source code.
  2. Save the archive (do not extract) to a directory from now on referenced as <Downloads>.

Creating the project

  1. Inside Eclipse select the menu item File > New > Project.... to open the New Project wizard
  2. Select Java Project then click Next to start the Open the new Java project wizard New Java Project wizard:
    New Java Project wizard
    On this page,
    • type "JUnit" in the Project name field, and
    • select "J2SE-1.4" in the Use an execution environment JRE field.
    Then click Finish.
  3. In the Package Explorer, expand the JUnit project and select the source folder src.
  4. Select the menu item File > Import....
  5. Expand General, select Archive file, and click Next.
  6. Click the Browse button next to the Archive file field and browse to select
    <Downloads>/junit381src.jar
    Note: This step assumes that you followed steps 1 and 2 in the Getting the Sample Code section above.
  7. In the Import wizard, expand the root node, press Deselect All and select only the junit node. You can expand and select elements within the junitdirectory on the left pane to view the individual resources that you are importing on the right pane. Note: Do not deselect any of the resources in the junit directory at this time. You will need all of these resources in the tutorial.
    Import archive wizard
  8. Make sure that the JUnit project's source folder appears in the destination Into folder field. Then click Finish. In the import progress indicator, notice that the imported resources are compiled as they are imported into the workbench. This is because the Build automatically option is checked on the Workbench preferences page.
  9. In the Package Explorer view, expand the JUnit project and the src folder to view the JUnit packages.
    Package Explorer

Tuesday, 28 October 2014


PHP 5.6.2 is available

The PHP development team announces the immediate availability of PHP 5.6.2. Four security-related bugs were fixed in this release, including fixes for CVE-2014-3668, CVE-2014-3669 and CVE-2014-3670. All PHP 5.6 users are encouraged to upgrade to this version.
For source downloads of PHP 5.6.2 please visit our www.php.net/downloadwww.php.net/downloads.php Windows binaries can be found on windows.php.net/download/.

SunshinePHP Developer Conference 2015

The 3rd year of SunshinePHP in Miami, Florida is shaping up to be awesome once again from February 5th - 7th, 2015. There will be a full day of in-depth 3-hour tutorials on Thursday, followed by the 2 day conference on Friday an Saturday. The conference has something for every level of PHP developer, as well as a hack-a-thon, unscheduled Uncon, fun activities, and of course sunshine.
For details visit www.php.net